Use the calculation
object to get tax rates with enhanced B2B support
calculation
object contains tax rate information with enhanced support for business-to-business (B2B) transactions. A calculation also includes a calculation_id
that you’ll use to record a transaction
for filing.
POST
to /tax/calculations
during their checkout flow after the end customer has submitted their address, but before collecting payment.
Enhanced Calculation Request
Sample Response
total_tax_amount
to identify what to charge a user, but you will always have the details as you need them.
type
(string): Customer type affecting tax calculation
CONSUMER
(default) - Individual consumer, standard B2C tax calculationsBUSINESS
- Business entity requiring tax IDs for B2B tax logictax_ids
(array): Required for BUSINESS customers, not allowed for CONSUMER customers
type
(string): Tax ID type (VAT
or GST
)value
(string): Valid tax identification numberautomatic_tax
(string): Controls tax collection and registration behavior
auto
- Return tax rates everywhere you have an active registrationdisabled
- Always return 0 tax regardless of thresholdstype
field is omitted.customer.type: "BUSINESS"
, tax IDs are validated in real-time:
automatic_tax
setting provides granular control over tax collection:
Setting | Tax Rates Returned | Registration Triggered | Use Case |
---|---|---|---|
auto | ✅ Where you have active registration | ❌ No | Standard operation |
disabled | ❌ Always 0 | ❌ No | Tax-exempt scenarios |