cart

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.
post/tax/connections/{connectionId}/carts

Request

  • Base URL: https://api.v3.taxcloud.com
  • URL: https://api.v3.taxcloud.com/tax/connections/{connectionId}/carts
  • Auth: HTTP bearer

Path parameters

connectionIdstring required

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

Request body

$schemastring uri

A URL to the JSON Schema for this object.

transactionDatestring date-time

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

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

connectionIdstring required

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

transactionDatestring date-time required

The RFC3339 datetime string the cart is calculated for

Changes

No recorded changes to this operation across all 1 revision of this API.