Record Tracking Event
POST/suppliers/shipments/:shipment_id/events
Adds a tracking event by hand, e.g. a status read off the carrier's site. The shipment moves to the status the event implies (see code), and takes its estimated_delivery_at if it carries one. Events can't be edited or deleted: to correct one, record a newer event.
Only allowed once the shipment is dispatched, and not on a cancelled shipment. Returns 422 if the shipment can't move to the implied status (e.g. a delivered shipment back to in transit), or if a newer event has already set its status. A carrier delivered event is not a goods receipt.
Needs the shipments-update-as-supplier permission. Returns the updated shipment.
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.