Commit an Avalara AvaTax transaction and record the tax obligation for reporting

domain: developer.avalara.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Build a CreateTransactionModel with type set to SalesInvoice, commit set to false initially, and all required fields: companyCode, date, customerCode, addresses, and lines with itemCode and taxCode
  2. POST to /api/v2/transactions/create and receive the transaction back with calculated tax details on each line
  3. Review the tax details and if correct, commit the transaction by calling POST /api/v2/companies/:companyCode/transactions/:transactionCode/commit
  4. Store the returned id and transactionCode in your order record for future void or adjustment operations
  5. For returns or cancellations, use POST /api/v2/transactions/create with type set to ReturnInvoice and reference the original transactionCode in the referenceCode field

Known gotchas

Related routes

Create, commit, and void Avalara AvaTax transactions for sales tax calculation
developer.avalara.com · 6 steps · unrated
Reconcile tax collected in Shopify with committed transactions in Avalara AvaTax for a filing period
developer.avalara.com · 5 steps · unrated
Implement an Avalara AvaTax nexus determination and tax calculation call with address validation and document commit for a checkout integration
developer.avalara.com · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans