Calculations
Use the calculation
object to get tax rates
The calculation
object contains tax rate information. A calculation also includes a calculation_id
that you’ll use to record a transaction
for filing.
When to create Calculations
Calculations should be used any time you need to calculate sales tax before charging a customer for a transaction. Most e-commerce clients will submit a POST
to /tax/calculations
during their checkout flow after the end customer has submitted their address, but before collecting payment.
How to create Calculations
We return both the aggregate tax information as well as a detailed breakdown for each line item. Many users will just use the total_tax_amount
to identify what to charge a user, but you will always have the details as you need them.
Further documentation
The full documentation for creating calculations is on this page.