REST interface to Avalara's enterprise tax service, AvaTax.
Records a new transaction or adjust an existing transaction in AvaTax.
The CreateOrAdjustTransaction
endpoint is used to create a new transaction or update an existing one. This API
can help you create an idempotent service that creates transactions
If there exists a transaction identified by code, the original transaction will be adjusted by using the meta data
in the input transaction.
The CreateOrAdjustTransaction
API cannot modify any transaction that has been reported to a tax authority using
the Avalara Managed Returns Service or any other tax filing service. If you call this API to attempt to modify
a transaction that has been reported on a tax filing, you will receive the error CannotModifyLockedTransaction
.
To generate a refund for a transaction, use the RefundTransaction
API.
An address is required for calculation. If no address is provided at the line level, the document level address will be used.
If you don't specify the field type
in your request, you will get an estimate of type SalesOrder
, which will not be recorded in the database.
A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
sales, purchases, inventory transfer, and returns (also called refunds).
You may specify one or more of the following values in the $include
parameter to fetch additional nested data, using commas to separate multiple values:
If you omit the $include
parameter, the API will assume you want Summary,Addresses
.
NOTE: Avoid using the following strings in your transaction codes as they are encoding strings and will be interpreted differently: