Shipping
Tracking
Where a parcel is, in a handful of statuses that stay stable as the network behind them grows.
GET/v1/track/{tracking_number} returns a parcel's public status, its locker, when the customer has to collect it by, and its history. It finds only your own parcels. Your customers follow theirs on the iBOX tracking page; the link is in their SMS.
curl https://api.iboxdelivery.com/v1/track/IBX2513276175 \
-H "Authorization: Bearer $IBOX_API_KEY"Statuses
| Status | Means |
|---|---|
booked | Booked, label printed or waiting for an iBOX courier. |
in_transit | With iBOX, on its way to the locker. |
ready_for_pickup | In the locker. The customer has their code; collect_by says until when. |
collected | The customer has it. |
returning | Not collected in time, or returned by the customer, and on its way back to you. |
returned | Back with you. |
cancelled | Cancelled before it moved. |
exception | Something needs a person. We are on it, and will contact you if you need to act. |
Branch on these, not on the more detailed status that GET /v1/shipments returns: that one follows our internal steps and gains new values as the network changes. New public statuses are announced in the changelog first.
For changes as they happen rather than by asking, use webhooks.