Chapter 1.4 - Demo Application

Use the C# Communications REST v2 Demo Application to see how to integrate with and call the CalcTaxes and Geo Batch REST v2 APIs.

Download the Demo Application

  1. Navigate to the Avalara/Communications-Developer-Content repo on GitHub
  2. Clone the master branch of the Avalara/Communications-Developer-Content repository locally
  3. To run the application:
    1. Navigate to .\afc_saaspro_tax\afc_rest_apis\AfcRestDemoApp in the local repository
    2. Launch RestDemoApplication.exe
  4. To view the source code and build the application:
    1. Navigate to .\afc_saaspro_tax\afc_rest_apis\AfcRestDemoSource in the local repository
    2. Open RestDemoApplication.sln in Microsoft Visual Studio

Run a Sample Transaction

  1. Enter your REST v2 Username, Password, and Client ID
  2. In Profile ID, enter:
    • client_profile_id to use an existing client profile (if applicable)
    • 0 to use the default profile
  3. Modify the Request or simply use the transaction provided
  4. Click Process to run the transaction

Run a Performance Test

  1. Navigate to the Performance tab
  2. Set Max Threads and Max Run Time
  3. Click Start to start a performance test

The results of the test are displayed within the Performance tab.

Run Geo Batch

Use the Geo Batch tab to upload an address or latitude/longitude CSV file and see the results.

  • Upload Request File - upload a CSV input file
  • Get File Status - Get the input and output file links
    • Download Input File - Download the request file
    • Download Output File - Download the results file
  • Get File Logs - See the status details of the request

For more information about Geo Batch, see Geo Batch.

The results of the Geo Batch test are displayed within the Geo Batchtab.