Skip to main content
DELETE
Cancel a shipment order. This calls the logistics provider API to cancel the order and updates the shipment status to cancelled.
Shipments cannot be cancelled after pickup. Attempting to cancel a shipment that has already been picked up, delivered, or previously cancelled returns 409 Conflict.

Request

Path parameters

string
required
Shipment reference ID (e.g., P2604154821).

Response

On success, the API returns 200 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.

Error responses