Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
API version to use. Defaults to 2024-09-01 if not specified.
2024-09-01
, 2025-05-12
Body
Customer details. Address is required. Optionally accepts a customer ID for order tracking and exemptions.
Optional, but relevant for tax collection in certain jurisdictions. 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.
Response
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. Available with API version 2025-05-12.
The automatic tax setting for this calculation. Available with API version 2025-05-12.
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. Available with API version 2025-05-12 only. 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. Available with API version 2025-05-12 only.
You can store arbitrary keys and values in the metadata. Any valid JSON object whose values are less than 255 characters long is accepted.