This operation cancels or voids a shipment label that has not been processed by the carrier. When you cancel an unused prepaid shipment label, the API initiates a request for an electronic refund.
Key Considerations
Shipment Cancelation Rules
shipmentId or parcelTrackingNumber to cancel a shipment.shipmentId takes precedence and parcelTrackingNumber is ignored.parcelTrackingNumber is provided, the shipment associated with that parcel tracking number is canceled.The Shipment has been cancelled.
Invalid request.
The request could not be authorized.
The requested resource was not found.
The request could not be completed due to an internal error.
{- "shipmentId": "PUROLATOR2200626353009030",
- "parcelTrackingNumber": "1234sjhgf",
- "references": {
- "additionalReference1": "612987641",
- "additionalReference2": "989"
}
}{- "carrier": "USPS",
- "totalCarrierCharge": 0,
- "parcelTrackingNumber": "9471309105156000624885",
- "status": "INITIATED",
- "references": {
- "additionalReference1": "612987641",
- "additionalReference2": "989"
}
}