Tracking and change feed
Read the current parcel with GET /v1/shipments/{shipment_id} and the event history with GET /v1/shipments/{shipment_id}/tracking (scope tracking:read). List your parcels with GET /v1/shipments; filtering by awb returns at most one. Save shipment_id as your join key, even after an AWB is assigned.
Polling for changes
GET /v1/shipments?updated_since=<timestamp> returns shipments changed since that time, oldest change first.
- Settle window. The feed holds back changes from the last 60 seconds, so a page never skips a change that was still being written. The feed therefore lags real time by about a minute. Use webhooks when you need changes as they happen.
- At-least-once. A change can still appear after you have paged past its time, so overlap your windows: start each poll a few minutes before the newest
updated_atyou have seen, and dedupe onshipment_idplusupdated_at. Repeated shipments are expected; retain a durable synchronization checkpoint only after you have processed the page successfully. - Order status lives on shipments.
GET /v1/orders?updated_since=changes only when the order itself is edited, so poll/v1/shipmentsfor status changes.
Canonical shipment statuses
Every shipment status, in the API and in webhooks, is one of these 16 values:
status | Meaning |
|---|---|
created | The order exists; the shipment is not booked yet. |
ready_to_ship | Booked with a courier and waiting for pickup (includes manifested and pickup scheduled). |
manifest_failed | The courier refused the booking; reallocate the shipment from the dashboard. |
picked_up | The courier has picked the parcel up. |
in_transit | On its way to the customer. |
out_for_delivery | With the delivery agent today. |
delivered | Delivered to the customer. |
ndr | A delivery attempt failed (non-delivery report); an action is pending. |
rto_initiated | Return to origin started after failed delivery. |
rto_in_transit | Returning to your warehouse. |
rto_delivered | Back at your warehouse. |
return_initiated | A customer return is booked; pickup is pending. |
return_picked_up | The return has been picked up and is on its way to you. |
return_delivered | The return reached your warehouse. |
cancelled | The shipment (or, with direction dto, the return) was cancelled. |
lost | The courier declared the parcel lost. |