Tracking API Reliability: How to Monitor Freshness and Catch Missed Updates
To monitor a tracking API reliably, measure more than whether requests succeed. Record when a carrier event occurred, when your provider made it available, and when your system received and processed it. Then alert on delayed ingestion, failed delivery, and gaps in expected processing—not simply on shipments with no new scan. A parcel can be moving normally while its tracking history remains unchanged.

For an engineering or logistics operations team, the practical goal is to know which part of the update path failed, which shipments may be affected, and how to recover without creating duplicate or misleading customer notifications.
Define what “fresh” means before setting an alert
A tracking update passes through several systems. A carrier records a scan; a tracking provider obtains and normalizes it; your integration retrieves or receives it; and your application stores it and updates the customer-facing view. A successful API response verifies only one part of that path. It does not prove that a carrier has issued a new event or that your application has displayed one.
Keep separate timestamps for the stages you can observe. A useful shipment-event record may include the carrier’s event time, the time your system first observed the event through the provider, the time your application ingested it, and the time it became visible downstream. Not every API exposes every timestamp. Where a timestamp is unavailable, label the measurement accordingly rather than treating one time as a substitute for another.
These timestamps answer different questions. The gap between carrier event time and first observation can indicate upstream reporting or retrieval delay, though carrier timestamps may be incomplete or inaccurate. The gap between first observation and ingestion points toward your transport or processing path. The gap between ingestion and display points toward internal jobs, caches, or storefront updates. Store timestamps with their timezone or in a consistent normalized format, and preserve the original event time when possible.
Two common freshness measures are event age, the time since the most recent known carrier event, and processing lag, the time between an update becoming observable and your system processing it. Event age is useful context for customer support, but it is a poor stand-alone API-health metric: a shipment may legitimately have no new scan. Processing lag is more actionable for detecting an integration problem.
Monitor the update path, not just the endpoint
Build a small set of signals that follows an update from request or notification to customer-visible state. The exact implementation depends on whether you poll an API, receive webhooks, or use both.
- Transport health: Track request success and failure by endpoint, response class, timeout, and authentication error. If you use webhooks, track receipt and acknowledgment separately. HTTP status codes have defined meanings, but your monitoring must also account for network failures that produce no HTTP response.
- Collection continuity: Measure how long it has been since a scheduled poll completed for each eligible shipment or partition. For webhook delivery, measure how long it has been since your receiver successfully processed an incoming notification. A quiet webhook alone is not proof of an outage.
- Processing health: Count accepted, rejected, retried, and permanently failed updates. Watch queue depth, age of the oldest queued item, and the number of shipments waiting for a state change to be applied.
- Freshness by cohort: Compare event age and processing lag among shipments in comparable states, carriers, and routes. An aggregate can hide a failure affecting only one segment.
- Downstream consistency: Check whether the shipment detail stored by your application matches what customers and support agents can see. A current ingestion pipeline does not guarantee a current tracking page.
Maintain a processing ledger keyed to shipment identity and, where available, a provider event identifier. Record the request or delivery attempt, outcome, and last successful reconciliation time. This lets an operator distinguish “no update exists” from “we have not checked successfully” and “we received an update but did not apply it.”
Catch missed updates with reconciliation
Webhooks can reduce the need for frequent polling, but a webhook receiver should not be your only method of detecting missed updates. Notifications can fail to reach your application, fail during processing, or arrive out of order. Conversely, polling can miss changes if a job stops, a cursor is mishandled, or an incomplete response is treated as final. A periodic reconciliation job gives you an independent check.
- Select eligible shipments. Include shipments you still expect to monitor, based on your business rules and their current lifecycle state. Exclude records intentionally closed or no longer subscribed; otherwise, you will inflate the apparent backlog.
- Fetch the latest available history. Follow the provider’s documented retrieval and pagination rules. Do not assume that the latest status label contains every event needed to repair your local history.
- Compare event sets. Match events using stable provider identifiers when available. If they are not available, use a carefully defined composite of shipment, carrier, event time, event type, and relevant location fields. Treat that composite as a heuristic: carriers can correct timestamps or descriptions.
- Apply missing events safely. Make event ingestion idempotent, so a replay does not generate a second customer notification or overwrite a newer state with an older one. Retain raw payloads or audit records as permitted by your data-handling requirements.
- Record the result. Count shipments checked, events newly found, fetches that failed, and discrepancies that could not be resolved. Route unresolved cases to an exception queue rather than silently marking them complete.
Keep reconciliation separate from routine ingestion metrics. If a repair job repeatedly finds missing events, the repair is working, but the primary update path still needs investigation. Also account for corrections: a provider may change an existing event instead of adding a new one. A comparison that looks only for higher event counts will miss that case.
Set alerts that distinguish a quiet shipment from a broken integration
Thresholds should reflect your use case and observed baseline, not a universal promise about carrier scan frequency. A customer-facing exception workflow may need quicker detection than an internal historical report. Define a target for each stage you control, then test it against actual traffic and scheduled operations.
Alert immediately on failures with clear operational meaning, such as a sustained authentication failure, a stopped poll scheduler, a growing queue of unprocessed events, or a reconciliation job that cannot complete. Use more cautious alerts for ambiguous signals such as a decline in event volume. Compare volume against eligible active shipments and the same type of operating period; a lower count may reflect quieter shipping activity rather than an outage.
For shipment-level alerts, combine signals. “No carrier event for a while” is usually a customer-service review condition, not proof of an API failure. “No successful check for an eligible shipment” identifies a monitoring gap. “Provider history contains an event absent from our database” identifies a missed ingestion. “Our database has the event, but the tracking page does not” identifies a downstream publishing issue. Each condition needs a different owner and response.
Monitor percentiles and the oldest unresolved items alongside averages. A low average processing lag can coexist with a small set of shipments stuck for a long time. Segment the dashboard enough to find those cases without creating so many categories that alerts become unusable.
Investigate a freshness incident in the right order
Start by establishing scope. Is the problem limited to one shipment, a carrier or route, a customer account, or all tracked shipments? Check when the last successful poll, webhook receipt, ingestion, and customer-facing update occurred. This prevents an unnecessary provider escalation when the fault sits in your own queue or cache.
Next, inspect the transport and processing trail. Look for failed requests, timeouts, rejected notifications, authentication changes, rate-limit responses, expired workers, and unprocessed queue items. HTTP 429 means a client has sent too many requests in a given amount of time; follow the response and the provider’s documented guidance rather than retrying aggressively. HTTP errors and successful responses should both be logged with enough context to reproduce a failing request without exposing credentials.
Then compare your stored history with the latest history available from the provider. If the provider already shows the event, repair your ingestion or display path. If it does not, you cannot conclude from your application logs alone that an API update was missed. The carrier may not have published a new scan, or the provider may not yet have received it. Escalate with the shipment identifier, relevant timestamps, the last event you observed, and a concise account of the checks already performed.
After recovery, replay affected work using an idempotent process and verify both the stored timeline and the customer-facing result. Document the first failed stage and how you detected it. The most useful incident outcome is a tighter check at that stage, not a generic alert that every shipment is “stale.”
Apply the method to a multi-carrier API integration
If your system uses the 17TRACK Tracking API, treat the provider integration as one part of the overall update path. Review the official API documentation for the current request, response, and delivery behavior of the endpoints you actually use. In particular, confirm which timestamps and identifiers your implementation receives, how to retrieve shipment history, and what error or retry behavior the documentation specifies. Do not infer a guaranteed update interval from the availability of an API.
The same checks apply regardless of provider: retain enough identifiers to reconcile histories, monitor successful collection and internal processing independently, and test recovery with real examples of missed or delayed ingestion. If a required field or delivery guarantee is not documented for your integration, confirm it directly before building an alert or service commitment around it.
FAQ
How can I tell whether a tracking update was missed or the carrier has not scanned the package?
Compare your local history with the latest history available from the provider. An event present upstream but absent locally is evidence of an ingestion or publishing gap. If neither history contains a new event, you cannot establish a missed update solely from the time since the last scan. Check collection health separately and seek carrier or provider clarification when the shipment warrants it.
Should I rely on webhooks instead of polling?
Choose delivery methods according to the provider’s documented capabilities and your latency needs. Even if webhooks are your primary path, a scheduled reconciliation check helps find notifications your application failed to receive or process. If you poll, monitor scheduler completion, pagination, and failures so that a stopped job is not mistaken for a quiet carrier.
What is the best metric for tracking API freshness?
There is no single metric that describes the entire path. Use processing lag to assess how quickly your system handles updates it can observe, successful-check age to identify collection gaps, and event age to describe the shipment’s last known activity. Interpret each metric alongside shipment state and the source timestamps available to you.
Why can a tracking page be stale when API calls are succeeding?
The API call may succeed without a new carrier event, or a retrieved event may fail later in your queue, database update, cache, or publishing process. Compare the provider’s history, your stored events, and the customer-facing timeline to locate the gap.
Sources
- 17TRACK Tracking API — official product page for the API integration context.
- 17TRACK API Documentation — official reference for checking integration-specific behavior and fields.
- RFC 9110: HTTP Semantics — definitions of HTTP response status codes.
- RFC 6585: Additional HTTP Status Codes — definition of HTTP 429.


