Skip to main content

Add a line to the cart (merges into an existing line of the item)

POST 

/carts/:cartId/lines

AddLine. One line per item: adding an item already in the cart merges quantities; nothing is ever rejected as a duplicate. Clears the current delivery quote and selections. Publishes CartLineAdded (analytics).

Request​

Responses​

The updated cart.

Response Headers
    Idempotency-Replayed

    "true" when the answer is the stored response of an earlier request with the same Idempotency-Key (a 2xx, or a refusal that is final for the request; a retryable refusal and a 5xx are never stored - the key is released); absent on the first execution.