Skip to content
EDI 856 — Ship Notice (ASN)Published Jan 20, 2025 · Updated Nov 5, 2026

EDI 856 ASN: HL Hierarchy, Segments, Examples

EDI 856 ASN explained: the HL hierarchy (shipment, order, tare, pack, item), BSN, TD1, TD5, PRF, MAN and SN1 segments, pallet examples and common errors.

The EDI 856 Advance Ship Notice (ASN) tells a buyer exactly what is coming, how it is packed and how it is traveling, before the truck reaches the dock. Its official X12 name is Ship Notice/Manifest. Large retailers use it to plan receiving and to receive cartons by scanning their labels, so an ASN that is late, missing or wrong turns into a slow receipt, a manual count and, often, a compliance deduction.

This guide covers the HL hierarchy that makes the 856 different from every other order document, the segments you will map, two live examples (a single carton and a pallet with three cartons), SSCC labels, how the 856 relates to the 855, 945, 810 and 857, and the errors that cause rejections.

What is an EDI 856 ASN?

An EDI 856 is the Ship Notice/Manifest transaction set defined by the ASC X12 standards body, used to list the contents of a shipment and give details about how it is packed and transported. It travels in functional group SH (the GS01 value). Most retail partners use release 004010, where the Stedi 004010 856 reference lists every segment.

Authoritative references for 856 work:

  • The X12 transaction set catalog defines the 856 structure and the hierarchical structure codes used in BSN05
  • GS1 defines the Serial Shipping Container Code (SSCC), the 18-digit number on each pallet and carton label, and GS1 US governs the U.P.C. and GTIN item numbers
  • The NMFTA assigns the Standard Carrier Alpha Codes (SCACs) that identify the carrier in TD5
  • Each retailer publishes its own 856 implementation guide with its required hierarchy, segments and timing

