Create an inbound plan (CreateInboundPlan)
POST/inbound-plans
Declares what the seller will send to one destination node. The plan starts DRAFT. The seller must be ACTIVE; the node must be ACTIVE with the INBOUND capability (node-cannot-receive).
Every line is in eaches; for CASE_PACKED each line's quantity must be a whole number of the case GTIN's units per pack. Under ADR 0015, when the node declared
monthlyVolumeDm3 AND every line carries unitVolumeDm3, the plan's total volume is checked against the node's tier-factored monthly limit (inbound-capacity-exceeded);
either side unknown records capacityEnforced: false and never blocks the plan. A NETWORK_SPLIT placementOption must destination an ACTIVE INBOUND_CROSS_DOCK
and records the redistribution and the fee basis as facts.
Request
Responses
- 201
- 400
- 404
- 409
- 422
- 500
The inbound plan, DRAFT.
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).
The request is malformed or breaks a rule. Problem types: validation-failed, case-pack-not-uniform (ErrCasePackNotUniform), case-qty-mismatches-gtin (ErrCaseQtyMismatchesGtin), carton-overweight (ErrCartonOverweight), carton-oversize (ErrCartonOversize), invalid-sscc (ErrInvalidSscc), carton-contents-mismatch-plan (ErrCartonContentsMismatchPlan), inbound-capacity-exceeded (ErrInboundCapacityExceeded, ADR 0015), network-split-destination (ErrNetworkSplitDestination, ADR 0015) and network-split-unavailable (ErrNetworkSplitUnavailable, ADR 0015).
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.