Select a delivery offer for a shipment group
PUT/carts/:cartId/delivery-selection
SelectDelivery. Replaces the selection of one shipment group. The selection must name an offer of the current quote (ErrStaleDeliverySelection; a groupNo the quote does not have is the same 409). Idempotent by method (no Idempotency-Key).
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).
stale-delivery-selection (ErrStaleDeliverySelection), cart-closed (ErrCartClosed) or concurrent-update.
validation-failed (on a write it is stored and replayed; the request alone decides).
internal-error (an unexpected failure; the detail never carries the internal message).