Who sends it? The supplier (or its 3PL on the supplier's behalf), from shipping and warehouse data.

Who receives it? The buyer's receiving location: a distribution center, store or fulfillment center.

When is it sent? After the shipment is packed and loaded, before it arrives. The exact deadline is in the buyer's guide.

Why does it matter? The buyer's warehouse system loads the ASN as an expected receipt. When the truck arrives, receivers scan each SSCC label and the system already knows what is inside. If the ASN does not match the freight, receiving falls back to a manual count, and the difference shows up on a 861 receiving advice or as a deduction.

A standard 856 ASN contains:

  • Shipment details: carrier, bill of lading, ship date, package count and weight
  • The purchase order (or orders) being shipped
  • A packing hierarchy: pallets, cartons and the items inside each
  • The SSCC number printed on each pallet and carton label
  • Quantities shipped per item, and lot or serial numbers where required
  • Ship-from and ship-to locations

Why ASNs Matter

  • Faster receiving. Cartons are received by scanning a label, not by opening and counting.
  • Receiving and cross-dock planning. The buyer knows what is arriving before it arrives, so it can plan labor and cross-dock freight to stores.
  • Fewer deductions. Many retailers treat a late, missing or inaccurate ASN as a compliance failure under their vendor agreement.
  • Invoice matching. The buyer matches your 810 invoice against the quantities on the ASN and its own receipt.
  • In-transit visibility. Inventory on the truck is visible to the buyer's planners before it lands.

Interactive Example: Basic 856 ASN

A single carton holding two items for one purchase order, shipped by motor carrier. The hierarchy is Shipment, Order, Pack, Item. Use the Plain English tab for a readable summary, or click any segment to break it down element by element.

Live exampleEDI 856

Generic 856 ASN (Advanced Ship Notice)

Basic shipment notification with tracking and packing details

Document
856 Advance Ship Notice
From / to
VENDOR123 → BUYER456
Segments
32
Ship From
VENDOR COMPANY LLC
321 INDUSTRIAL WAY, DALLAS, TX, 75201
Ship To
BUYER COMPANY INC
789 COMMERCE BLVD, CHICAGO, IL, 60601
Interchange date
Nov 22, 2023

Raw EDI (X12)

1
ISA*00* *00* *ZZ*VENDOR123 *ZZ*BUYER456 *231122*0800*U*00401*000000005*0*P*:~
2
GS*SH*VENDOR123*BUYER456*20231122*0800*5*X*004010~
3
ST*856*0005~
4
BSN*00*ASN-123456*20231122*0800~
5
HL*1**S~
6
TD1*CTN25*5****G*150*LB~
7
TD5**2*QLTX*M~
8
REF*BM*BOL-123456~
9
DTM*011*20231122~
10
N1*SF*VENDOR COMPANY LLC*92*VENDOR123~
11
N3*321 INDUSTRIAL WAY~
12
N4*DALLAS*TX*75201~
13
N1*ST*BUYER COMPANY INC*92*BUYER456~
14
N3*789 COMMERCE BLVD~
15
N4*CHICAGO*IL*60601~
16
HL*2*1*O~
17
PRF*PO-987654***20231120~
18
REF*PO*PO-987654~
19
HL*3*2*P~
20
MAN*GM*00006141410000001231~
21
HL*4*3*I~
22
LIN**VN*PROD-12345~
23
SN1**100*EA~
24
PID*F****Blue T-Shirt - Size L~
25
HL*5*3*I~
26
LIN**VN*PROD-67890~
27
SN1**50*EA~
28
PID*F****Denim Jeans - Size 32~
29
CTT*5~
30
SE*28*0005~
31
GE*1*5~
32
IEA*1*000000005~

Human-Readable

Interchange

Sender ID(ZZ)VENDOR123
Receiver ID(ZZ)BUYER456
Date231122
Time0800
Standards IDU
Version00401
Control Number000000005
Acknowledgment RequestedNo
UsageProduction
Included Groups (IEA01)1

Functional Group

Functional IDSHShip Notice
SenderVENDOR123
ReceiverBUYER456
Date20231122
Time0800
Control Number5
Agency CodeX
Version004010
Transactions1
Reported Transaction Count (GE01)1

Transaction 856

Advance Ship Notice
Transaction Type856
Control Number0005
Segments, ST to SE28
Count in SE0128 (matches)

Shipment Information

Shipment IDASN-123456
Date2023-11-22
Time0800

Parties

Ship FromVENDOR COMPANY LLC (ID VENDOR123), 321 INDUSTRIAL WAY, DALLAS, TX, 75201
Ship ToBUYER COMPANY INC (ID BUYER456), 789 COMMERCE BLVD, CHICAGO, IL, 60601

Items (2)

Item 1: Blue T-Shirt - Size L
Vendor Item: PROD-12345
Qty: 100 EA
Item 2: Denim Jeans - Size 32
Vendor Item: PROD-67890
Qty: 50 EA

Additional Segments (13)

HLHierarchical Level
HL01Hierarchical ID1
HL03Level CodeS
TD1Carrier Details (Quantity and Weight)
TD101Packaging CodeCTN25
TD102Lading Quantity5
TD106Weight QualifierG
TD107Weight150
TD108Weight UOMLB
TD5Carrier Details
TD502ID Qualifier2
TD503ID CodeQLTX
TD504Transport MethodM
REFReference Identification
REF01QualifierBM
REF02Reference IDBOL-123456
DTMDate/Time Reference
DTM01Date Qualifier011
DTM02Date20231122
HLHierarchical Level
HL01Hierarchical ID2
HL02Parent ID1
HL03Level CodeO
PRFPurchase Order Reference
PRF01PO NumberPO-987654
PRF04PO Date20231120
REFReference Identification
REF01QualifierPO
REF02Reference IDPO-987654
HLHierarchical Level
HL01Hierarchical ID3
HL02Parent ID2
HL03Level CodeP
MANMarks and Numbers
MAN01Marks QualifierGM
MAN02Marks and Numbers00006141410000001231
HLHierarchical Level
HL01Hierarchical ID4
HL02Parent ID3
HL03Level CodeI
HLHierarchical Level
HL01Hierarchical ID5
HL02Parent ID3
HL03Level CodeI
CTTTransaction Totals
CTT01Line Item Count5
1 functional group1 transactionControl #000000005Valid

Understanding the Hierarchical Structure

The 856 uses Hierarchical Level (HL) segments to describe how the shipment is packed. Every HL has its own ID and points to its parent, which turns a flat list of segments into a tree:

Shipment (S)
 └── Order (O)          PO 4500091150
      └── Tare (T)      Pallet, SSCC 00008551900000041018
           ├── Pack (P) Carton, SSCC 00008551900000041025
           │    └── Item (I)  24 brass table lamps
           ├── Pack (P) Carton, SSCC 00008551900000041032
           │    └── Item (I)  10 area rugs
           └── Pack (P) Carton, SSCC 00008551900000041049
                └── Item (I)  12 lamp shades

HL - Hierarchical Level

HL*1**S~
HL*2*1*O~
HL*3*2*T~
HL*4*3*P~
HL*5*4*I~
ElementNameExampleWhat it means
HL01Hierarchical ID Number4A unique ID for this level, usually numbered 1, 2, 3 in order
HL02Hierarchical Parent ID Number3The HL01 of the parent. Empty on the shipment level
HL03Hierarchical Level CodePWhat this level is (see the table below)
HL04Hierarchical Child Code1Optional. 1 if this level has children, 0 if not. Some retailers require it

Level Codes Explained

CodeX12 nameWhat it representsSegments usually inside it
SShipmentThe whole shipment, one per ASNTD1, TD5, TD3, REF*BM, DTM, N1 ship-from and ship-to
OOrderOne purchase order in the shipmentPRF (PO number and date), REF, store N1
TShipping TareA pallet or other unit holding several packsMAN*GM pallet SSCC, sometimes PAL or TD1
PPackA carton or caseMAN*GM carton SSCC, sometimes PO4
IItemA product inside the packLIN product IDs, SN1 quantity shipped, PID
QSubpackAn inner pack inside a cartonUsed by some retailers for inner packs

BSN05: The Hierarchy Code

BSN05 tells the receiver which order the levels appear in. The three codes retail suppliers see most:

BSN05X12 descriptionTypical use
0001Shipment, Order, Packaging, ItemPick and pack shipments with carton labels. The packaging can be one level (P) or two (T then P)
0002Shipment, Order, Item, PackagingStandard packs, where each item's cartons are listed under the item
0004Shipment, Order, ItemNo carton detail. Used where the buyer does not need pack-level data

The hierarchy you build must match the code you send and the structure in your partner's guide. Many retail guides require 0001. A Shipment-Order-Item structure is valid under 0004 and wrong under 0001.

Interactive Example: Pallet With Three Cartons (S-O-T-P-I)

A home goods supplier ships one pallet to a retailer's distribution center against PO 4500091150. BSN05 is 0001. The tare level carries the pallet's SSCC, each pack level a carton's SSCC, and each item level the U.P.C., vendor item and quantity. TD1 says one wooden pallet weighing 412 pounds, and TD5 names the carrier by SCAC with qualifier 2. The quantities match the 810 invoice in our 810 guide. All parties, SCACs and SSCCs are fictional.

Live exampleEDI 856

856 ASN: One Pallet, Three Cartons (S-O-T-P-I)

Cedarline ships Harbor Home PO 4500091150 on one pallet: BSN05 = 0001, HL levels Shipment, Order, Tare (pallet SSCC), Pack (carton SSCCs) and Item, TD1 pallet count and gross weight, TD5 with a SCAC (qualifier 2), REF*BM, PRF04 PO date and SN1 quantities that match the 810. Fictional parties and SCAC

Document
856 Advance Ship Notice
From / to
CEDARLINE → HARBORHOME
Segments
39
Ship To
HARBOR HOME DC 02
4400 RIVERGATE PKWY, COLUMBUS, OH, 43217
Ship From
CEDARLINE HOME
2150 BRISTOL AVE NW, GRAND RAPIDS, MI, 49504
Interchange date
Nov 10, 2026

Raw EDI (X12)

1
ISA*00* *00* *ZZ*CEDARLINE *ZZ*HARBORHOME *261110*1430*U*00401*000008561*0*P*:~
2
GS*SH*CEDARLINE*HARBORHOME*20261110*1430*8561*X*004010~
3
ST*856*0001~
4
BSN*00*CL-SHP-55104*20261110*1430*0001~
5
HL*1**S~
6
TD1*PLT94*1****G*412*LB~
7
TD5**2*HRBL*M~
8
REF*BM*CL-BOL-55104~
9
DTM*011*20261110~
10
DTM*017*20261112~
11
N1*ST*HARBOR HOME DC 02*92*DC02~
12
N3*4400 RIVERGATE PKWY~
13
N4*COLUMBUS*OH*43217~
14
N1*SF*CEDARLINE HOME*92*V20417~
15
N3*2150 BRISTOL AVE NW~
16
N4*GRAND RAPIDS*MI*49504~
17
HL*2*1*O~
18
PRF*4500091150***20261102~
19
HL*3*2*T~
20
MAN*GM*00008551900000041018~
21
HL*4*3*P~
22
MAN*GM*00008551900000041025~
23
HL*5*4*I~
24
LIN**UP*085519001205*VN*CL-LAMP-BRS~
25
SN1**24*EA~
26
HL*6*3*P~
27
MAN*GM*00008551900000041032~
28
HL*7*6*I~
29
LIN**UP*085519001229*VN*CL-RUG-0508~
30
SN1**10*EA~
31
HL*8*3*P~
32
MAN*GM*00008551900000041049~
33
HL*9*8*I~
34
LIN**UP*085519001212*VN*CL-SHADE-LIN~
35
SN1**12*EA~
36
CTT*9~
37
SE*35*0001~
38
GE*1*8561~
39
IEA*1*000008561~

Human-Readable

Interchange

Sender ID(ZZ)CEDARLINE
Receiver ID(ZZ)HARBORHOME
Date261110
Time1430
Standards IDU
Version00401
Control Number000008561
Acknowledgment RequestedNo
UsageProduction
Included Groups (IEA01)1

Functional Group

Functional IDSHShip Notice
SenderCEDARLINE
ReceiverHARBORHOME
Date20261110
Time1430
Control Number8561
Agency CodeX
Version004010
Transactions1
Reported Transaction Count (GE01)1

Transaction 856

Advance Ship Notice
Transaction Type856
Control Number0001
Segments, ST to SE35
Count in SE0135 (matches)

Shipment Information

Shipment IDCL-SHP-55104
Date2026-11-10
Time1430

Parties

Ship ToHARBOR HOME DC 02 (ID DC02), 4400 RIVERGATE PKWY, COLUMBUS, OH, 43217
Ship FromCEDARLINE HOME (ID V20417), 2150 BRISTOL AVE NW, GRAND RAPIDS, MI, 49504

Items (3)

Item 1
UPC: 085519001205
Vendor Item: CL-LAMP-BRS
Qty: 24 EA
Item 2
UPC: 085519001229
Vendor Item: CL-RUG-0508
Qty: 10 EA
Item 3
UPC: 085519001212
Vendor Item: CL-SHADE-LIN
Qty: 12 EA

Additional Segments (20)

HLHierarchical Level
HL01Hierarchical ID1
HL03Level CodeS
TD1Carrier Details (Quantity and Weight)
TD101Packaging CodePLT94
TD102Lading Quantity1
TD106Weight QualifierG
TD107Weight412
TD108Weight UOMLB
TD5Carrier Details
TD502ID Qualifier2
TD503ID CodeHRBL
TD504Transport MethodM
REFReference Identification
REF01QualifierBM
REF02Reference IDCL-BOL-55104
DTMDate/Time Reference
DTM01Date Qualifier011
DTM02Date20261110
DTMDate/Time Reference
DTM01Date Qualifier017
DTM02Date20261112
HLHierarchical Level
HL01Hierarchical ID2
HL02Parent ID1
HL03Level CodeO
PRFPurchase Order Reference
PRF01PO Number4500091150
PRF04PO Date20261102
HLHierarchical Level
HL01Hierarchical ID3
HL02Parent ID2
HL03Level CodeT
MANMarks and Numbers
MAN01Marks QualifierGM
MAN02Marks and Numbers00008551900000041018
HLHierarchical Level
HL01Hierarchical ID4
HL02Parent ID3
HL03Level CodeP
MANMarks and Numbers
MAN01Marks QualifierGM
MAN02Marks and Numbers00008551900000041025
HLHierarchical Level
HL01Hierarchical ID5
HL02Parent ID4
HL03Level CodeI
HLHierarchical Level
HL01Hierarchical ID6
HL02Parent ID3
HL03Level CodeP
MANMarks and Numbers
MAN01Marks QualifierGM
MAN02Marks and Numbers00008551900000041032
HLHierarchical Level
HL01Hierarchical ID7
HL02Parent ID6
HL03Level CodeI
HLHierarchical Level
HL01Hierarchical ID8
HL02Parent ID3
HL03Level CodeP
MANMarks and Numbers
MAN01Marks QualifierGM
MAN02Marks and Numbers00008551900000041049
HLHierarchical Level
HL01Hierarchical ID9
HL02Parent ID8
HL03Level CodeI
CTTTransaction Totals
CTT01Line Item Count9
1 functional group1 transactionControl #000008561Valid

856 Structure at a Glance

The 856 is short at the top and long in the middle: one heading, then one HL loop per level.

AreaSegmentNameUsage in 004010Notes
HeadingSTTransaction Set HeaderMandatoryST01 = 856
HeadingBSNBeginning Segment for Ship NoticeMandatoryPurpose, shipment ID, date, time, hierarchy code
HeadingDTMDate/Time ReferenceOptionalSome partners want ship date here instead of in the HL loop
DetailHLHierarchical LevelMandatory loopStarts each shipment, order, tare, pack or item level
DetailLINItem IdentificationOptionalItem level: product ID pairs
DetailSN1Item Detail (Shipment)OptionalItem level: quantity and unit shipped
DetailPRFPurchase Order ReferenceOptionalOrder level: PO number and date
DetailPO4Item Physical DetailsOptionalPack size, weights and dimensions
DetailPIDProduct/Item DescriptionOptionalItem description
DetailTD1Carrier Details (Quantity and Weight)OptionalShipment level: package count and weight
DetailTD5Carrier Details (Routing)OptionalShipment level: carrier SCAC and mode
DetailTD3Carrier Details (Equipment)OptionalTrailer number and seal
DetailREFReference IdentificationOptionalBOL, carrier PRO, department, appointment
DetailMANMarks and NumbersOptionalTare and pack levels: SSCC label numbers
DetailDTMDate/Time ReferenceOptionalShipped and estimated delivery dates
DetailFOBF.O.B. Related InstructionsOptionalFreight payment terms
DetailN1 loopName, with N3, N4OptionalShip-from, ship-to, buyer, mark-for store
SummaryCTTTransaction TotalsOptionalNumber of HL segments, optional hash total
SummarySETransaction Set TrailerMandatorySegment count and control number

Almost everything is optional in the standard and required in practice. The retailer's guide decides.

Key Segments Explained

BSN - Beginning Segment for Ship Notice

BSN*00*CL-SHP-55104*20261110*1430*0001~
ElementNameExampleWhat it means
BSN01Transaction Set Purpose Code0000 original. Some partners accept a replacement or cancellation code; check the guide
BSN02Shipment IdentificationCL-SHP-55104Your unique shipment or ASN number. Never reuse it
BSN03Date20261110The date the ASN was created, usually the ship date
BSN04Time1430Time in HHMM
BSN05Hierarchical Structure Code0001The order of the HL levels (see above)

TD1 - Carrier Details (Quantity and Weight)

TD1*PLT94*1****G*412*LB~
ElementNameExampleWhat it means
TD101Packaging CodePLT94Package form plus material: PLT94 wooden pallet, CTN25 corrugated carton
TD102Lading Quantity1Number of packages of that type
TD106Weight QualifierGG gross weight
TD107Weight412The weight
TD108Unit of MeasureLBLB pounds, KG kilograms

TD102 has to agree with what is in the hierarchy. If TD1 says three cartons and the ASN has two pack levels, receiving cannot reconcile the shipment.

TD5 - Carrier Details (Routing Sequence/Transit Time)

TD5**2*HRBL*M~
ElementNameExampleWhat it means
TD501Routing Sequence CodeOften empty; some guides ask for a routing sequence code
TD502Identification Code Qualifier22 means the next element is a SCAC
TD503Identification CodeHRBLThe carrier's SCAC (fictional here)
TD504Transportation Method/Type CodeMM motor (common carrier), U private parcel service, A air, R rail, LT LTL
TD505RoutingFree-text routing, where used

The value in TD503 must be the carrier's SCAC, not its name. On routed (collect) freight, use the carrier the buyer assigned, usually from its routing guide or a 754 routing instruction.

REF - Reference Identification

REF*BM*CL-BOL-55104~
REF*CN*PRO4471029~
REF01X12 meaningTypical use in an 856
BMBill of Lading NumberThe BOL for the shipment, at the shipment level
CNCarrier's Reference Number (PRO/Invoice)The LTL carrier's PRO number
2ITracking NumberA parcel tracking number, where the partner wants it in REF
DPDepartment NumberAt the order level
AOAppointment NumberThe receiving appointment, where one was booked
IVSeller's Invoice NumberWhen the partner wants the invoice number on the ASN

For parcel shipments, many partners want each carton's tracking number at the pack level, in a REF or in a MAN segment with qualifier CP (carrier-assigned package ID). The guide says which.

PRF - Purchase Order Reference

PRF*4500091150***20261102~
ElementNameExampleWhat it means
PRF01Purchase Order Number4500091150The PO from BEG03 of the 850
PRF02Release NumberFor releases against a blanket order
PRF03Change Order Sequence NumberWhere the PO was changed
PRF04Date20261102The PO date

MAN - Marks and Numbers

The MAN segment carries the number printed on the GS1-128 shipping label.

MAN*GM*00008551900000041025~
ElementNameExampleWhat it means
MAN01Marks and Numbers QualifierGMGM = SSCC-18 and Application Identifier. AA = SSCC-18 alone. CP = carrier-assigned package ID
MAN02Marks and Numbers00008551900000041025With GM, the 00 application identifier followed by the 18-digit SSCC: 20 digits in all

Which form your partner wants (20 digits with GM, or 18 with AA) is in its guide. The number must match the barcode on the physical label exactly.

SSCC structure:

00 0 0855190 000004102 5
│  │ │       │         └─ Check digit (GS1 mod 10)
│  │ │       └─────────── Serial reference
│  │ └─────────────────── GS1 Company Prefix
│  └───────────────────── Extension digit
└──────────────────────── Application identifier (not part of the SSCC)

The SSCC itself is 18 digits: an extension digit, your GS1 Company Prefix, a serial reference and a check digit. Company prefixes vary in length, and the serial reference gets shorter as the prefix gets longer, so the total always stays 18.

LIN - Item Identification

LIN**UP*085519001205*VN*CL-LAMP-BRS~

LIN01 is an optional line number (some buyers want the PO101 line number from the 850 here). Then come qualifier and ID pairs: LIN02/LIN03, LIN04/LIN05 and so on. Use the same identifiers the buyer sent on the 850: typically UP (U.P.C.), VN (vendor item), BP (buyer's part number) or IN (buyer's item number).

SN1 - Item Detail (Shipment)

SN1**24*EA~
ElementNameExampleWhat it means
SN101Assigned IdentificationOptional line ID
SN102Number of Units Shipped24Quantity shipped in this pack
SN103Unit or Basis for Measurement CodeEAThe unit, matching the 850's unit
SN104Quantity Shipped to DateSome buyers want the cumulative quantity
SN105Quantity OrderedSome buyers want the original order quantity

CTT - Transaction Totals

In the 856, CTT01 is the number of HL segments, not the number of items. CTT02, where sent, is a hash total, usually the sum of the SN102 quantities.

Packing Hierarchy Examples

Example 1: Single Carton (S-O-P-I)

HL*1**S~      Shipment
HL*2*1*O~     Order: PO-123
HL*3*2*P~     Pack: carton 1 (MAN*GM)
HL*4*3*I~     Item A: 50 units
HL*5*3*I~     Item B: 30 units

Example 2: Multiple Cartons (S-O-P-I)

HL*1**S~      Shipment
HL*2*1*O~     Order: PO-123
HL*3*2*P~     Pack: carton 1
HL*4*3*I~     Item A: 50 units
HL*5*2*P~     Pack: carton 2
HL*6*5*I~     Item A: 50 units
HL*7*2*P~     Pack: carton 3
HL*8*7*I~     Item B: 100 units

Example 3: Palletized Shipment (S-O-T-P-I)

HL*1**S~      Shipment
HL*2*1*O~     Order: PO-123
HL*3*2*T~     Tare: pallet 1 (pallet SSCC)
HL*4*3*P~     Pack: carton 1 (carton SSCC)
HL*5*4*I~     Item A: 100 units
HL*6*3*P~     Pack: carton 2
HL*7*6*I~     Item A: 100 units

Example 4: Two Purchase Orders on One Truck

HL*1**S~      Shipment
HL*2*1*O~     Order: PO-123
HL*3*2*P~     Pack
HL*4*3*I~     Item
HL*5*1*O~     Order: PO-456 (parent is the shipment again)
HL*6*5*P~     Pack
HL*7*6*I~     Item

Timing Requirements

Every retailer sets its own ASN deadline, and most tie it to the shipment rather than to delivery: the ASN must be received before the freight arrives, and often within a set time after it leaves your dock. The exact rule, and what happens when you miss it, is in the retailer's routing guide, EDI guide or vendor agreement. Our compliance pages for Walmart, Target and Amazon summarize what each retailer asks suppliers to set up.

The safe habit: build the ASN from the closed shipment (packed cartons, loaded pallet, BOL and carrier assigned) and send it as soon as the trailer is closed, before the carrier leaves.

Common Use Cases

1. Retail Distribution Center Delivery

Palletized or floor-loaded freight to a retailer DC. Each pallet and carton carries an SSCC label, the hierarchy is usually S-O-T-P-I or S-O-P-I, and the carrier often comes from the retailer's routing.

2. Store-Ready Cross-Dock

Cartons packed for individual stores and shipped through the DC. Each order level or pack carries a mark-for store (N1*BY or a similar code in the partner's guide) so the DC can sort without opening anything.

3. Drop Ship to Consumer

One or a few parcels to a consumer address. The hierarchy is short, and each carton usually carries its parcel tracking number.

4. Multiple POs on One Shipment

One truck carrying several purchase orders to the same location. One shipment level, one order level per PO, each with its own packs and items.

Implementation Best Practices

1. Generate SSCC Labels From the Same Data as the ASN

Every pallet and carton needs a unique SSCC, printed on a GS1-128 label and repeated in MAN. The SSCC label generator builds the numbers and prints 4x6 labels from your company prefix or straight from an 856.

Check digit example for the 17 digits 00855190000004102: multiply digits by 3 and 1 alternately, starting with 3 on the rightmost digit, sum them, and take the amount needed to reach the next multiple of 10. Here the weighted sum is 85, so the check digit is 5 and the SSCC is 008551900000041025. The check digit calculator does the same for any GS1 number.

2. Build the ASN From Pick and Pack Confirmation

  • Generate the ASN from what was packed and scanned, not from the PO
  • Record shorts and substitutions before the ASN is built
  • Include lot or serial numbers where the buyer requires them
  • Assign the carton SSCC at packing, so the label and the ASN cannot drift apart

3. Capture Carrier Data at Pickup

  • Use the carrier's SCAC in TD503, not its name
  • Put the BOL number in REF*BM, and the PRO number in REF*CN for LTL
  • Record parcel tracking numbers per carton where required
  • Add the appointment number if the delivery was booked

4. Validate Before Sending

The free EDI response builder drafts an 856 from the 850 with SSCCs per carton, and Compare EDI documents checks the finished ASN against the PO and the invoice line by line. Before you send, check:

  • The PO number matches the 850
  • Item IDs match what the buyer sent
  • Quantities do not exceed the order unless overshipment is allowed
  • Every SSCC is unique and matches a printed label
  • TD1 counts and weights agree with the hierarchy
  • CTT01 equals the number of HL segments

Common Errors to Avoid

ErrorWhat happensPrevention
Missing or wrong parent IDsThe receiver cannot rebuild the hierarchy; ASN rejectedGenerate HL02 from the pack structure, never by hand
Hierarchy does not match BSN05Rejection or a failed load at the DCSend the code your structure actually follows, and the one your partner's guide requires
Duplicate SSCCSecond carton cannot be received by scanDraw serial references from one sequence per company prefix and never reuse them
SSCC length wrong for the qualifierMAN rejected20 digits with MAN*GM, 18 with MAN*AA, unless the guide says otherwise
Carrier name instead of SCAC in TD5Carrier not recognized; routing compliance failureUse TD502 = 2 with the four-letter SCAC
BOL or tracking number missingReceiving cannot match the freight to the ASNCapture REF*BM (and REF*CN or tracking) at pickup
TD1 count disagrees with packsReceipt flagged for investigationCompute TD102 from the packs in the hierarchy
ASN built from the PO, not the packQuantities on the ASN do not match the freight; 861 shows shortagesBuild from scan-confirmed pick and pack data
PO date in the wrong PRF elementValidation error or failed PO matchThe PO date goes in PRF04
ASN sent after the freight arrivesLate ASN under the vendor agreementSend when the trailer is closed
Wrong:  HL*1**S~HL*2**O~HL*3**I~
Right:  HL*1**S~HL*2*1*O~HL*3*2*P~HL*4*3*I~

The first version has no parent IDs, so the receiver cannot tell what belongs to what. The second version names each parent.

How the 856 Relates to Other EDI Documents

The 856 is one step in the order-to-cash sequence, and it is easy to confuse with the acknowledgment, the warehouse shipping advice and the invoice.

DocumentWhat it communicatesDirectionTiming
850 Purchase OrderWhat the buyer wants to buyBuyer to supplierOrder placed
855 PO AcknowledgmentWhether the supplier accepts or changes the orderSupplier to buyerAfter the 850 arrives
753 / 754Request for routing and the buyer's routing answerSupplier asks, buyer answersBefore pickup, on collect freight
945 Warehouse Shipping AdviceA 3PL's confirmation of what it shippedWarehouse to supplierAfter the warehouse ships
856 Ship Notice (ASN)What shipped and how it is packedSupplier to buyerAt shipment, before arrival
857 Shipment and Billing NoticeShip notice and invoice in one documentSupplier to buyerAt shipment, replacing both 856 and 810
861 Receiving AdviceWhat the buyer actually receivedBuyer to supplierAfter receipt
810 InvoiceThe amount owed for what shippedSupplier to buyerAfter shipment

The 856 is the only one of these that carries the full packing hierarchy with SSCC labels. The 945 looks similar but flows the other way: a third-party warehouse uses it to tell you what it shipped, and you build the 856 from that data to notify the buyer. A buyer that asks for order status before shipment uses an 869 inquiry and 870 report instead.

856 Implementation Checklist

Before your first live 856 with a new partner:

  • Get the partner's 856 guide, its GS08 version and its ASN deadline
  • Confirm the required BSN05 code and hierarchy (S-O-P-I, S-O-T-P-I or another)
  • Confirm the MAN qualifier and SSCC length, and get a GS1 Company Prefix if you don't have one
  • Confirm which product IDs it wants in LIN and whether it wants the 850 line number
  • Confirm which references it needs (BOL, PRO, tracking, department, appointment) and at which level
  • Confirm how mark-for stores are identified for store-ready freight
  • Print a test label and confirm the barcode matches the ASN exactly
  • Test a single carton, a pallet, a multi-PO shipment and a short shipment
  • Monitor 997s and 861s closely for the first weeks of production

If you are new to retail EDI, our EDI compliance guide and EDI document types reference show how the ASN fits with the other documents your partners may require.

Testing Your 856 Implementation

Paste an 856 into our free EDI inspector to see every HL level parsed and labelled, with a plain-English summary of the shipment. It also explains structural rejections, such as a bad segment count or a missing parent ID.

Where OrderSync Fits

Most ASN errors start upstream. A PO loaded with the wrong ship-to, unit of measure or item number gets picked wrong, and the ASN faithfully reports the wrong shipment. Orders also arrive in more than one format: the same retailer may send 850s while its stores email PDFs.

OrderSync reads inbound orders in any format, matches customers, ship-to locations, items and units to your catalog, and outputs clean ERP data or valid X12, so your warehouse picks and ships against the right order. It also generates outbound 856s from your shipment data, built to each partner's hierarchy and label requirements. Read more about order processing automation, or book a 15-minute walkthrough to see your own orders processed.

Related Transaction Sets

Frequently Asked Questions

What is the HL hierarchy in an EDI 856?

The HL (Hierarchical Level) structure is how the 856 describes packing. The top level is the shipment (S), which contains order levels (O), which contain pallet (T) and carton (P) levels, which contain item levels (I). Each HL carries its own ID and its parent's ID, so the receiver can rebuild exactly which items are in which carton on which pallet.

What is an SSCC-18 label and why does it matter?

The SSCC (Serial Shipping Container Code) is an 18-digit GS1 number that uniquely identifies one pallet or carton. It is printed as a GS1-128 barcode on the shipping label and repeated in the MAN segment of the ASN. Receivers scan it to receive the carton against the ASN, so a missing, duplicated or mismatched SSCC forces a manual count.

How soon must I send an 856 after shipment?

Each retailer sets its own deadline in its EDI guide, routing guide or vendor agreement, and the rule is usually tied to the shipment leaving your dock. In every case the ASN must reach the buyer before the freight does. The safe practice is to send it as soon as the trailer is closed.

What happens if my 856 quantities do not match what actually shipped?

The buyer finds the difference at receiving. It may report it on an 861 Receiving Advice, adjust the invoice payment, or apply an ASN accuracy deduction under its vendor agreement. The fix is to build the 856 from scan-confirmed pick and pack data, not from the purchase order.

Can one 856 cover multiple purchase orders?

Yes. A single ASN can have several order (O) levels under one shipment (S) level, each with its own PRF segment and its own pack and item levels. This is common when one truck carries several open POs to the same location. Some partners limit an ASN to one PO, so check the guide.

What is the difference between EDI 810 and 856?

The 856 is the ship notice and the 810 is the invoice. The 856 goes out at shipment and describes what shipped and how it is packed. The 810 goes out after shipment and bills for it. The 810 should bill for what the 856 reported, not the original order quantity, or the buyer's match fails and payment is held.

What is the difference between EDI 855 and 856?

The 855 is the purchase order acknowledgment and the 856 is the ship notice. The 855 is sent soon after the 850 arrives and says what you will ship, including backorders and changes. The 856 is sent at shipment and reports what actually left your dock. The 855 is a promise about the order; the 856 is a record of the shipment.

What is the difference between EDI 945 and 856?

Both describe a shipment, but they flow in different directions. A 3PL sends the 945 Warehouse Shipping Advice to you, the supplier, to confirm what it shipped against your 940 order. You send the 856 to the buyer. If you use a 3PL, the 945 is your source data and the 856 is the notice you build from it.

What is the difference between EDI 856 and 857?

The 857 Shipment and Billing Notice combines the ship notice and the invoice in one document. A buyer that uses the 857 receives it instead of both the 856 and the 810. Most retail buyers use the separate 856 and 810, so only build an 857 when a partner's guide asks for it.

A European partner asked for a DESADV instead of an 856

DESADV is the EDIFACT despatch advice, and it fills the role the 856 fills in X12. Peppol defines a Despatch Advice profile that does the same job in UBL. The three-standard mapping shows how the hierarchies line up.

James Darby
Last updated: 11/5/2026

Trading with one or two retailers? Otto prepares your EDI documents for $200 per trading partner a month. See self-serve EDI

Related Resources