Skip to navigation

Change an item's quantity

Holds a different number of units of an extra already on the cart, up or down from the number held now, and returns the cart repriced. The rest of the cart is untouched — the customer keeps the same hold and the same expiry.

  • itemId is the id of the line on the cart response, not an inventory item ID. Two items of the same extra at different price options are separate lines with ids of their own
  • quantity is the number to end up holding and is at least 1. To drop the item, send DELETE /carts/{cartId}/items/{itemId}
  • Only an Extra item can be changed. A cart’s seats and GA are set when it is created; to release them, delete the cart with DELETE /carts/{cartId}

Authentication

X-TT-API-Keystring
API Key authentication via header

Path parameters

cartIdstringRequiredformat: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"

Cart ID (UUID)

itemIdstringRequired1-64 characters

Cart item ID, as it came back on the cart response items[].id

Headers

X-TT-PlatformenumRequired
Identifies the platform the request comes from.
Allowed values:
X-TT-RetailerstringRequired
Your retailer identifier, provided during onboarding. It must be a retailer your API key was issued for.

Request

This endpoint expects an object.
quantityintegerRequired>=1

Number of units of this item to hold, up or down from the number held now. At least 1: to drop the item, send DELETE /carts/{cartId}/items/{itemId} instead.

Response headers

X-RateLimit-Limitinteger
How many requests this API key may make for this retailer in the current window. Sent only when the request was counted against that limit. A response served from cache was not counted and repeats the value it was cached with.
X-RateLimit-Remaininginteger
How many requests this API key has left for this retailer in the current window. Sent only when the request was counted against that limit. A response served from cache was not counted and repeats the value it was cached with.

Response

Cart repriced for the new quantity.
dataobject
Shopping cart containing held inventory cart items.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
410
Gone Error
429
Too Many Requests Error