Other Samples

AvaTaxCalc-BatchSvcSOAP-Java contains sample code that calls Avalara's Batch Service using a java SOAP API. The sample demonstrates how tax records can be imported using Avalara's Transaction Import format.

Contents:

avatax4j.properties Sample credentials file.
avatax4j-batchsvc.jar AvaTax BatchSvc jar file
batchservicetest.csv Sample import transaction csv file for use in testing batch services save.
/lib   Other required jar files
/src   Full source code

Dependencies:

Requirements:

  • Authentication using the BatchSvc requires the use of Account Admin level username and password vs account number and license key combination. Configure these settings in the avatax4j.properties file included in the sample.
  • CompanyId can be obtained from your Admin Console's Organization tab by selecting the Company Name hyperlink. The digits that appear at the end of the URL string is the CompanyID.

For example: https://admin-development.avalara.net/AvaTax/Company/CompanyEdit.aspx?id=12345 -- 12345 would be the CompanyID.

  • There is a .csv import transaction file batchservicetest.csv in the root directory that can be used for your import document test. You can modify this file in any way that suites your business needs. See Importing Transactions for more information.

Resources

Developer API Documentation is located here: http://developer.avalara.com/api-docs

The Avalara AvaTax API Reference is located here: http://developer.avalara.com/api-docs/avalara-avatax-api-reference

Find out what other developers are talking about on the Avalara Developer Community Forum located here: https://community.avalara.com/avalara/category_sets/developers

Frequently Asked Questions regarding all Avalara products is located here: https://help.avalara.com/