This is a C# sample demonstrating the AvaTax REST API methods: tax/get POST, tax/get GET, tax/cancel POST, and address/validate GET.
For more information on the use of these methods and the AvaTax product, please visit our developer site or homepage
- .NET 4.0 or later
- Authentication requires an valid Account Number and License Key, which should be entered in the application configuration (app.config) file.
- If you do not have an AvaTax account, a free trial account can be acquired through our developer site
Sample Files | |
---|---|
CancelTaxTest.cs | Demonstrates the CancelTax method used to void a document. |
EstimateTaxTest.cs | Demonstrates the EstimateTax method used for product- and line- indifferent tax estimates. |
GetTaxTest.cs | Demonstrates the GetTax method used for product- and line- specific calculation. |
PingTest.cs | Uses a hardcoded EstimateTax call to test connectivity and credential information. |
Program.cs | Provides and entry point to call the actual samples. |
ValidateAddressTest.cs | Demonstrates the ValidateAddress method to normalize an address. |
Other Files | |
AvaTaxClasses/ | Contains the core classes that make the service calls. |
.gitattributes | - |
.gitignore | - |
app.config | Contains AvaTax credentials used to run individual tests. |
AvaTaxCalcREST.csproj | - |
AvaTaxCalcREST.sln | - |
LICENSE.md | - |
README.md | - |