Tracking endpoint
There are two main ways to track your shipments:
- Pull-based tracking using the tracking endpoint
- Push-based tracking updates using webhooks
This section discusses pull-based tracking, using the tracking endpoint. For information about push-based tracking using webhooks, see the webhooks section.
Pull-based tracking involves periodically sending requests to the tracking endpoint to fetch the latest status of an order. This allows you to get updates whenever you need them.
To poll for updates, send a GET request to the tracking URL. The endpoint returns a JSON response containing the current status of the order, along with a history of tracking events, which you can parse in your own app.
You can choose the frequency of your polling based on your needs. For example, you might poll every few hours for standard orders or more frequently for express or priority orders.