Issue the shopper's reverse label (IssueLabel)
POST/return-authorizations/:authorizationId/labels
Asks the shipping context's POST /return-labels route for the reverse label of packageNo (1..5), links the tracking number and publishes ReturnLabelIssued. The route is the ONE in-org call this context makes; while it is not configured (or answers anything but 200) the answer is 422 label-unavailable -- tolerant, never a 500. Only an open physical authorization is labelable.
Request
Responses
- 200
- 400
- 404
- 409
- 422
- 500
The authorization with the tracking number linked.
Response Headers
Set to the literal true when this response was replayed from the idempotency store; absent otherwise.
The Idempotency-Key is missing (idempotency-key-required), malformed (idempotency-key-invalid) or reused on a different request (idempotency-key-reused, 409); a malformed query is validation-failed.
No authorization exists with that id.
The command does not fit the state (illegal-transition) or another request modified the resource (concurrent-update).
The body or the world refuses the command; validation-failed (malformed body, unknown line, over the line ceiling), group-not-shipped, no-return-destination, label-unavailable or authorization-expired.
An unexpected failure; the body never leaks the internal error.