Refactoring
Learn how to refactor your integration using AvaTax SDKs, including REST and SOAP examples.var transaction = client.CreateTransaction(null, createModel);
This section describes how to refactor your integration using the SDKs.
Note
- REST SDKs are generated against the entire AvaTax Swagger API repository and have corresponding methods and models for everything you can do directly with the AvaTax API.
- REST SDKs expose a TransactionBuilder model for calling for a tax calculation example.
Language
Legacy SOAP SDK
REST-based SDK
Other notes
C++
https://github.com/avadev/AvaTax-Calc-SOAP-CPP
https://developer.avalara.com/sdk/csharp/
The C++ uses legacy C# DLL version 14.4.1, which may not work as expected with TLS 1.2-only enabled endpoints.
Javascript
https://github.com/Matter-and-Form/node-avatax
https://developer.avalara.com/sdk/javascript/
Perl
https://github.com/mjgardner/WebService-Avalara-AvaTax
N/A
Contact Avalara Support
PHP
https://github.com/avadev/AvaTax-SOAP-PHP-SDK
https://developer.avalara.com/sdk/php/
Python
https://github.com/avadev/AvaTax-Calc-REST-PythonPython
https://developer.avalara.com/sdk/python/
SalesForceApex
N/A
Contact Avalara Support
C# examples
This section shows examples of making SOAP calls using C# in SOAP and in RESTv2.
Setup call to AvaTax
SOAP
REST V2
Build tax calculation request
SOAP
REST V2
Initiate tax request
SOAP
REST V2
Part of the SOAP To RESTV2 Refactor Guide. Open the full “Refactoring” section on Avalara.

