Calculate Tax for a Transaction
Interactive playground to calculate tax using the Kintsugi API
Calculate Tax for a Transaction
Overview
The Tax Estimation API calculates the estimated tax for a transaction based on your organization’s nexus status, product taxability, customer exemptions, and shipping addresses. This endpoint is idempotent and doesn’t create permanent transaction records, making it perfect for testing tax calculations during checkout flows.When to Use
- Shopping cart pages: Calculate tax when customers review their order
- Checkout flows: After address entry but before payment processing
- Subscription billing: Calculate tax for recurring charges
- Quote generation: Provide tax estimates to customers
Authentication
This endpoint requires two headers:x-api-key: Your API keyx-organization-id: Your organization ID
Try It Out
Use the interactive playground below to test the tax estimation endpoint. The playground will automatically include the required authentication headers.Common Use Cases
Basic Tax Calculation
Calculate tax for a simple transaction with a shipping address:With Customer Information
Include customer details to check for exemptions:Response Fields
The API returns detailed tax information:total_tax_amount_calculated: Total tax amount for the transactiontaxable_amount: Amount subject to taxtax_rate_calculated: Overall tax ratenexus_met: Whether your organization has nexus in the destination jurisdictionhas_active_registration: Whether you have an active registrationtransaction_items: Array with tax details for each item
Next Steps
- Create a Transaction - Record the transaction after payment
- Sales Tax Calculations Guide - Learn more about tax calculation
- Getting Started - Set up your integration
Related Resources
Query Parameters
Deprecated: Use simulate_active_registration in the request body instead.
Body
Public request model for tax estimation API documentation. This model excludes internal fields like enriched_fields and total_amount that should not be exposed in API docs.
The date of the transaction in ISO 8601 format (e.g., 2025-01-25T12:00:00Z).
Unique identifier of this transaction in the source system.
The currency in which the transaction is conducted (e.g., USD, EUR).
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GGP, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD, IRR, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SPL, SRD, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TVD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VEF, VND, VUV, WST, XAF, XCD, XDR, XOF, XPF, YER, ZAR, ZMW, ZWD List of items involved in the transaction.
List of addresses related to the transaction. At least one BILL_TO or SHIP_TO address must be provided. The address will be validated during estimation, and the transaction may be rejected if the address does not pass validation. The SHIP_TO will be preferred to use for determining tax liability.
An optional description of the transaction.
While currently not used, it may be used in the future to determine taxability. The source of the transaction (e.g., OTHER).
BIGCOMMERCE, BESTBUY, BUNNY, CHARGEBEE, SHOPIFY, STRIPE, AMAZON, TIKTOK, CUSTOM, UNKNOWN, IMPORT, ZUORA, APIDECK, QUICKBOOKS, API, APPLE_APP_STORE, GOOGLE_APP_STORE, WALMART, PAYPAL, NETSUITE, XERO, MAXIO, RECURLY, SALESFORCE, ETSY, EBAY, WIX, SQUARESPACE, WOOCOMMERCE, MAGENTO, BILLING_PLATFORM, DEEL, RIPPLING, GUSTO, FACEBOOK, OTHER, ORDWAY, INSTAGRAM, PINTEREST, WAYFAIR, WISH, POS, TARGET, NEWEGG, GROUPON, GOOGLE_EXPRESS, NOCNOC, MERCADO_LIBRE, MODALYST, NORDSTROM, FAIRE, SHOPWARE, ZOHO, SAGE-INTACCT, AIRWALLEX, ORB, ZENSKAR, MICROSOFT_DYNAMICS_365, KICKSTARTER, INTERNAL_ERP Indicates if the transaction involves a marketplace.
Details about the customer. If the customer is not found, it will be ignored.