Create Calculations
Get tax information for a given product and address
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Customer details. Address is required. Optionally accepts a customer ID for order tracking and exemptions.
Optional, but relevant for tax collection in certain states. 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
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"
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"
You can store arbitrary keys and values in the metadata. Any valid JSON object whose values are less than 255 characters long is accepted.