Update the quantity of lines already in a cart

Changes the quantity of one or more lines already in the cart, identified by their line id, and returns the updated cart with recalculated totals. For a timed ticket or package, increasing the quantity re-checks availability for the date and time already on the line, so the call can fail if the held slot no longer has enough capacity.

Headers

x-entriastringRequired
Identifies which store this request is for. Required on every store-scoped route. It is not authentication and not a secret — it grants no privileges and is safe to send from a browser. You receive the value once your Entria backend has been created and configured. Missing header returns 400; an unknown store returns 404.

Query parameters

identitystringOptional

Opaque encrypted token identifying the shopper, used to apply customer-specific pricing when re-quoting the updated lines. Pass it through unchanged; it is not meant to be decoded by the caller.

Request

This endpoint expects an object.
cartIdstringRequired
Id of the cart containing the lines to update.
lineslist of objectsRequired
One or more line updates. Each entry changes the quantity of a single existing line.

Response

The cart after the line quantities were updated, with recalculated totals.
cartobject

Errors

400
Bad Request Error
404
Not Found Error
500
Internal Server Error