Skip to main content
HomeBlogGuidesHow to Design a Shipment Tracking Fallback for Provider Outages

How to Design a Shipment Tracking Fallback for Provider Outages

17TRACK

Design a shipment tracking fallback around a simple rule: when a tracking provider becomes unavailable, keep the last verified shipment state, make its freshness visible, and switch to a separately validated data source only when that source can be trusted for the shipment. A fallback should preserve useful visibility without turning missing updates into false delivery claims or overwhelming an already failing service.

How to Design a Shipment Tracking Fallback for Provider Outages

This guide is for engineering and operations teams that run tracking pages, customer notifications, support tools, or order management workflows. The goal is not uninterrupted data at any cost. It is a predictable customer experience and a recoverable data pipeline when the normal tracking path fails.

Define what the fallback must protect

A tracking integration can fail in several ways. An API may time out, reject requests, return errors, or respond normally with old events. Webhook delivery can stop while the provider’s query API remains available. A provider may work for some carriers or regions but not others. These cases should not all trigger the same response.

Start by identifying the outputs that depend on tracking data: the customer-facing status, estimated delivery messages, exception alerts, support searches, and automated actions such as marking an order delivered. Assign a different risk level to each. Showing a previously verified event with a clear “last updated” time is usually less risky than sending a new delivery notification based on an unverified response.

Write the fallback objective in operational terms. For example: customers can still see the last confirmed event; support staff can tell when the data was refreshed; no shipment is automatically marked delivered from stale data; and failed calls are retried without creating a request storm. Your acceptable delay and recovery targets should come from your own service commitments and shipment mix, not from a generic industry threshold.

Separate provider health from shipment progress

A shipment with no new scan is not, by itself, evidence of a provider outage. Carriers may not scan a parcel at every handoff, and tracking events can arrive after the underlying physical movement. Conversely, a provider may return a successful HTTP response while its event feed is no longer advancing.

Monitor the integration at two levels:

  • Transport and API health: connection failures, timeouts, authentication failures, rate-limit responses, server errors, webhook receipt failures, and request latency.
  • Data health: age of the latest received event, age of the latest successful provider check, unexpected gaps across groups of active shipments, and differences between query results and webhook updates.

Track these by provider and, where practical, by carrier or integration route. A single global “tracking is down” flag can hide a partial failure. Define a minimum sample size and an observation window before declaring a group unhealthy; otherwise, one quiet shipment may trigger a needless failover. Use a provider’s status page as supporting context, not as the sole signal: your integration can fail even when its public status is green.

Keep three timestamps distinct in your data model: when the carrier says an event occurred, when your system received it, and when your system last checked for updates. This makes it possible to explain, for example, that an event occurred earlier but reached your system only after service recovered.

Build a fallback ladder rather than one emergency switch

A useful fallback has several levels. The first is the last verified event already stored in your system. The second is another available retrieval method from the same provider, if its failure modes are meaningfully different; for example, a query endpoint may still work when webhook delivery is interrupted. The third is an independently integrated tracking source for shipments it actually supports. The final level is an honest unavailable state with a support path.

These levels should not be treated as interchangeable. A second endpoint on the same provider may help with a webhook-specific problem but not a provider-wide outage. Two aggregators may still depend on the same upstream carrier feed. A direct carrier connection may offer a distinct route for a particular carrier, but only if you have implemented and tested it. Before counting any source as independent, map its upstream dependency where you can and test what happens when the shared dependency is unavailable.

For a multi-carrier API candidate, 17TRACK’s Tracking API page and developer documentation are appropriate starting points for evaluating an integration. Do not assume that adding another provider automatically creates a valid fallback. Confirm carrier and service support for your shipments, tracking-number identification, event fields, access terms, rate limits, and how its status data maps into your own model. Treat any source that has not passed those checks as an evaluation option, not an active failover route.

Make switching decisions explicit

Implement the fallback as a state machine or an equally clear set of rules. At minimum, distinguish healthy, degraded, fallback active, and recovering. Record why the system entered each state and what evidence is required to leave it. This is easier to operate than a collection of unrelated retry rules and manual overrides.

Set timeouts so a request cannot hold a customer page or internal worker indefinitely. Retry only failures that may be temporary, and cap the number of attempts. Honor applicable rate-limit and retry instructions from the provider; HTTP defines 429 Too Many Requests, while 503 Service Unavailable can include a Retry-After field. Backoff with jitter helps spread retries rather than sending every queued request at once. A circuit breaker can temporarily stop calls to a consistently failing route while allowing controlled probes for recovery.

