Shipments
Cancel Shipment
Cancel a shipment order
DELETE
Cancel a shipment order. This calls the logistics provider API to cancel the order and updates the shipment status to
cancelled.
Request
Path parameters
string
required
Shipment reference ID (e.g.,
P2604154821).Response
On success, the API returns200 OK with the cancelled shipment object.
string
required
Shipment reference identifier.
string
required
Shipment lifecycle status. Will be
cancelled after a successful cancellation.string
required
Logistics provider. One of
go, dhl, or tof.string
External tracking number from the logistics provider. May be
null.object
Pickup address. May be
null.object
Delivery address. Same structure as
origin. May be null.object
Scheduled pickup window. May be
null.string
Optional notes. May be
null.object[]
required
Chronological lifecycle events from the logistics provider (oldest first). Each entry has a
status (free-form provider-sourced label) and time (ISO 8601). Empty array if no events
observed yet.ShipmentAppointmentLink[]
required
Appointments that were linked to this shipment before cancellation. Each entry is
{ id, added_at }; cross-reference each id against
Get Appointment.string
required
Creation timestamp (ISO 8601).
string
Last update timestamp (ISO 8601). May be
null.