capabilities.work

Calculate and Commit a Transaction

A 4-step recipe with Avalara. We can help you get access.

Recipe · 4 steps

Calculate and Commit a Transaction

with Avalara · Indirect Tax Management

Resolve address, create a sales invoice, commit it, and retrieve it.

  1. Validate and resolve the ship-to address to a standardized, geocoded form before calculating tax.
  2. Create a sales invoice transaction with a single line item, calculating tax for the resolved ship-to address. The transaction is created uncommitted so it can be committed in the next step.
  3. Commit the freshly created transaction so it is finalized and eligible for tax reporting.
  4. Retrieve the committed transaction by code, including summary details, to confirm its committed status and tax totals.
What you'll need to have ready
  • companyCode: Company code creating the transaction.
  • customerCode: Unique code identifying the customer.
  • date: Date of the transaction (YYYY-MM-DD).
  • line1: Ship-to street address line 1.
  • city: Ship-to city.
  • region: Ship-to state or province code.
  • postalCode: Ship-to postal code.
  • country: Ship-to two-character ISO 3166 country code.
  • amount: Total amount of the single line item.
  • taxCode: Avalara tax code to apply to the line item.
For your developer

Arazzo workflow avalara:calculate-and-commit-transaction, 4 operations: resolveAddress → postTransactions → commitTransaction → getTransactionByCode. Specs on APIs.io.