Calculate sales tax for one or more carts

Use this endpoint to view the tax amount and rate for a single cart or multiple carts. The cart represents a customer’s shopping cart or other transaction that has not yet been completed. Each cart can be given a custom CartID to be referenced later. This endpoint supports UPSERT actions:

  • If the specified cartID doesn’t exist, a new cart is created.
  • If the cartID already exists, the existing cart is updated. This overwrites the previous cart items.

Path parameters

connectionIdstringRequired

represents the ID of a connection. It is used as a unique identifier for the connection

Headers

X-API-KEYstringRequired

Request

This endpoint expects an object.
itemslist of objectsRequired
transactionDatedatetimeOptional

The RFC3339 datetime string the cart is calculated for (if no value is passed in now is assumed)

Response

OK

connectionIdstring>=36 characters

represents the ID of a connection. It is used as a unique identifier for the connection

itemslist of objects
transactionDatedatetime

The RFC3339 datetime string the cart is calculated for

$schemastringOptionalformat: "uri"

A URL to the JSON Schema for this object.

Errors