Search⌘ K
AI Features

Transaction Creation and Lifecycle

Explore how to create and adjust tax transactions in Avalara using the AvaTax API. Understand the transaction lifecycle stages, including uncommitted, committed, and locked states, to manage tax processes efficiently.

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 ...