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
.
The type of object: tax.calculation
.
The ISO-4217 currency code of the transaction.
Total tax to charge on this calculation
.
Total sale charge, excluding tax.
Total sale charge plus tax. What you should charge your customer.
Epoch datetime representing the date and time the tax rates are valid until.
True
if using a production API key. False
if using a test API key.
You can store arbitrary keys and values in the metadata. Any valid JSON object whose values are less than 255 characters long is accepted.