Set the destination postal prefix
PUT/carts/:cartId/destination
SetDestination. Replaces the destination of the cart. 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 (on a write it is stored and replayed; the request alone decides).
internal-error (an unexpected failure; the detail never carries the internal message).