Skip to main content

Request labels for an accepted purchase order (RequestLabel)

POST 

/vendor/shipping-labels

Synchronous (the documented exception to the 202 rule, G31): labels are issued by shipping-and-tracking (POST /labels, IssueLabel, called with poNumber, packageNo, assignmentId, orderId and tier that this context holds from the release) inside this request and returned in the response. Allowed only once the purchase order is ACCEPTED (ErrLabelBeforeAcceptance). A label never carries the ship-to address. Re-requesting a label for the same (poNumber, packageNo) returns the label already issued. When shipping-and-tracking cannot answer, the answer is 503 upstream-unavailable; labels already issued stay stored and a retry returns them.

Request​

Responses​

One label per requested package.

Response Headers
    Idempotency-Replayed

    true when this response is a replay of the first response stored for the Idempotency-Key (a 2xx or a final refusal); absent otherwise. A refusal that can pass on a retry is never stored, so it is never replayed.