validate addresses and commit or void transactions in avalara avatax

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

Steps

  1. Authenticate using HTTP Basic Auth with your Avalara account ID and license key on all requests to the AvaTax REST API.
  2. Validate and normalize a shipping address by POSTing to `/api/v2/addresses/resolve` with the raw address; the response includes a `validatedAddresses` array and an `addressIsValid` flag — use the validated address in subsequent tax calls.
  3. Create a sales transaction by POSTing to `/api/v2/transactions/create` with `type: SalesOrder` (uncommitted) including `companyCode`, `date`, `customerCode`, `addresses`, and `lines` with `quantity`, `amount`, and `itemCode`.
  4. To record the transaction for reporting and remittance, commit it by POSTing to `/api/v2/transactions/{companyCode}/{transactionCode}/commit` — or set `commit: true` in the initial create call to create a `SalesInvoice` directly.
  5. If the order is cancelled, void the transaction by POSTing to `/api/v2/transactions/{companyCode}/{transactionCode}/void` with a `code` reason (e.g., `DocVoided`).
  6. For returns or refunds, create a `ReturnInvoice` transaction referencing the original transaction's `code` to ensure correct tax reversal.

Known gotchas

Related routes

Create, commit, and void Avalara AvaTax transactions for sales tax calculation
developer.avalara.com · 6 steps · unrated
Validate addresses and manage nexus configuration in Avalara AvaTax
developer.avalara.com · 6 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,500+ 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