Fetch Tracking Links
Locker to Locker (Consumer to Consumer) is the only product that has two separate tracking links: one for the sender and one for the recipient. All other products return a single tracking link.
These links are not returned by the create-order call. Use Fetch Order to retrieve them.
When Are the Links Available?
- Create the order with
parcelPackingConfirmed: true— a Locker to Locker order is created and confirmed in a single call. Save theorderIdfrom the response. - The create-order response contains only a preliminary
trackinglink. It is generated before the parcel exists in our tracking system, so it does not resolve yet — opening it gives a broken link. Do not send this link to the sender or the recipient. - Once the full order with packing confirmed has been sent,
senderTrackingandrecipientTrackingare generated. When they are ready they replace the preliminarytrackinglink, so call Fetch Order with the savedorderIdto read them.
Tracking links are returned per parcel under parcels[].links when the parcel is in a trackable state.
Endpoint
Production
GET api.integration.instabee.com/orders/{orderId}
Sandbox
GET sandbox-api.integration.instabee.com/orders/{orderId}
Use sandbox credentials against the sandbox host.
Headers:
1Authorization: Bearer {token}1Authorization: Bearer {token}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| orderId | string | required | Instabee order ID returned from create order |
What to Read in the Response
Look at each parcel in parcels[] and inspect the links object.
| Field | Type | Description |
|---|---|---|
| links.recipientTracking | string | Recipient tracking URL (when available) |
| links.senderTracking | string | Sender tracking URL (when available) |
recipientTracking and senderTracking may be absent for non-trackable parcels (for example cancelled parcels), in which case links is an empty object.
See the code examples panel for a full masked response sample.
Integration Notes
- Save
orderIdfrom the create-order response. - Wait until the order has been sent with
parcelPackingConfirmed: true— the links do not exist before that. - Call Fetch Order using that
orderId. - For each parcel, read
parcels[].links.recipientTrackingandparcels[].links.senderTrackingwhen present. - Do not assume both tracking links exist for every parcel state, and do not fall back to the preliminary
trackinglink from the create-order response. - If the links are not there yet, retry Fetch Order rather than caching an empty result.