Where a parcel is, and everything that has happened to it.
You need this if you show the buyer a tracking page, or you react to deliveries and problems in your own system.
Two endpoints, and it is easy to pick the wrong one
| Track shipments | Track shipments (authenticated) | |
|---|---|---|
| Send | trackingNumbers — an array | carrier, service, locale and trackingNumber |
| Answers with | Envia's own record of the shipment | the carrier's live detail, queried with your account's credentials |
| Use it | almost always | when you need what only the carrier knows |
Start with Track shipments. It takes the tracking numbers on their own, several at a time, and it does not ask you to remember which carrier and service each parcel went out with — which you would otherwise have to store just to track it.
The authenticated one is the exception, not the upgrade. It needs all four fields, and locale is an integer, not a language tag.
Polling is the fallback, not the plan. For anything at volume use webhooks — Envia pushes you each event instead.