post
https://public-api.easyship.com/2024-09/shipments//cancel
Cancel a shipment after a label has been requested, as long as the shipment is not yet in transit.
Required authorization scope: public.shipment:write
Cancel vs Delete: Use Delete to remove a shipment before a label has been requested (
label_state: not_created). Use Cancel after a label has been requested, as long as the shipment is not yet in transit.
When can you cancel?
The shipment's label_state must be one of: pending, generated, printed, shipping_document_generated, failed, technical_failed, or reported.
The shipment's delivery_state must be pre-transit: not_created, pending, info_received, or expired.
When can you NOT cancel?
label_state: generating— the label is actively being generated; wait until it resolves togeneratedorfailedbefore retryinglabel_state: voidedorvoid_failed— the label has already been voided; the shipment cannot be cancelled via this endpointdelivery_stateisin_transit_to_customer,out_for_delivery,delivered, or similar — the shipment has left the origin facility- The label was generated more than 6 months ago (pre-paid shipments only)
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
