Calculate sales tax with TaxJar and apply product-level tax exemptions using product tax codes

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

Steps

  1. Register nexus states in your TaxJar account or via the POST /v2/nexus endpoint before making tax calculations
  2. POST to /v2/taxes with from_country, from_zip, to_country, to_zip, amount, shipping, and a line_items array where each item includes product_tax_code from the TaxJar taxonomy
  3. Parse the response tax.breakdown.line_items array to get per-line tax amounts and apply them to your cart display
  4. For exempt customers, include exemption_type and customer_id in the request and ensure the customer is registered as exempt via the Customers API
  5. Record completed transactions via POST /v2/transactions/orders after order placement to support AutoFile and reporting

Known gotchas

Related routes

Configure TaxJar nexus registration and use the TaxJar SmartCalc API to calculate sales tax at checkout with product exemptions
developers.taxjar.com · 5 steps · unrated
Calculate sales tax for a transaction using TaxJar
taxjar.com · 5 steps · unrated
Fetch sales tax rates for a specific address using the TaxJar Rates API and apply product-level tax codes
developer.taxjar.com · 6 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