Advance Ship Notice (ASN): What Architects Need to Know
What an Advance Ship Notice (EDI 856/DESADV) actually is, how it differs from a packing list, and how to model it as an idempotent event.
An Advance Ship Notice is an electronic message a shipper sends to a receiving system before goods arrive, describing what is in the shipment, how it is packed, and how it is routed. In EDI terms it is transaction set 856 (Ship Notice/Manifest); in EDIFACT it is DESADV (Dispatch Advice). For a carrier integration platform, the important part isn't the acronym. It's that the ASN is a data contract with a schema, a lifecycle, and a replace semantic — and most teams model it like a PDF instead.
What is an Advance Ship Notice?
An ASN is a notification of pending and upcoming deliveries matched to a previously-provided packing list, sent in electronic form before the physical goods show up. In the ANSI X12 standard used across North America, it is transaction set 856, titled Ship Notice/Manifest. In European and international EDIFACT/EANCOM exchanges, the EDIFACT equivalent is the DESADV (Dispatch Advice) message. Functionally they carry the same payload. Structurally they diverge: X12 nests data with HL (hierarchical level) loops, EDIFACT/EANCOM uses CPS (Consignment Packing Sequence) segments for the same job.
The business purpose, as Wikipedia's summary of the standard puts it, is that the ASN can list the contents of a shipment as well as order information, product description, physical characteristics, type of packaging, markings, carrier information, and configuration of goods within the transportation equipment. Once delivered, a buyer typically responds with an EDI 997 Functional Acknowledgement — a transport-layer ack, not a business confirmation. Don't conflate the two; a 997 only tells you the envelope parsed.
ASN vs the documents it gets confused with
The ASN is an event. A packing list, a bill of lading and a tracking webhook are three different kinds of artefact, and architects who treat them as interchangeable end up building the wrong ingestion pipeline.
| Document | Sent by | Sent when | Travels with the load? | Primary consumer |
|---|---|---|---|---|
| ASN (EDI 856 / DESADV) | Shipper / supplier | At or just after dispatch, before arrival | No — electronic only | Receiving WMS / dock planning |
| Packing list | Shipper | Prepared pre-dispatch, referenced by the ASN | Often physical, inside the load | Receiving staff, auditors |
| Bill of lading | Carrier | At pickup, as contract of carriage | Yes | Carrier, insurer, customs |
| Tracking webhook | Carrier / carrier platform | Continuously, from pickup to delivery | N/A — API event | Carrier integration platform, customer notifications |
The bill of lading is the legal one. As the Wikipedia entry on ASNs notes, while a bill of lading is intended to accompany a load on its path, the role of an ASN is to provide information to the destination's receiving operations well in advance of the delivery. The BOL is a contract of carriage that rides with the freight; the ASN is pure data, sent ahead of the truck, with no legal standing of its own.
The tracking webhook is the one carrier integration engineers know best, and it's tempting to treat an ASN as "just another event in the same stream." It isn't. An ASN is sent once per shipment (plus explicit replacements), before the carrier has necessarily even scanned the freight. A tracking webhook stream starts at first scan and runs until delivery, often with dozens of status events per parcel. If you've read our posts on webhook ordering and de-duplication at scale, the distinction matters architecturally: ASN ingestion is low-frequency, high-stakes, document-shaped; tracking webhooks are high-frequency, idempotent-by-design, event-shaped. They should not share a retry policy.
The shape of the data: shipment, order, pack, item
Every ASN, regardless of wire format, nests the same four levels: shipment, order, pack, item. In X12 this is the HL hierarchy (shipment → order → pack → item), with each level declared by a hierarchical level code.
Shipment
└─ Order (PO reference)
└─ Pack (carton / pallet, SSCC)
└─ Item (SKU, quantity)
Three segments carry the weight architects actually touch:
- BSN (Beginning Segment for Ship Notice) — carries the shipment ID and a purpose code:
00for original,01for cancel,05for replace, and07for duplicate. Getting these confused is the single most common cause of ASN integrity bugs, covered below. - TD5 (Carrier Details) — carries the carrier SCAC code and transport mode, the field your routing engine reads to match the ASN to a known carrier.
- REF*CN (Reference Identification, qualifier CN) — the carrier's own reference or tracking/PRO number. This is the join key between the ASN and the tracking webhook stream you'll receive later from the carrier.
Worked example
Here's a stripped-down 856 for a shipment moving by UPS Ground, drawing on the segment structure documented in a walkthrough of the 856 on the wire:
BSN*00*ASN-98765*20260930*093015~
HL*1**S~
TD5*O*2*UPSN*M*UPS GROUND~
REF*CN*CNTR-55431~
HL*2*1*O~
PRF*PO-12345***20260929~
HL*3*2*P~
MAN*GM*PAL-001122~
HL*4*3*I~
LIN**UP*012345678905~
SN1*4*48*EA~
Reading this top to bottom: BSN*00 marks this as an original ship notice, with ASN-98765 as the shipment identifier; TD5*O*2*UPSN*M*UPS GROUND gives carrier details where 2 is the standard carrier alpha code list and UPSN is UPS's code. The REF*CN*CNTR-55431 segment carries the carrier reference, the tracking/pro number that is how the ASN gets matched to the physical shipment at the dock door. PRF ties the shipment line back to PO-12345; MAN carries the SSCC-18 pallet label; LIN/SN1 give item and quantity at the innermost level.
This is the matching problem a generic ASN glossary never mentions: your platform receives this ASN before pickup, extracts CNTR-55431, and now has to reconcile it against the UPS tracking webhook that arrives hours or days later carrying the same reference. If your ingestion pipeline treats the ASN and the tracking event as two unrelated schemas with no shared key, you've built two silos that happen to describe the same box.
Zoom out one level and the ASN sits inside a document chain with no central coordinator: EDI 850 is the purchase order from buyer to supplier, 856 is the advance ship notice from supplier to buyer, and an EDI 810 invoice typically follows once goods are received. Three parties, three independent transaction sets, reconciled asynchronously. That's a distributed workflow by any definition, and it should be designed like one.
Why this matters for carrier integration platforms
Model the ASN as a versioned event, not a document you parse once and file away. Two reasons:
Replacement is an idempotency problem. A "replace" Ship Notice (BSN01=05) lets a supplier correct an error or add information learned later, and the replace document is complete — all data from the original should be discarded by the recipient. Crucially, a replace ship notice must carry the same shipment identification number (BSN02) as the previous version, which is exactly the shape of an idempotency key with a superseding window. Note BSN01=07 is not a correction at all — a "duplicate" Ship Notice indicates a copy of the original sent to another member in the supply chain, which is a fan-out concept, not a retry. Conflating 05 and 07 in your ingestion logic will silently corrupt state.
Format is irrelevant to the contract. Whether the ASN arrives as X12 856 over AS2, EDIFACT DESADV over OFTP2, or a JSON payload over a REST webhook, the envelope (transport, auth, ack) should be separable from the payload (shipment/order/pack/item hierarchy). The same "envelope vs payload" discipline we've argued for in tracking webhook design applies here, arguably more, because the DESADV enables scan-based receiving and cross-docking, and an accurate DESADV is often a strict requirement in European retail where the data quality bar is high and the penalty for drift is a chargeback, not just a support ticket.
Multi-carrier and multi-tenant platforms that ingest both EDI and API-based ASN traffic need one canonical schema behind both. Platforms like Cargoson, nShift, Transporeon and E2open sit in this space precisely because shippers don't want two separate inbound pipelines — one for AS2/EDI partners, one for REST API partners — feeding two different downstream systems.
FAQ
Is an ASN the same as an EDI 856?
No. The ASN is the business concept; EDI 856 is one transport format for it. The same concept also travels as EDIFACT DESADV or as a JSON/XML payload over an API.
Who sends the ASN, the shipper or the carrier?
The shipper or supplier sends it to the buyer or receiving operation, typically triggered at pick-and-pack or dispatch, not by the carrier.
What happens if the ASN never arrives or arrives late?
Receiving loses its pre-arrival visibility and falls back to manual counting against the PO. In retail and automotive supply chains this commonly triggers compliance chargebacks.
Is an ASN legally binding like a bill of lading?
No. The BOL is the contract of carriage; the ASN is informational data for receiving systems, with no standing of its own.
Do small-parcel, multi-carrier platforms use ASNs, or just tracking webhooks?
Both, depending on the trading relationship. B2B replenishment to a retailer DC typically still requires an 856/DESADV; direct-to-consumer parcel flows are usually tracking-webhook-only, with no ASN in play at all.