Skip to main content
Calculations are core to what the Zamp API provides. Given a transaction object, the Calculation endpoint returns the tax due along with a detailed breakdown of those taxes. After collecting taxes, you should create the transaction to persist it for filing.

Calculate Tax

This endpoint calculates taxes for a given transaction. It’s intended to be used at transaction time to determine how much tax to collect. But once you’ve collected, you’ll later want to make sure and create the transaction to persist it for filing.

Request

transaction
transaction object
required
The transaction object to calculate taxes for. See the Transactions page for the full schema.

Response

The response includes the original transaction plus taxDue and a taxes array with the full jurisdiction breakdown.
Tax is itemized per jurisdiction (state, county, city) and split between the taxable base and shipping/handling, so a single line item can produce several taxes entries. The taxDue values across all entries sum to the top-level taxDue.

Tax Breakdown Fields