An EDI 856 is the X12 Ship Notice/Manifest, usually called an advance ship notice (ASN). The supplier sends it to the buyer before the goods arrive to say what shipped, how it is packed, and which purchase order it fills. Depending on the buyer, a medical supplier's 856 can also carry GTINs or NDCs, lots, expiration dates, and carton SSCCs.
What is an EDI 856 advance ship notice?
The 856 is the X12 transaction set a shipper uses to describe a shipment to the receiver. X12 defines it as listing the contents of a shipment along with order information, product description, packaging, marking, carrier information, and how the goods are configured in the transportation equipment.
| Attribute | EDI 856 |
|---|---|
| X12 name | Ship Notice/Manifest (commonly called the ASN) |
| Sent by | The shipper to the buyer or receiving location |
| Timing | After the shipment is built, before it arrives |
| GS01 functional group ID | SH |
| First segment after ST | BSN (Beginning Segment for Ship Notice) |
| Usual acknowledgment | 997 Functional Acknowledgment |
| Version in the distributor guides cited here | 004010 |
The X12 supply chain flow describes how the dock uses it: scan the case or pallet barcode, match it to the MAN (marks and numbers) segment, and put the product away unopened. While a supplier is new, X12 notes, the receiver usually checks most or all containers against it. A wrong lot on the ASN becomes a wrong lot in the buyer's recall search.
Where does the 856 sit in the 850, 855, 856, 810 cycle?
The 856 is the third step: the buyer sends an 850 purchase order, the supplier answers with an 855 acknowledgment, ships and sends the 856, then bills with an 810 invoice. X12 places all four in its basic supply chain process, with item data alignment before and payment after.
| Transaction | Direction | First segment after ST | GS01 | Role |
|---|---|---|---|---|
| 832 Price/Sales Catalog | Supplier to buyer | BCT | SC | Item master: identifiers, units of measure, prices. X12 lists pharmaceuticals among its users. |
| 850 Purchase Order | Buyer to supplier | BEG | PO | The order. X12 says it should not carry changes or acknowledgments. |
| 855 PO Acknowledgment | Supplier to buyer | BAK | PR | Accepts, changes, or rejects the order, with line status in ACK segments. |
| 856 Ship Notice/Manifest | Supplier to buyer | BSN | SH | What shipped, in which cartons, with the lot data the buyer requires. |
| 810 Invoice | Supplier to buyer | BIG | IN | Bills against the PO; totals in TDS. |
| 997 Functional Acknowledgment | Receiver to sender | AK1 | FA | Reports whether each group and transaction set was accepted, accepted with errors, or rejected on syntax. |
Group IDs and segments come from the 004010 references for the 850, 855, 810, 832, and 997. On the 855, BAK02 says how the whole order was handled (AC, AD, AE, AK, or RJ), and each line's ACK01 carries a status such as IA accepted, IB backordered, or IR rejected. A backorder shows up there before any ASN exists.
X12 also lists the 860 and 865 for PO changes, the 857 Shipment and Billing Notice (ship notice and invoice in one document), the 861 receiving advice, and the 820 payment. All reuse the 850's PO numbers and item IDs, so get the core cycle clean first.
How is an EDI 856 structured?
An 856 opens with ST, BSN, and optional header DTM segments, carries the detail in repeating HL (hierarchical level) loops, and closes with an optional CTT and the SE trailer. Each HL points to its parent, so the file describes a tree of shipment, order, pack, and item.
The BSN segment
The AmerisourceBergen supplier 856 guide (4010, dated 2018) shows the elements most guides use. BSN01 is the purpose code, 00 for an original and 05 for a replacement. BSN02 is the shipper's unique shipment ID, often the bill of lading number. BSN03 and BSN04 are the date and time the document was created; the ship date goes in DTM. BSN05 is the hierarchical structure code.
The HL hierarchy
HL01 is a unique ID for that HL, usually counting up from 1. HL02 is the parent's HL01, empty on the shipment level. HL03 names the level: S shipment, O order, T tare (pallet), P pack (carton), I item. HL04 is 1 when children follow and 0 when they don't; the base standard makes it optional, but the AmerisourceBergen guide marks it must use. HL is the only mandatory segment in its loop; the segments after it give it meaning.
The VICS 856 guideline (a 1998 retail guide, using the same BSN05 codes) defines three layouts:
| BSN05 | Structure | Name | When it fits |
|---|---|---|---|
| 0001 | Shipment, Order, Packaging (Tare and/or Pack), Item | Pick and pack | Cartons hold mixed items or different lots, and the buyer scans SSCCs at the dock. |
| 0002 | Shipment, Order, Item, Packaging | Standard carton pack | Identical items: list the item once, then every carton holding it. |
| 0004 | Shipment, Order, Item | No packaging level | The buyer doesn't need carton detail. |
Only one structure may appear in a ship notice, and many buyers mandate one.
The shipment level carries carrier details (TD1, TD5, TD3), references in REF (the AmerisourceBergen guide lists BM for the bill of lading, 2I for a tracking number, and CN for the carrier's PRO number), the ship date in DTM, and ship-to and ship-from N1 loops. The order level carries PRF with the PO number. Tare and pack levels carry MAN with the SSCC. The item level carries LIN (product IDs), SN1 (quantity and unit), PID (description), and DTM for dates such as lot expiration. Full list: the 004010 856 reference.
CTT01 counts HL segments, not item lines, and CTT02 (if sent) is a hash of SN102 quantities. Compute CTT01 from the tree you built; counting PO lines is wrong as soon as there is a pack level.
Later X12 releases also define the 856 with the same HL logic. The distributor guides cited here use 004010, so the sample does too; send whatever version your buyer names for GS08.
Illustrative EDI 856 example for a medical supply shipment
This sample is illustrative only. Every name, ID, GTIN, SSCC, lot, and PO number is fake. It shows exam gloves shipped to a health system distribution center: one PO, two cartons of ten boxes, each from a different lot. It uses 004010, pick and pack (BSN05 = 0001), * as element separator and ~ as segment terminator, with line breaks added.
ISA*00* *00* *ZZ*TESTSUPPLIER *ZZ*TESTBUYER *261030*1405*U*00401*000000101*0*T*>~
GS*SH*TESTSUPPLIER*TESTBUYER*20261030*1405*101*X*004010~
ST*856*0001~
BSN*00*SHP0001234*20261030*1405*0001~
HL*1**S*1~
TD1*CTN*2****G*38*LB~
TD5**2*TSTC*M~
REF*BM*BOL0098765~
DTM*011*20261030~
N1*ST*SAMPLE HEALTH SYSTEM DC*92*DC001~
N3*100 TEST AVENUE~
N4*ANYTOWN*OH*45000~
N1*SF*TEST MEDICAL SUPPLY CO*92*SUP01~
HL*2*1*O*1~
PRF*PO45678***20261027~
HL*3*2*P*1~
MAN*GM*00006141410000000012~
HL*4*3*I*0~
LIN*1*UK*10614141000019*VC*GLV-NIT-M*LT*LOT26A01~
SN1*1*10*BX~
PID*F****NITRILE EXAM GLOVE MEDIUM 100 CT~
DTM*208*20290930~
HL*5*2*P*1~
MAN*GM*00006141410000000029~
HL*6*5*I*0~
LIN*1*UK*10614141000019*VC*GLV-NIT-M*LT*LOT26A02~
SN1*1*10*BX~
PID*F****NITRILE EXAM GLOVE MEDIUM 100 CT~
DTM*208*20291031~
CTT*6~
SE*29*0001~
GE*1*101~
IEA*1*000000101~
The same hierarchy as a tree:
HL 1 S shipment BOL0098765, shipped 2026-10-30
HL 2 O order PO45678
HL 3 P carton SSCC 006141410000000012
HL 4 I item GTIN 10614141000019, lot LOT26A01, 10 BX
HL 5 P carton SSCC 006141410000000029
HL 6 I item GTIN 10614141000019, lot LOT26A02, 10 BX
Things to check in the sample:
- ISA06 and ISA08 are padded to 15 characters, ISA13 matches IEA02, and ISA15 is T for test.
- The GTIN in LIN identifies the product (the box of 100) and is the same in both cartons. The SSCC in MAN identifies one physical carton. The carton label's UCC/EAN-128 barcode encodes that SSCC behind application identifier 00, and the dock scanner looks for it in MAN.
- MAN*GM carries the SSCC as 20 digits, 00 plus the 18-digit SSCC. The AmerisourceBergen guide requires that format and forbids repeating an SSCC within one ASN.
- LIN01 is 1 in both cartons because both fill PO line 1. UK is the qualifier X12 4010 names U.P.C./EAN Shipping Container Code (1-2-5-5-1), the 14-digit format used here for the GTIN. VC is the supplier catalog number and LT the lot. Lot sits at the item level because the cartons hold different lots.
- SN1*1*10*BX is ten boxes, in the unit of measure the 850 used. DTM*208 is lot expiration; some buyers use 036 instead.
- CTT01 is 6 for six HL segments. SE01 is 29, counting ST through SE.
The fake GTIN and SSCC use GS1's example company prefix 0614141 with valid mod-10 check digits, so a validator won't reject them on that basis.
How do partial shipments, multiple orders, and corrections work in an 856?
One 856 describes one shipment. Several POs on the same truck become several O levels under one S, a PO line split across lots or cartons becomes several I levels with the same PO line number, and a correction is a new 856 with BSN01 = 05.
For partial shipments, SN102 is this shipment's quantity; the AmerisourceBergen guide also wants SN104 (shipped to date) and SN105 (ordered) to reconcile against the PO.
| What the buyer sees | Likely cause in the 856 | Fix |
|---|---|---|
| ASN rejected, or the 997 reports errors | HL02 points to a missing HL01, or CTT01 or SE01 is wrong | Build HL IDs and counts from the shipment tree in code and validate before sending |
| Carton scans don't match | SSCC in MAN differs from the label, for example after a reprint | Print the label and write MAN from the same SSCC record |
| ASN parses but won't match the PO | Wrong PRF, or a product ID qualifier or unit that differs from the 850 | Echo the 850's PO number, line numbers, qualifiers, and units. The AmerisourceBergen guide requires the qualifier to match. |
| Wrong lot recorded | Lot placed at the order level when cartons hold different lots | Put LIN LT and DTM under each pack's item level |
| Freight arrives with no ASN | 856 sent late | Send it when the shipment is closed out so it reaches the buyer before the freight |
| Duplicate shipment on the buyer's side | Correction sent as an original (BSN01 = 00) | Send BSN01 = 05 with the same BSN02 |
What lot, expiration, GTIN, and UDI data do medical buyers expect in an 856?
No federal rule requires a UDI or GTIN inside an EDI document. Buyers require them in their 856 guides because the regulated identifiers are already on the label and they want the same values in receiving.
21 CFR 801.20(a) says every device label and device package shall bear a unique device identifier; 801.20(b) lists exceptions, so not every product a DME supplier ships has one. Under 21 CFR 830.3, a UDI is a device identifier (labeler and model or version) plus a production identifier (lot, serial number, expiration date, or manufacture date, when on the label). FDA has accredited GS1, HIBCC, and ICCBBA as issuing agencies. In the GS1 format, the device identifier is the GTIN in application identifier (01), expiration is (17), and lot is (10).
Those map straight onto the 856: GTIN and lot in LIN, expiration in DTM, carton SSCC in MAN. Take the values from the label print or scan event that produced the barcode; a separate item master lookup is how label and ASN drift apart.
Does DSCSA require an EDI 856?
No. The Drug Supply Chain Security Act requires secure, interoperable, electronic exchange of transaction information and transaction statements, and for package-level data the industry uses GS1 EPCIS. Many distributors still want lot data and a transaction statement in the 856, but serialized data moves separately.
Lot-level DSCSA requirements came before package-level exchange, and suppliers already sent an 856 with every shipment. The AmerisourceBergen guide requires, for non-exempt prescription products, NDC and lot in LIN, expiration in DTM*208, and a YNQ transaction statement affirming compliance with FDCA section 581(27)(A) through (G). For package-level tracing, the GS1 US guideline (Release 1.3, December 2022) uses EPCIS commissioning, packing, and shipping events, with packing events carrying the item to case to pallet hierarchy. The same distributor publishes a separate EPCIS data exchange specification.
As of October 2026, most deadlines have passed. The stabilization period ended November 27, 2024. FDA's October 9, 2024 exemptions ran to May 27, 2025 for eligible manufacturers and repackagers, August 27, 2025 for wholesale distributors, and November 27, 2025 for dispensers with 26 or more full-time employees. The general exemption on FDA's exemptions page now covers small dispensers, and where applicable their trading partners, until November 27, 2027, meaning the owning company had 25 or fewer full-time employees licensed as pharmacists or qualified as pharmacy technicians on November 27, 2026.
So a drug supplier selling through a large distributor often sends an 856 for receiving and an EPCIS document for tracing. The pairing comes from distributor guides, not FDA, and the two must agree on GTIN, lot, expiration, and quantity.
Which acknowledgments and transport do 856 trading partners use?
Supply chain partners typically answer an 856 with a 997 and connect over AS2, SFTP, or a value-added network (VAN). Healthcare claims use the 999 instead, so a supplier that also bills payers supports both.
The 997 reports syntax results and, per X12, does not cover the meaning of the data. One 997 can acknowledge a whole functional group: AK1 names it (AK102 is the GS06 control number), each AK2 and AK5 pair covers one transaction set, and AK9 gives the group result: A, E (accepted with errors), P (partially accepted), or R. A returned 997 is not a pass, and even an A only means the file parsed, not that it matched a PO.
The 999 adds relational analysis against an implemented subset of the standard, per X12. CMS lists the 5010 claim acknowledgments as the TA1, the 999 (replacing the 997), and the 277CA, and Medicare's claims processing manual update gives the 999 as 005010X231A1.
AS2, defined in RFC 4130 (July 2005), sends EDI over HTTP with S/MIME signing and encryption and returns a message disposition notification (MDN); signed messages with signed MDNs give non-repudiation of receipt. SFTP confirms the transfer but has no signed MDN, so the partner's 997 is your main sign the file was picked up and parsed. A VAN routes documents between mailboxes. The buyer's onboarding guide says which it accepts.
How does supply chain EDI connect to DME claims through CEDI?
A DME supplier runs a second EDI channel beside the 850 to 810 cycle. Medicare DMEPOS claims go to the DME MACs through CEDI, the Common Electronic Data Interchange front end, as X12 837P or NCPDP transactions, and remittances come back as 835s.
CEDI calls itself a single electronic front end for all Medicare DME suppliers. It collects all DME MAC electronic claims (X12 837P and NCPDP D.0) and X12 276 status requests, and returns front-end acknowledgments and reports, 835 remittances, and 277 responses. The separate Claim Status Inquiry (CSI) service and EFT go through the DME MAC jurisdiction. The site moved from ngscedi.com to cedi.wellpointfederal.com in a transition to Wellpoint Federal, so update bookmarks and scripts. Its companion guides cover the 837P, 835, 276/277, and NCPDP D.0.
45 CFR 162.1102 names the 837P guide 005010X222, and Medicare lists the errata version 005010X222A1. Retail pharmacy drug claims use NCPDP D.0, with a transition to NCPDP F6 set from August 14, 2027 to April 14, 2028. Our guide to 837 claims and 835 remittance covers that side in depth.
The item on the 856 is the item billed on the 837P, often under a HCPCS code mapped from the catalog number. One item crosswalk (GTIN, catalog number, HCPCS, NDC) feeding both keeps them consistent. Suppliers exchanging clinical orders or results with providers also run HL7; the HL7 lab interface guide covers those.
Trading partner onboarding checklist for EDI 856
Work through this with each new buyer before the first production ASN.
- Get the buyer's 856 guide and confirm the X12 version and BSN05 structure (0001, 0002, or 0004).
- Exchange test and production ISA and GS IDs. ISA06 and ISA08 are fixed at 15 characters; GS IDs are not padded. Confirm the element separator, ISA16 component separator, and segment terminator.
- Agree on transport: AS2 certificates, URLs, and MDN settings; SFTP keys and paths; or a VAN mailbox.
- Use the product ID qualifier from the buyer's 850 (GTIN, NDC, or catalog number) in the 855, 856, and 810.
- Confirm units of measure and how SN1 expresses them.
- Get the rules for lots, the expiration qualifier (208 or 036), and whether and where they want serial numbers.
- Set up SSCC labeling: GS1 company prefix, serial range, label layout, and a no-reuse policy, at minimum never twice in one ASN.
- Confirm when they want the 856 relative to departure and how they handle BSN01 = 05 replacements.
- For prescription drugs, confirm whether they still want DSCSA data in the 856 and set up the EPCIS connection.
- Run test files through their validator, then a parallel period where they check ASNs against physical receipts.
- Alert a named person on missing or rejected 997s.
Once live, these become audit checks. Our interface audit checklist targets HL7, but its sent, acknowledged, and processed reconciliation applies to X12 too.
Where to start with an existing 856 feed
Take 30 days of 856s for one large trading partner. Match each GS06 and ST02 you sent to an AK1 and AK2 in a returned 997, and read the AK5 and AK9 status. Match each BSN02 to a shipment that left, allowing for replacements. Then compare ASN lots with carton label lots for a sample of shipments. Each mismatch tells you which step to look at.
If you're building or fixing X12 feeds for medical supply, DME, or pharmacy partners, our HL7, FHIR, and EDI integration team builds, audits, and supports them.