Calculate tax
Computes tax for inline line items against your legal entity’s configured tax engine and stores the result, returning an id (with an expiry) you pass when issuing a receipt to pin these exact line items and amounts. Each call creates a new calculation; send an Idempotency-Key header to make a retry return the original calculation instead of a new one. Provide a buyer address (and optional tax ids for reverse-charge / exemption) and per-line canonical tax codes; an omitted code defaults to general business SaaS.
Authorizations
API key authentication. Pass your API key as a Bearer token.
Headers
2026-04-01 A unique string used to ensure the request is processed exactly once. If you retry a request with the same idempotency key within 24 hours, the original response is returned without re-executing the operation.
255"ik_a1b2c3d4e5f6"
Body
ISO 4217 currency code
"USD"
Who is being taxed
Line items to tax
Selling legal entity; defaults to the org's default when omitted
Existing sub-merchant the receipt is issued for; you remain the seller of record. Create the merchant before referencing it here. Requires the merchants entitlement
"mrch_01H8XGJWBWBAQ4PLwXYZ"
Whether line amounts exclude (default) or already include tax
exclusive, inclusive "exclusive"
Response
Success
Currency of the amounts
When the calculation stops being issuable
Id of the persisted calculation; pass it when issuing a receipt to pin these results
Per-line tax breakdown
Sum of per-line tax amounts
Sub-merchant the calculation was made for; a document issued from it inherits this attribution
"mrch_01H8XGJWBWBAQ4PLwXYZ"