Set the quantity of a cart line
PUT/carts/:cartId/lines/:catalogItemId
SetLineQuantity. Replaces the quantity of the line of the item. Idempotent by method (no Idempotency-Key). Clears the current delivery quote and selections.
Request
Responses
- 200
- 400
- 404
- 409
- 422
- 500
The updated cart.
malformed-request (the body is empty, not JSON, carries an unknown field or trailing data, a wrong type, a NUL character or exceeds 64 KiB).
not-found (no such cart or line, or an identifier over 128 characters; on a write it is not stored - the key is released and the same Idempotency-Key runs again, a cart or line can appear later) or resource-not-found (a NUL character in the path).
cart-closed (ErrCartClosed) or concurrent-update.
validation-failed or quantity-out-of-range (ErrQuantityOutOfRange).
internal-error (an unexpected failure; the detail never carries the internal message).