Void an issued label (VoidLabel)
POST/labels/:labelRef/voids
Moves the label ISSUED to VOIDED, closes the LABELLED journey of the same tracking number as VOIDED and publishes LabelVoided (contracts-delta E16). Refused once the package has been handed over (void-after-handover). Voiding a VOIDED label returns it unchanged and publishes nothing. A reverse label (ADR 0017) has no journey: voiding it moves the label to VOIDED and publishes LabelVoided, nothing else, and the response is then a ReturnLabel.
Request
Responses
- 200
- 400
- 404
- 409
- 422
- 500
Label voided (or already voided).
Response Headers
Present, with the value true, only when the response is a replay of the answer stored for the Idempotency-Key.
idempotency-key-required (the Idempotency-Key header is missing) or idempotency-key-invalid (not 1-128 printable ASCII characters).
not-found. The addressed label or journey does not exist.
void-after-handover (ErrVoidAfterHandover), journey-closed (ErrJourneyClosed, the package's journey is already closed, for example delivered), concurrent-update (ErrConcurrentUpdate) or idempotency-key-reused (the Idempotency-Key was already used with a different request).
validation-failed. The request is well-formed JSON but violates a value rule. It is not stored under the Idempotency-Key; the key is released and a retry with the same key is validated again.
internal-error. An unmapped failure; the detail never carries the cause. Never cached by the idempotency middleware, so the same key retries the work.