Do not replay the entire shipment backlog immediately after a provider recovers. Prioritize shipments with active customer demand, recent movement, unresolved exceptions, or imminent operational decisions, subject to provider limits and your own capacity. Deduplicate queued jobs so repeated outage alarms do not generate repeated requests for the same shipment.

Use separate rules for switching to a fallback and switching back. If both transitions use a single sensitive threshold, a noisy provider can make the system alternate between sources. Require sustained evidence of recovery, run a small volume of verification traffic, and expand gradually. Keep a manual override for incidents that monitoring cannot classify correctly, with an owner and an expiration or review procedure.

Reconcile events before showing or acting on them

The hardest part of multi-source tracking is not fetching another response. It is deciding what that response means. Providers may use different status names, omit event identifiers, report times in different time zones, or return a smaller event history. Normalize incoming data into a shipment record while retaining the raw provider response for audit and troubleshooting.

For each event, retain the source, carrier if known, provider event identifier if available, event description, reported event time and time zone, receipt time, location as supplied, and your normalized status. Create a stable internal shipment identifier separate from the tracking number. Tracking numbers alone may need additional carrier or account context to identify the correct shipment.

Define precedence rules before failover goes live. A later API response is not necessarily a later physical event. Avoid replacing a verified delivered event with an older in-transit scan simply because the older scan arrived from the fallback source last. Equally, do not infer delivery from a generic “completed” label without checking what that label means for that source. If two sources disagree on a consequential status, preserve the conflicting evidence and route the shipment for review or a carrier-specific confirmation step rather than silently choosing whichever response arrived most recently.

Apply stricter checks to actions than to displays. An unconfirmed exception may be useful as an internal signal; a delivery notification, refund decision, or service-level report may require stronger evidence. Make notification jobs idempotent so reprocessing an event after recovery does not send the same message twice.

Tell customers what is known, not what is assumed

When fresh data is unavailable, a tracking page can still be helpful. Show the last confirmed status and its event time, followed by a separate indication of when your system last checked. If the tracking feed is temporarily unavailable, say so in plain language. Avoid changing the shipment status to “delayed” solely because the provider is down; an integration outage says nothing conclusive about the parcel’s location or delivery date.

Customer support should see the same provenance and freshness information as the tracking page, with additional incident context where useful. Give agents a way to identify affected shipments and avoid asking customers to repeat checks that your team knows will fail. Pause or qualify automated messages that depend on fresh events. A notice about limited tracking updates should not be presented as a carrier-confirmed delivery exception.

Test the design before relying on it

Run a controlled proof of concept using representative shipments: different carriers, destinations, service types, handoffs, and statuses, including delivered and exception cases. Confirm that the fallback can identify each shipment and that your normalized event model retains enough detail for customer and operational use. Check the contractual and technical conditions for the expected request volume rather than assuming production access will behave like a small test.

Then rehearse failure scenarios. Block primary API calls while leaving webhooks on; stop webhook ingestion while leaving queries on; return rate-limit responses; return successful but stale data; introduce conflicting events from two sources; and restore the primary service after a backlog has formed. For each test, verify the customer display, internal alerts, notification behavior, retry volume, reconciliation results, and recovery path.

Record decisions made during each incident: when degradation was detected, why failover started, which shipments were covered, which had no valid alternative, and when normal routing resumed. Review these records to adjust thresholds and source mappings. A fallback is ready only when it produces understandable behavior for shipments it cannot refresh, not merely when a test request succeeds against a second API.

FAQ

Should we switch providers after a single failed tracking request?

Usually not. A single failure may be transient or limited to one shipment. Use bounded retries for appropriate failures and evaluate provider health across a meaningful group of requests. Keep an option for immediate intervention when a known incident or a critical workflow warrants it.

Can cached tracking data serve as the fallback?

Yes, if it is labeled accurately. A stored, verified event preserves useful information during an outage. It does not prove the shipment has stopped moving, so display its event time and do not treat it as a fresh carrier confirmation.

Does a second tracking API guarantee independence?

No. Both services may rely on the same carrier feed, and the second API may not support every shipment or status field you need. Validate coverage, upstream dependencies where possible, event mapping, and behavior under the specific failure you intend it to handle.

What should happen if the primary and fallback sources disagree?

Keep both source records and apply documented precedence rules. Do not let arrival order alone decide a consequential status such as delivered. Escalate unresolved conflicts that would trigger customer messages or operational actions.

When should normal routing resume?

Resume after sustained evidence that the primary route is healthy, followed by controlled verification and gradual traffic restoration. Reconcile missed events and drain queued work at a rate the integration can handle before closing the incident.

Sources