This is a set of cURL sample requests and expected responses 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
Sample Files | |
---|---|
CancelTaxTest.txt | Demonstrates the CancelTax method used to void a document. |
EstimateTaxTest.txt | Demonstrates the EstimateTax method used for product- and line- indifferent tax estimates. |
GetTaxTest.txt | Demonstrates the GetTax method used for product- and line- specific calculation. |
PingTest.txt | Uses a hardcoded EstimateTax call to test connectivity and credential information. |
ValidateAddressTest.txt | Demonstrates the ValidateAddress method to normalize an address. |
Other Files | |
.gitattributes | - |
.gitignore | - |
LICENSE.md | - |
README.md | - |
- cURL 7.0 or later
- Authentication requires an valid Account Number and License Key, which should be entered in the test file (e.g. GetTaxTest.rb) you would like to run.
- If you do not have an AvaTax account, a free trial account can be acquired through our developer site