Get tax information for a given product and address or IP
X-API-Version explicitly in requests:
amount field on line items is now per-unit price (taxable base = amount x quantity). Responses include origin_address, metadata, address_resolution_status, address_used, and enhanced tax_jurisdictions fields.amount field on line items represents the per-unit price rather than the total line item value:
| Field | Description |
|---|---|
address_resolution_status | EXACT, POSTAL_FALLBACK_1, or POSTAL_ONLY — precision of the address match |
address_used | The resolved address that was actually used for tax calculation |
metadata | Echoed back from the request unchanged |
| Field | Description |
|---|---|
tax_due_decimal | Tax amount for this jurisdiction in the currency’s smallest unit |
tax_authority_name | Name of the tax authority (e.g., “Tennessee”, “ALLEGHENY”) |
tax_authority_type | Type of authority (e.g., “STATE”, “COUNTY”, “CITY”, “DISTRICT”) |
tax_type | Type of tax: SALES, USE, VAT, or GST |
rate_type | Descriptive rate classification (e.g., “GENERAL STATE SALES TAX”) |
jurisdiction_name and note fields from prior versions are no longer included.
{ "code": number, "type": "ERROR_TYPE", "message": "..." }.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
API version to use.
2026-03-01, 2026-01-01, 2025-05-12, 2024-09-01 Customer details. At least one of address or ip must be provided.
Required from API version 2025-05-12+. The address that a product is shipped from.
You can store arbitrary keys and values in the metadata. Any valid JSON object whose values are less than 255 characters long is accepted.
Calculate response
The ID of the calculation. You will use this to create a transaction.
"calc_123456789"
The type of object: tax.calculation.
"tax.calculation"
The ISO-4217 currency code of the transaction.
"USD"
Customer information returned in the response.
The automatic tax setting for this calculation.
auto, disabled "auto"
false
Total tax to charge on this calculation.
14
Total sale charge, excluding tax.
200
Total sale charge plus tax. What you should charge your customer.
214
Epoch datetime representing the date and time the tax rates are valid until.
1714787673
True if using a production API key. False if using a test API key.
"false"
Status of address resolution for the customer address. EXACT: exact address match found, POSTAL_FALLBACK_1: used postal code fallback, POSTAL_ONLY: only postal code was used for tax calculation.
EXACT, POSTAL_FALLBACK_1, POSTAL_ONLY "EXACT"
The actual address used for tax calculation after resolution.
You can store arbitrary keys and values in the metadata. Any valid JSON object whose values are less than 255 characters long is accepted.
Which input was used for tax determination.
address, ip "address"
The precision level of the resolved location.
STREET, POSTAL_PLUS, POSTAL, PROVINCE, COUNTRY, APPROXIMATED "POSTAL"