Shipment Status Lifecycle
A shipment moves forward through the following statuses under normal conditions. Two terminal failure states —cancelled and failed — can occur at any point if the delivery cannot be completed.
Two Ways to Track a Shipment
TLDP provides two tracking endpoints to suit different use cases. Choose based on who is making the request and how much detail they need.Public Tracking
No authentication required — or pass your publishable key for higher trust. Returns a
PublicTracking object with recipient name, courier, estimated delivery, and an event timeline. Designed for embedding in customer-facing tracking pages.Detailed Tracking
Uses your secret key. Returns a full
TrackingEvent[] array with precise timestamps, status codes, human-readable descriptions, and location data. Designed for backend monitoring and ops dashboards.Public tracking response fields (PublicTracking)
Detailed tracking event fields (TrackingEvent)
TypeScript Examples
- Public Tracking
- Detailed Tracking
The public tracking endpoint is unauthenticated — no key is required. You may optionally pass a publishable key if you want to use the SDK client you already have initialised.
Handling Terminal States
When a shipment reachescancelled or failed, no further status transitions will occur. Build your integration to handle these states explicitly: