What Is a Tracker Object in a Shipment Tracking API?
A tracker object is a structured record that an application uses to follow a shipment through a tracking API. It usually connects a tracking number and carrier information to shipment status, tracking events, and identifiers needed to retrieve or update the record. The term is not a universal API standard: its exact fields, lifecycle, and relationship to the physical package depend on the provider’s documentation.
For a developer, the useful question is not just what a tracker object contains. It is what the object represents in a particular API, when it is created, how it changes, and which fields an application can safely use to identify a shipment or tell a customer what happened.
What does the object represent?
Think of a tracker object as the API’s working record for tracking activity. A merchant might have an order in an order management system, a shipping label with a tracking number, and a tracker object in a tracking service. Those are related records, but they are not necessarily the same thing. An order can contain multiple packages; a package can generate multiple tracking events; and an API may assign its own identifier to the record it uses to monitor that package.
“Tracker object” is therefore more precise than “tracking result.” A tracking result may be a status shown to a customer at one moment. A tracker object may also contain the identifiers, carrier assignment, timestamps, and event history that make that result usable in software. Some APIs use a different name, such as a shipment, tracking, or parcel record. The label alone does not tell you the schema.
The distinction matters when building an integration. If your database treats an order ID, tracking number, and API-assigned tracker ID as interchangeable, a replacement label or split shipment can attach updates to the wrong package. Store each identifier according to what it identifies, and follow the provider’s documented rules for creating and retrieving records.
Fields you may encounter
There is no required, cross-provider set of tracker fields. The following groups describe common integration concerns, not a promise that any particular API returns every field:
- Identity: An API-assigned record ID, a tracking number, and sometimes a merchant-supplied reference. A tracking number is useful for finding a package, but a provider’s internal ID may be the safer key for later API operations if its documentation says so.
- Carrier information: A carrier name, code, or detected carrier. Carrier identification may be supplied by the client or determined by the tracking service. Check what happens if identification is ambiguous or changes.
- Current state: A normalized status or substatus intended to summarize progress. Its wording and possible values are provider-specific.
- Tracking events: Individual updates that may include a description, event time, and location. The current state summarizes the record; events explain the sequence behind it.
- Timestamps: Dates associated with creation, modification, carrier events, or delivery. These do not all describe the same moment and should not be displayed or sorted as if they do.
- Optional context: Depending on the API, a record may carry order references, destination information, service details, or other metadata. Treat these as optional until the documentation and an actual response establish otherwise.
For example, the following JSON is a conceptual illustration, not a 17TRACK response or a schema for any specific provider:
{
"id": "tracker_example_1",
"tracking_number": "EXAMPLE123",
"carrier": "example_carrier",
"status": "in_transit",
"events": [
{
"description": "Shipment processed",
"occurred_at": "2025-01-01T12:00:00Z"
}
]
}
The example shows how the pieces fit together, not which field names to implement. Copying an illustrative object directly into production code is a common source of integration errors. Start with the chosen API’s field definitions, sample responses, and error documentation instead.
How does a tracker object change over time?
In a typical workflow, an application first obtains a tracking number from its shipping process. It then submits the number, and possibly carrier information, to a tracking API or requests tracking information using the provider’s supported method. If the API creates a persistent record, the application saves the returned identifier and associates it with its own order and package records. It can then retrieve updates through the API or process notifications if that API offers them.
Creation does not necessarily mean that the carrier has published an event. A newly created tracker may have no usable movement history yet. Similarly, a successful API request confirms that the request was handled under the API’s rules; it does not, by itself, prove that the carrier has accepted the parcel or that delivery is imminent.
As events arrive, the object’s summary status may change. An application should keep the distinction between what the carrier reported, when the reported activity occurred, and when the tracking API received or returned it. Carrier events can be delayed or appear after later activity has already been displayed. If notifications are delivered more than once or out of order, the consumer needs rules for deduplicating and reconciling them rather than blindly overwriting its stored status with the last message received.
Delivery is also a state to interpret carefully. A status indicating delivery can support a customer-facing update, but it should not be assumed to include a signature, recipient identity, or proof-of-delivery document. Those details require separate fields or records where the provider makes them available.
Tracker object, tracking event, and order: the practical difference
These three concepts answer different questions. The order answers what the customer bought and what the merchant intends to fulfill. The tracker object answers which shipment record the tracking integration is monitoring and what its current tracking data says. A tracking event answers what was reported at a particular point in the shipment’s journey.
Suppose an order ships in two boxes. The application should be prepared to associate that order with two package-level tracking records if that is how its shipping and tracking systems model the shipment. Each record can then have its own events and delivery state. Showing one box as delivered must not silently mark the other box as delivered. Conversely, multiple scans for one box are not multiple packages; they are events associated with its tracking record.
This separation also helps when support teams investigate a complaint. An order view can show the customer’s purchase, while the associated tracker records show which packages have tracking data. Event details can then explain whether the displayed summary reflects a recent carrier update or an earlier one. A clean data model makes that investigation possible without guessing from a single status string.
How to use tracker objects safely in an integration
Before writing code against a shipment tracking API, map its documented object model to your own. The most consequential checks are usually these:
- Identify the record’s scope. Determine whether one object represents a package, a tracking-number-and-carrier combination, or another unit defined by the API. Do not infer this from the object’s name.
- Choose stable identifiers. Record the API-assigned ID if one is returned, along with your order ID, package ID, tracking number, and carrier reference as separate fields. Check the provider’s rules before assuming a tracking number is globally unique or can never be reused.
- Handle creation and lookup separately. Find out whether submitting a number creates a persistent tracker, requests an immediate lookup, or does both. Confirm what a repeated submission does, especially after retries or network timeouts.
- Model status as a projection, not the entire history. Preserve relevant events when your product needs an audit trail or a detailed tracking page. Avoid turning a normalized status into a claim the underlying event does not support.
- Define timestamp rules. Identify the event time and any API update time, including their time-zone formats. Decide how to display missing or uncertain event times instead of inventing precision.
- Plan for absent or unexpected data. Test a new tracking number with no scans, an unrecognized carrier, a missing location, a delayed event, and an unfamiliar status value. A robust interface can say that an update is unavailable without presenting that absence as a delivery failure.
- Protect access and personal information. Keep API credentials out of client-side code. Limit stored shipment and recipient data to what the workflow needs, and apply your organization’s access and retention rules.
If the API supports webhooks, also inspect its notification format and authentication method. A webhook payload might contain a full tracker object, a partial update, or only an identifier that your application must use to fetch the latest record. Design the consumer around the documented payload rather than assuming it matches a retrieval response. If your application polls instead, follow the provider’s published request limits and update guidance; repeated requests cannot force a carrier to produce a new scan.
Applying the concept to 17TRACK
17TRACK provides a Tracking API overview and API documentation for developers evaluating an integration. For this topic, the documentation is the place to verify the names and definitions of request and response fields, supported operations, and update mechanisms before implementing them. The generic JSON example above should not be read as a 17TRACK tracker-object definition.
A useful first step is to take one test shipment and trace it through the documented workflow: submit or retrieve its tracking information, record any identifier returned by the API, inspect how carrier and status values are represented, and compare subsequent updates with the original response. Repeat the test with a second package under the same order and with a number that has no tracking events yet. Those cases reveal more about the object’s practical meaning than a field list viewed in isolation.
FAQ
Is a tracker object the same as a tracking number?
No. A tracking number is an identifier associated with a shipment. A tracker object is an API record that may contain that number alongside carrier information, status, events, and other fields. The API’s documentation determines how the two are related.
Does creating a tracker mean the package has shipped?
Not necessarily. Creating or retrieving an API record does not establish that the carrier has accepted the parcel. Look for a relevant carrier event, and distinguish that event’s time from the time the API record was created.
Can one order have more than one tracker object?
Yes, an application should be able to accommodate multiple tracking records for an order that ships in multiple packages. The exact relationship depends on how the merchant, carrier, and API model those packages.
Should I rely on the current status or the event list?
Use the current status for a concise display when its meaning fits your use case. Use the events when you need to explain what happened and when. Check the API’s status definitions, and do not assume the event list is complete unless the documentation says so.
What should I check before storing a tracker response?
Confirm the object’s scope, identifier rules, required and optional fields, timestamp meanings, status definitions, and behavior when data is unavailable. If updates arrive through webhooks, verify their payload and authentication rules as well.
Sources
- 17TRACK Tracking API overview. Product entry point for evaluating the API.
- 17TRACK API documentation. Reference to consult for implementation-specific request, response, and update definitions.


