Calculate Cart Tax
Available on Enterprise Plan
Forwards a cart to TaxCloud (POST /connections/{connectionId}/carts) using the merchant’s stored credentials and returns TaxCloud’s response verbatim. Additional cart fields (items, transactionDate, destination, …) are relayed unchanged.
Authentication
X-API-KEYstring
API Key authentication via header
Request
This endpoint expects an object.
items
The carts to calculate tax for. Most integrations send a single cart; up to 100 carts may be calculated in one call.
merchantId
UUID of the merchant whose TaxCloud connection is used. Must be owned by the calling account. Consumed by the Ziptax layer for routing and not forwarded to TaxCloud.
transactionDate
RFC3339 datetime the carts are calculated for. Defaults to the current time when omitted.
Response
TaxCloud response relayed verbatim.
connectionId
The TaxCloud connection the calculation ran under.
items
One calculated cart per submitted cart, in the same order, with per-line-item tax rates and amounts.
transactionDate
RFC3339 datetime the carts were calculated for.
Errors
400
Merchant Cart Calculate Body Bad Request Error
401
Merchant Cart Calculate Body Unauthorized Error
403
Merchant Cart Calculate Body Forbidden Error
404
Merchant Cart Calculate Body Not Found Error
413
Merchant Cart Calculate Body Content Too Large Error
422
Merchant Cart Calculate Body Unprocessable Entity Error
429
Merchant Cart Calculate Body Too Many Requests Error
500
Merchant Cart Calculate Body Internal Server Error
502
Merchant Cart Calculate Body Bad Gateway Error
504
Merchant Cart Calculate Body Gateway Timeout Error