Calculate sales tax for an agent transaction
Computes US sales tax for a single agent-to-agent or agent-to-human transaction. Handles destination vs origin sourcing automatically (TX/UT/AZ/TN apply origin sourcing intrastate; OH applies origin sourcing intrastate ONLY to TPP/digital-goods retail sales — transaction_type license/digital_good — per R.C. 5739.033(B)(1), with services destination-sourced). Routes work_type → economic_category → state-specific taxability via TAXABILITY_MATRIX with DEFAULT_CATEGORY_RULES fallback.
Authentication: API key (Bearer) or x402 X-PAYMENT header. Demo mode (no auth): the same request works with no key and no payment, limited to 30 requests/minute and 50 per UTC day per IP (every request counts, including 400s; X-RateLimit-* headers report the daily window; over either limit returns 429 RATE_LIMITED with a signup block and the x402 option). The demo response carries mode "demo", total_tax, combined_rate, applied_rate, classification_basis, confidence and nexus_configured_for_state (plus exemption or tax_if_nexus when a $0.00 is a default), and omits the audit trail, jurisdiction breakdown, advisories and sales_tax/use_tax detail. Seller-side demo calls use a shared demo nexus profile. Demo calls are not saved to any account. A key (free signup) is required for the full response, your own nexus, transaction history and higher volume.
Request
- Base URL: https://www.agenttax.io
- URL: https://www.agenttax.io/api/v1/calculate
- Auth: one of:
- HTTP bearer
- API key in header X-PAYMENT
- none
Request body
Response
Tax calculation succeeded.
Example response
{
"engine_version": "1.5",
"api_version": "v2"
}Changes
No recorded changes to this operation across all 1 revision of this API.