Calculate cross-border duties and import taxes at checkout using the Avalara AvaTax Cross-Border API

domain: developer.avalara.com · 6 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. Provision an AvaTax Cross-Border account in the Avalara Admin Console and retrieve your account number and license key for HTTP Basic Authentication.
  2. Authenticate to the AvaTax REST v2 API using Basic Authentication with the header value Base64-encoded from accountNumber:licenseKey.
  3. Build a createTransaction request body with type set to SalesOrder, set the isSellerImporterOfRecord flag appropriately for DDP vs DAP incoterms, and include each line item with its HS code (or Avalara product classification code), declared value, origin country, and ship-to country.
  4. POST to the AvaTax v2 transactions endpoint; parse the taxLines array in the response to extract duty, VAT/GST, and any carrier surcharge components separately.
  5. Display the itemised landed cost to the shopper; convert the SalesOrder to a SalesInvoice transaction at the time of purchase to commit the calculation for reporting.
  6. Use the Avalara Cross-Border Restrictions API to check whether the destination country prohibits or requires a license for the product category before completing the order.

Known gotchas

Related routes

Calculate sales tax for a transaction using the Avalara AvaTax CreateTransaction API
avalara · 6 steps · unrated
Calculate landed cost (duties, taxes, fees) for cross-border checkout
logistics-general · 6 steps · unrated
Calculate sales tax using Avalara AvaTax CreateTransaction API
developer.avalara.com · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

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