Skip to content
C++ Sample
C++ Other
  1. C++ 98.8%
  2. Other 1.2%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
AvaTax-Calc-SOAP-CPP moved credentials to app.config Aug 21, 2014
.gitattributes combined projects into one that uses a main file Jun 10, 2014
AvaTax-Calc-SOAP-CPP.sln added return link to sample page Sep 5, 2014


Other Samples

This is a sample for C++/CLI demonstrating the AvaTax SOAP API methods.

For more information on the use of these methods and the AvaTax product, please visit our developer site or home page

The Visual Studio solution uses a main.cpp file to run the Avalara AvaTax methods in order. Some calls may not be necessary for your integration.


  • If you do not have an AvaTax account, a free trial account can be acquired through our developer site
  • Enter your account credentials app.config. You may need to clean build and then rebuild the solution if you run it before changing the credentials. You can pass your free trial Username and Password in the accountNumber and licenseKey fields, otherwise use your actual account and key.
  • If you're using a paid account instead of a free trial account, you will also need to change the CompanyCode in some files. The default value we have entered is APITrialCompany.


Sample Projects
PingTestDemonstrates a ping call to verify connectivity and credentials.
GetTaxTestDemonstrates the GetTax method used for product- and line- specific calculation.
PostTaxTestDemonstrates the PostTax method used to post or commit a previously recorded document.
CommitTaxTestDemonstrates the CommitTax method used to commit a previously posted document.
GetTaxHistoryTestDemonstrates a GetTaxHistory call to retrieve document details for a saved transaction.
AdjustTaxTestDemonstrates an AdjustTax call to modify a previously committed transaction. If it's not committed continue to use GetTax to update the document.
CancelTaxTestDemonstrates the CancelTax method used to void a document.
ValidateAddressTestDemonstrates the Validate method to normalize an address.
Core Classes
Other Files


  • .NET 2.0 or later
  • Avalara.AvaTax.Adapter.DLL (included in sample)
You can’t perform that action at this time.