Before integrating with the TaxCloud API, you’ll need to set up your TaxCloud account and understand a few concepts about how orders flow through TaxCloud.
To integrate TaxCloud successfully, your environment will need to perform the following:
All calls to TaxCloud are authenticated using a set of API Credentials consisting of a unique API ID (or apiLoginID) and API Key. Both the API ID and API Key are found in the TaxCloud > Integrations > Your connection area. You’ll find your API credentials for each individual connections in them.
Use best practices your platform provides to properly secure your API ID and Key when you interface with the TaxCloud API.
Integrating TaxCloud into your checkout process involves a few core steps. Each step builds on the last, ensuring your system collects the right data, applies the right rules, and calculate the correct tax amount.
Please see the end-to-end order flow for integrating with TaxCloud below, as we explain some key concepts along the way. For detailed API reference, please see our reference here.
Every checkout sequence in TaxCloud begins with a cartID—a unique identifier that links all tax-related operations to a specific shopping cart. The cartID ensures TaxCloud can associate the correct Lookup (tax calculation) and Capture (finalization) requests with the right cart.
TaxCloud supports two forms of cartIDs: Explicit (assigned by your system) and Passive (generated by TaxCloud). For more details, see What is a cartID?.
An order in TaxCloud represents the full transaction record that sales tax will be calculated on and, eventually, reported. Think of it as the container that holds all the components of a customer’s purchase. Building an order correctly is critical because TaxCloud can only calculate and track sales tax if it has a complete picture of what’s being sold.
When you create an order, you need to include:
This structure ensures every taxable (or exempt) element of the transaction is represented properly.
Because states tax goods and services differently, every item in an order needs a Taxability Information Code (TIC). The TIC tells TaxCloud how that item should be taxed in the destination state.
See the full list of TICs here: TaxCloud TIC reference.
Shipping must also be assigned a TIC, since it’s taxable in some states and exempt in others.
If a Lookup request does not include a TIC for a line item:
Keep TICs Current
States frequently update sales tax categories. Developers should not cache TIC definitions. TaxCloud provides real-time feeds with the latest TIC information for use in your UI/UX or selection tools.
Sales tax is calculated based on the final sales price—the amount the seller sets after all discounts or coupons are applied. By statute, “sales price” generally means the total consideration exchanged between buyer and seller (cash, credit, property, or services).
Sellers may choose from several common methods:
By default, TaxCloud applies sales tax to every transaction unless a valid exemption certificate is on file. An exemption may apply because:
To prevent tax from being charged, sellers must provide a TaxCloud-issued exemption certificate ID during tax calculation. If a certificate is incomplete or invalid, TaxCloud will apply sales tax and return a warning.
During each Lookup request, TaxCloud checks the exemptCert parameter:
To complete a certificate (single-purchase or entity-based), sellers must collect:
Once all discounts are applied and the revised sales price is determined, send a Lookup API request to TaxCloud. This ensures the tax is calculated accurately based on the discounted order total.
Once the cart is built with all components—line items (each with a Taxability Information Code, or TIC), shipping (as its own line item), discounts (applied at item or order level), and any applicable exemptions—you’re ready to calculate sales tax.
Send these details to the Lookup API. TaxCloud evaluates the order against destination-based rules, exemptions, discounts, and item-level TICs. The response includes the precise tax amount per line item, ensuring accuracy at checkout and preparing the transaction for order completion and reporting.
When the order is finalized and ownership of goods or services is transferred, order must be marked as complete in TaxCloud. This is done using the Authorized, Captured, or AuthorizedWithCapture APIs. Completing the order ensures that the tax is properly recorded and included in TaxCloud’s reporting and filing for that period.
Important: If you don’t complete the order, the transaction will not be reported and your tax filings will be incomplete.
Integrating with TaxCloud ensures that every step of the checkout process—cart creation, tax lookup, and order completion—is accurately captured for compliance. By securely managing API credentials, building orders with all taxable and exempt components, and finalizing transactions through the required completion APIs, your platform guarantees that sales tax is calculated, recorded, and reported correctly. Following these practices streamlines tax management and also protects your business from filing errors and compliance risks.