Confirm an inbound plan (ConfirmInboundPlan)
POST/inbound-plans/:planId/confirmations
Moves a DRAFT plan to CONFIRMED and publishes InboundPlanConfirmed. Shipments are opened only against a confirmed plan. Confirming a confirmed or cancelled plan is illegal-transition.
Request
Responses
- 200
- 400
- 404
- 409
- 500
The inbound plan.
Response Headers
Present, with the value true, only when this answer is a replay of the stored response of an earlier request with the same Idempotency-Key. A refusal whose problem type is RETRYABLE is never stored, so it is never replayed.
The Idempotency-Key header is missing (idempotency-key-required) or is not 1 to 128 printable ASCII characters (idempotency-key-invalid).
The resource does not exist (not-found).
The write conflicts with the state of a resource. Problem types: seller-exists, seller-suspended (ErrSellerSuspended), node-cannot-receive (ErrNodeCannotReceive), sscc-not-unique (ErrSsccNotUnique), shipment-not-labelled (ErrShipmentNotLabelled), illegal-transition and concurrent-update (optimistic-concurrency conflict; re-read and retry), and idempotency-key-reused (the Idempotency-Key was already used with a different method, path or body; a client bug, do not retry).
An unexpected failure (internal-error); the detail never carries the internal message. A 5xx is never stored by the idempotency middleware, so the same Idempotency-Key retries the real work.