Skip to main content
HomeBlogGuidesDo Tracking Webhooks Send Full Shipment History or Only the Latest Event?

Do Tracking Webhooks Send Full Shipment History or Only the Latest Event?

17TRACK

Tracking webhooks do not follow one universal rule: a callback may contain only the latest tracking event, a snapshot of the shipment’s current state, or a list of events. The webhook payload alone may not tell you whether that list is complete. If you are building a tracking integration, check the provider’s payload definition and test it against a shipment with several scans before treating a callback as full shipment history.

Do Tracking Webhooks Send Full Shipment History or Only the

The practical distinction is between notification and history retrieval. A webhook tells your system that something happened or changed. Whether it also supplies every earlier scan is a separate product and payload-design decision. Your integration should make that decision explicit rather than infer it from the word “webhook.”

What a tracking webhook can contain

Most shipment-tracking integrations need to represent two kinds of information: the shipment’s current state and its sequence of tracking events. A current state might say that a parcel is in transit. An event might record a particular carrier scan, with its description and timestamp. Those are related, but they are not interchangeable: several scans can occur while the shipment remains in the same broad status.

A webhook may deliver any of the following:

  • A latest-event notification: the new scan or status change, accompanied by identifiers that let you find the shipment.
  • A current-state snapshot: the latest known shipment fields, such as status and an updated time, without a complete scan list.
  • A shipment object with an event array: potentially multiple scans, but not necessarily every scan since the parcel was created.
  • A change notification: enough information to prompt an API request for the authoritative shipment record.

Even a payload containing many events is not automatically a full-history payload. It could show a recent subset, omit events that are no longer available from an upstream source, or reflect the tracking provider’s latest known view rather than every event the carrier has ever recorded. Conversely, a small callback may be designed to work with a separate endpoint that returns the available history. The provider’s documentation, not the size of one sample payload, determines the intended contract.

How to tell whether the history is complete

Start with the official documentation for your specific webhook and API version. Look for the field definitions and examples, but also for language describing what triggers delivery and what each field means. “Events” or “tracking details” may describe an array without promising that the array contains every earlier scan.

Ask these questions before you design your storage model:

  1. What triggers a callback? A new carrier scan, a change in overall status, a correction to existing data, or an update to any shipment field may have different implications for the payload.
  2. Is the event list cumulative? Does each callback include all events currently known to the provider, only newly added events, or a limited selection? If the documentation does not say, treat completeness as unconfirmed.
  3. Is there a separate history endpoint? Find out whether the API can return the provider’s current event list and how your system should request it.
  4. Can earlier events change? A scan might arrive late, be corrected, or appear in a different order after a carrier update. Confirm whether webhook callbacks can reflect those revisions.
  5. What does “complete” mean operationally? It may mean all events currently known to the tracking provider, not a guarantee that the carrier has supplied an exhaustive record.

For a concrete test, use a shipment that already has multiple tracking scans. Compare the webhook body with the provider’s shipment-history API response for that same shipment, if an endpoint is available. Then capture another callback after a new scan arrives. Check whether the second callback contains the earlier scans, just the new scan, or a changed shipment summary. Repeat the test for a late-arriving scan or correction if your use case depends on reconstructing an accurate timeline. Record the exact API version and webhook configuration used in the test; a sample from a different configuration may not describe yours.

If you are evaluating 17TRACK for a developer integration, use its official API documentation to verify the webhook payload and any available retrieval method for your implementation. Do not assume that a callback contains a complete event history merely because it concerns a tracked shipment.

Choose an integration pattern that fits the payload

If the callback contains only the latest event, store that event and update your shipment summary separately. Your application needs a way to acquire earlier scans when a shipment is first registered, when your service has been offline, or when an event appears to be missing. Where the provider offers a history or shipment-detail request, use it to initialize or reconcile your record according to the documented behavior. If no such request is available, do not present your stored timeline as guaranteed complete.

If the callback includes a cumulative event array, you can compare it with your stored events and reconcile the differences. Avoid simply appending the entire array each time: that creates duplicates when earlier scans are repeated in subsequent callbacks. Also avoid assuming that an event absent from one callback should be deleted from your database. The provider may have sent a partial list, or the omission may need investigation before you change a customer-facing timeline.

