Cancel Shipment
POST/suppliers/shipments/:shipment_id/cancel
Cancels a shipment that was recorded in error or pulled before pickup. Allowed from draft, dispatched and exception; once the carrier has it in transit, record a returned_to_sender event instead. Its lines stop counting as shipped, and its tracking number can be used again. Needs the shipments-cancel-as-supplier permission.
Request
Responses
- 200
- 403
- 404
- 422
Success
The API user lacks the permission, the shipment belongs to another supplier, or the shipment is not in a status that allows the action.
No shipment with this ID for your supplier account.
Validation failed. errors is keyed by the field path, e.g. lines.0.quantity_shipped.