Shipments
Update Shipment
Modify shipment details before pickup
PATCH
Update shipment details such as pickup schedule, package count, or notes. If any logistics-relevant fields change (pickup date, time, package count, or weight), the existing logistics order is cancelled and a new one is created automatically. Fields you omit are preserved from the existing shipment. Updated schedule fields are validated against the pickup schedule rules.
Request
Path parameters
string
required
Shipment reference ID (e.g.,
P2604154821).Body parameters
All body parameters are optional — only include the fields you want to change.string
New pickup date in
YYYY-MM-DD format, interpreted in the origin location’s timezone.string
New earliest pickup time in
HH:MM format, interpreted as wall-clock time in the origin
location’s timezone.string
New latest pickup time in
HH:MM format, interpreted as wall-clock time in the origin location’s
timezone.integer
New number of packages.
number
New weight in kg.
string
New notes or remarks. Maximum 128 characters.
Response
On success, the API returns200 OK with the updated shipment.
string
required
Shipment reference identifier.
string
required
Shipment lifecycle status. One of
pending, in_transit, delivered, fault, or cancelled.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 linked to this shipment, oldest-link first. 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.