Transaction Creation and Lifecycle
Learn to use the AvaTax API to create tax transactions and understand the different transaction states.
We'll cover the following...
Overview
We can describe tax transactions in Avalara as any business activity taxable by the government. This business activity includes transactions such as sales, purchases, refunds, and inventory transfers. We use the {{BASE_URL}}/transactions/
endpoint to manage these transactions.
Creating a transaction
We can record our company's taxable transactions through AvaTax, which can be of the following types: sales, purchases, inventory transfers, and returns. To create one such transaction on AvaTax for calculating taxes, we use the {{BASE_URL}}/transactions/create
endpoint and the POST method.
The {{BASE_URL}}/transactions/create
endpoint calculates the total tax applicable on all items we pass to the lines
array in this endpoint. AvaTax uses the different tax codes, rules, and profiles we define for our company for tax calculation. The complete endpoint URL for creating a ...