If the webhook is primarily a signal to fetch the latest record, acknowledge receipt promptly and perform the retrieval through an appropriate background process. That separates webhook delivery from work that may take longer, such as updating an order-management system or notifying a buyer. Follow the provider’s documented acknowledgment, retry, and authentication requirements rather than assuming all webhook services use the same rules.

A useful model is to maintain both a shipment summary and an event timeline. The summary represents your best current view of the shipment. The timeline contains the scans your system has received or retrieved, along with enough provenance to understand where each entry came from. Keeping them separate prevents a status change from being mistaken for a new carrier scan and makes it easier to revise the timeline when additional information arrives.

Handle duplicate, late, and out-of-order information

Receiving a webhook does not, by itself, prove that you have received every preceding update. Nor should your system assume that callbacks will arrive only once or in the same order as the underlying carrier scans. Those guarantees, if offered, must come from the provider’s documented delivery contract. Design for uncertainty where the contract does not specify them.

First, make processing repeatable. If the provider supplies a stable webhook delivery identifier, use it to recognize repeated deliveries as documented. Separately, decide how to recognize the same tracking event appearing in more than one payload or API response. A delivery identifier and a tracking-event identifier serve different purposes: one identifies a callback delivery; the other, if available, identifies a scan. When no stable event identifier exists, a combination of shipment identifier, scan time, description, and location may help with matching, but it can also merge distinct scans. Test that choice against real payloads before relying on it.

Second, preserve the distinction between event time and receipt time. Event time describes when a scan reportedly occurred; receipt time records when your integration learned about it. A scan received today might belong earlier in the visible timeline. Sorting only by callback arrival time can therefore misrepresent the journey.

Third, define when to reconcile. A history request may be appropriate when a shipment is first added, when processing resumes after an outage, when a callback references an unknown shipment, or when a late update changes the expected timeline. Reconciliation should follow the API’s documented limits and data semantics. It is a way to check your local view against the provider’s current view, not a promise that the upstream carrier record is exhaustive.

A practical checklist before launch

Use this checklist to turn a payload example into an integration decision:

  • Identify the webhook event type, payload version, shipment identifier, and fields used to represent scans.
  • Confirm whether the callback is a delta, a current-state snapshot, or a documented cumulative history. If it is unclear, mark it as unknown in the design.
  • Check whether a shipment-detail or history request is available and whether it returns the data your interface needs.
  • Test a multi-scan shipment across at least two updates; compare callback contents with any available API history.
  • Test repeated callbacks and a late or corrected scan if your workflow depends on accurate event ordering.
  • Decide how to identify duplicate deliveries and duplicate tracking events without conflating the two.
  • Document what your user interface can honestly claim: “latest known status” and “available tracking events” may be more accurate than “complete shipment history.”

The right answer for a production system is therefore not “webhooks always send the latest event” or “webhooks always send the full history.” It is a verified statement about a particular provider, payload, and configuration. If the contract is silent, build your system so that the callback can trigger an update without being your sole proof of a complete timeline.

FAQ

Does an array of tracking events in a webhook mean it contains every scan?

No. An array shows that the payload contains multiple events, not that it contains every event currently known or every scan the carrier has recorded. Check the field definition and compare it with any available history response.

Can I build a shipment timeline using only webhooks?

You may be able to build a timeline from callbacks if the documented payload and delivery behavior meet your needs. For a timeline intended to recover from missed updates or include earlier scans, establish how you will initialize and reconcile it. If the provider does not document a way to retrieve history, be careful about calling your local timeline complete.

What should I do when a callback contains a scan I have already stored?

Check whether it is the same tracking event before inserting another timeline entry. A repeated webhook delivery and a cumulative payload can both bring back previously seen information. Use documented identifiers where available; otherwise, define and test a cautious matching rule.

Why can a new webhook contain an older tracking event?

The time your system receives an update and the reported time of the carrier scan are different concepts. A provider may learn of an earlier scan later. Keep both times so you can place the scan appropriately in the timeline while retaining a record of when your system received it.

Should I fetch shipment history after every callback?

Not automatically. Fetching after every callback may be appropriate for an API that explicitly uses webhooks as change notifications, but another integration may provide enough information in the callback. Choose the pattern from the documented payload contract, your recovery needs, and the API’s usage rules.

Sources

  • 17TRACK API documentation — official reference for checking provider-specific API and webhook behavior.
  • RFC 9110: HTTP Semantics — reference for the underlying HTTP request and response model; it does not define a universal shipment-webhook payload.