Poll tracking updates
UseGET /tracking/{id} to retrieve real-time shipment tracking data in a unified format. This guide covers the polling flow, how to interpret tracking statuses, and patterns for building customer notifications.
Retrieve tracking data
Use theid from the label creation response:
Response
200 OK
Understand the tracking status
Use the top-leveltag field for high-level status logic:
| Tag | Customer-facing meaning | Action |
|---|---|---|
Pending | Order is being processed | No notification needed |
InfoReceived | Shipment registered with courier | Notify: “Your order has shipped” |
InTransit | Package is on the way | Notify: “Your package is in transit” |
Delivered | Package delivered | Notify: “Your package has been delivered” |
Exception | Delivery issue | Notify: “There’s an issue with your delivery” and investigate |
Cancelled | Shipment cancelled | Handle internally |
Unknown | Status unavailable | No notification — retry later |
Polling pattern
Since webhooks are not currently available, pollGET /tracking/{id} at a reasonable interval to detect status changes.
Recommended approach
Polling guidelines
| Shipment stage | Recommended interval |
|---|---|
Pending / InfoReceived | Every 4–6 hours |
InTransit | Every 30–60 minutes |
Delivered / Cancelled | Stop polling |
Exception | Every 15–30 minutes until resolved |
Tracking data is fetched from the courier in near-real-time. Polling more frequently than every 15 minutes is unlikely to yield new data and counts against the recommended rate limit of 10 requests per second.
Error handling
| Status | Meaning | Action |
|---|---|---|
| 200 | Tracking data retrieved | Process the tag and checkpoints |
| 403 | Access denied | The label belongs to a different account |
| 404 | Label not found | Verify the label ID is correct |
| 502 | Upstream service error | Retry with exponential backoff |
Next steps
Core Concepts
Full reference for tracking status tags and checkpoint schema.
Idempotency and Retries
Safe retry patterns for handling transient failures.