Skip to main content

Issue a shipping label for one package (IssueLabel)

POST 

/labels

In-org route called by vendor-connectivity (contracts-delta E2). Reads the ship-to from customer-ordering (GET /orders/{orderId}/ship-to) BEFORE the transaction opens, stores it encrypted, starts the package journey (LABELLED) and publishes LabelIssued. The response never contains the address. A replay of the same Idempotency-Key returns the first response when that response is final for the request: a success and a refusal that is stored (see the Idempotency-Key parameter). A refusal that follows state which can change is not stored, and a retry under the same key executes again. An order collected at a pickup point (ADR 0016) has no address to read: the label's destination prefix is the point's own, taken from this context's local view of node-topology's pickup points, and the point must be ACTIVE in that view.

Request​

Responses​

Label issued (or replayed for a known Idempotency-Key).

Response Headers
    Idempotency-Replayed

    Present, with the value true, only when the response is a replay of the answer stored for the Idempotency-Key.