Confirm shipment of one network order
POST/network-orders/:networkRef/shipment-confirmation
The one write endpoint of this context (ADR 0014). Tells the network that the order has shipped (submitShipmentConfirmations), moves the order to CONFIRMED and publishes NetworkOrderShipmentConfirmed. Takes no request body.
This route is the operator fallback. The primary trigger is the ShipmentConfirmed event of outbound-shipping, which the service consumes and joins on localOrderId (ADR 0014, addendum of 2026-11-06); both go through the same use case. The label is requested from the network first, so a label failure leaves the order ACKNOWLEDGED.
Idempotent twice over: the request carries a required Idempotency-Key (fleet REST guideline section 2) whose first answer is stored and replayed with Idempotency-Replayed: true, and an order already CONFIRMED is still returned unchanged with 204, without re-submitting to the network or re-publishing the event, when a NEW key is used. The route is registered only when the shipment-confirmation use case is wired.
Request
Responses
- 204
- 400
- 404
- 409
- 422
- 500
Shipment confirmed (or the order was already CONFIRMED).
Response Headers
Present, with the value true, only when this answer is a replay of the stored answer for the same Idempotency-Key.
The Idempotency-Key header is missing (idempotency-key-required) or not 1-128 printable ASCII characters (idempotency-key-invalid; also when the header is repeated), or the request body could not be read or contains a NUL character (malformed-request-body), or the query string contains a NUL character (invalid-request).
No network order with that networkRef (network-order-not-found), or a path that carries a NUL character (resource-not-found).
The order is not ACKNOWLEDGED, so shipment cannot be confirmed yet (confirm-before-acknowledge). A shipment may not be confirmed for an order we never committed to. Also the answer when the Idempotency-Key was already used with a different request (method, path or body): problem type idempotency-key-reused, a client bug, not to be retried. Or a request with the same key is still in flight after the server waited 30 seconds for it (idempotency-key-in-progress): retry later with the same key. Finally version-conflict: another writer (the demand poller or a sweep) changed the order between this request's load and its save — retryable after a reload.
The networkRef is empty (empty-network-ref).
Unexpected error, including a failed submission to the network AFTER the order was already saved as CONFIRMED; a retry then returns 204 without re-submitting.