This is a set of Java sample requests 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 | |
---|---|
src/CancelTaxTest.java | Demonstrates the CancelTax method used to void a document. |
src/EstimateTaxTest.java | Demonstrates the EstimateTax method used for product- and line- indifferent tax estimates. |
src/GetTaxTest.java | Demonstrates the GetTax method used for product- and line- specific calculation. |
src/PingTest.java | Uses a hardcoded EstimateTax call to test connectivity and credential information. |
src/ValidateAddressTest.java | Demonstrates the ValidateAddress method to normalize an address. |
Other Files | |
src/AddressSvc/ | Contains the core classes that make the address validation service calls. |
src/TaxSvc/ | Contains the core classes that make the tax calculation service calls. |
.gitattributes | - |
.gitignore | - |
LICENSE.md | - |
README.md | - |
- JDK 5.0 or later
- Jackson is also required, and the pertinent libraries are included in /lib. It is provided here under the Apache License 2.0
- 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