Void a label
Voids a shipping label and initiates a refund. A
A label paid from account funds is refunded about 14 days after the void, once the carrier shows the package was never scanned. Follow it with
draft that has not been bought is cancelled immediately. A purchased label is cancelled with the carrier: any status except delivered and void can be submitted, including labels you have already downloaded or printed. Whether the carrier accepts depends on the service and on how long ago the label was bought; a label the carrier has already scanned is normally refused.A label paid from account funds is refunded about 14 days after the void, once the carrier shows the package was never scanned. Follow it with
GET /v1/labels/{id} (refund) or the label.refunded webhook.Parameters
Path Parameters
id
string
Required
The label ID to void
Returns
200
Multi-piece shipments are voided whole. One call cancels every box; there is no per-piece void and none is needed. The
packages array is retained on the label afterwards so the piece tracking numbers stay available for reconciliation.
200
Label voided successfully
400
Cannot void label.
error.code says why:CANNOT_VOID — the label has been delivered.ALREADY_VOIDED — the label is already void.VOID_REQUIRES_SUPPORT — this service does not accept cancellation through the API. Contact support to cancel it; do not retry.VOID_NOT_READY — the carrier has not confirmed the cancellation yet. Retry after a short wait, and space out requests when cancelling a batch.VOID_FAILED — the carrier refused, for example because the label has been scanned or is past the void window.
401
Authentication required
403
SANDBOX_KEY — a test key (ak_test_) cannot void a live label. Void test labels (lbl_test_) with a test key, live labels with a live key.
404
Label not found
409
The label cannot be voided yet:
PURCHASE_IN_PROGRESS — a purchase is still running. Poll GET /v1/labels/{id} until it settles, then void.REFUND_IN_PROGRESS — the last purchase attempt failed and its charge is still being returned to your balance. Retry after the refund completes.PURCHASE_OUTCOME_UNKNOWN — a previous purchase is awaiting manual review. Contact support.
Related
Labels
DELETE/api/v1/labels/[id]