X12856ASNLogisticsSSCC

X12 856 Advance Ship Notice: The Complete EDI Guide

Everything you need to build, validate, and troubleshoot an X12 856 ASN — including the HL hierarchy that trips up almost every new implementation.

Marcus Webb · EDI Solutions ArchitectPublished 2026-04-11Updated 2026-09-0216 min read
Technical Review by Priya Raman, Senior EDI Integration Engineer
In this article

The 856 Advance Ship Notice is arguably the most technically demanding of the common retail EDI transactions — not because any individual segment is complicated, but because its HL (Hierarchical Level) structure requires you to correctly model a physical packing hierarchy in flat, sequential EDI segments. Get the hierarchy wrong and nothing downstream works.

1. What is X12 856?

The 856 tells a buyer exactly what was shipped, how it's packed, and when it will arrive — sent before or at the moment of shipment, so the receiving dock knows what to expect.

2. Why ASNs matter

  • Enables scan-based receiving: workers scan a pallet's barcode and the system pulls up its full contents automatically.
  • Lets warehouses plan labor and dock schedules ahead of a truck's arrival.
  • Forms the backbone of retailer vendor-compliance programs — late or inaccurate ASNs are one of the most common sources of chargebacks.

3. The HL hierarchy

Unlike the flat PO1 loops in an 850, the 856 uses HL segments to build parent-child relationships. A typical structure has four levels: Shipment (S), Order (O), Pack (P), and Item (I). Each HL segment declares its own ID number and points to its parent's ID number.

HL01 (This Loop)HL02 (Parent)HL03 (Level Code)Meaning
1(none)SShipment — the top of the hierarchy
21OOrder — this shipment fulfills PO-2024-88213
32PPack — a pallet or carton within that order
43IItem — a specific SKU inside that pack

The #1 mapping mistake

When you have nested packaging (a pallet containing multiple cartons), each carton's HL02 must point to the pallet's HL01 — not back to the order loop. Skipping a nesting level is the single most common cause of 997 hierarchy rejections.

4. Example 856

856 Advance Ship Notice — interactive EDI message visualizer

ST

This is an envelope or control segment. Select a highlighted segment on the left (shown in green) for a full business explanation.

5. SSCC labels explained

The MAN segment carries the SSCC (Serial Shipping Container Code) — an 18-digit GS1 identifier printed as a barcode on the physical carton or pallet label. When the SSCC on the label matches the SSCC in the ASN's MAN segment, receiving software can pull up the full contents of that container with a single scan, with no manual counting required.

6. How X12 856 works, end to end

Zooming out from individual segments, here's the complete business and technical journey the 856 takes — from the supplier's warehouse all the way through to inventory being updated on the buyer's dock. Press Play Flow to watch the ASN travel through each stage, or click any step for a deeper explanation, including its common segments.

How it works

How 856 Advance Ship Notice Works

Sender

Supplier / Distribution Center

Receiver

Buyer / Retailer / Warehouse

Direction

Seller → Buyer

Standard

ANSI ASC X12

Version

005010

Transport

AS2 / SFTP / VAN / API

Business Purpose

Logistics & Fulfillment

Sender — Supplier / Distribution Center

EDI Transmission

856

Advance Ship Notice

ANSI ASC X12 004010 / 005010

AS2SFTPVANAPI

Receiver — Buyer / Retailer / Warehouse

Need help understanding this EDI flow?

Ask EDI AI →
Figure: 856 Advance Ship Notice workflow from Supplier / Distribution Center through EDI transmission to Buyer / Retailer / Warehouse. Standard: ANSI ASC X12 004010 / 005010 · Transaction: 856 · Direction: Seller → Buyer

856 Advance Ship Notice workflow. Steps: Order Fulfillment, Create 856 EDI, Validate EDI, Send to Trading Partner, Receive EDI, Validate / Translate, Process in ERP / WMS, Physical Goods Receiving, Inventory Update, Confirmation / Acknowledgment. Transmitted from Supplier / Distribution Center to Buyer / Retailer / Warehouse via AS2, SFTP, VAN, API, following ANSI ASC X12 004010 / 005010.

7. Mapping example

EDI Mapping Visualizer

Pick a source and target format to see how fields translate.

Source · SAP

E1EDP01-MATNR
E1EDP01-MENGE
E1EDP01-NETPR
E1EDT10-NTANF
E1EDK01-BELNR

Target · X12

PO108 (Product/Service ID)
PO102 (Quantity Ordered)
PO104 (Unit Price)
DTM*002 (Requested Delivery Date)
BEG03 (Purchase Order Number)

Business fields represented: Item / Material · Quantity · Unit Price · Delivery Date · Order Reference. Hover a row to trace it across formats.

8. Validation rules

  • Every HL loop must reference a valid parent via HL02, except the top-level Shipment loop.
  • MAN02 (SSCC) must be exactly 18 digits and pass GS1 check-digit validation.
  • PRF (PO number reference) must match an open, previously received 850.
  • CTT01 must equal the total count of HL loops in the transaction.

9. Common errors

ErrorLikely CauseFix
Receiving can't match cartons to the ASNSSCC regenerated after ASN was sent (e.g., repack)Lock SSCC assignment before transmission, or send a corrected 856
HL hierarchy error on 997HL02 points to a nonexistent HL01Validate parent-child integrity before sending
Quantity variance at receivingLast-minute pick shortage not reflectedGenerate ASN only after final pack confirmation, not at wave release

10. ASN compliance and chargebacks

Most major retailers enforce ASN timing and accuracy requirements through their vendor compliance programs, with financial chargebacks for violations — late transmission, missing SSCC labels, or quantity mismatches between the ASN and what physically arrives. Building ASN generation directly off final pack confirmation (not off an earlier wave-release event) is the single highest-leverage change most suppliers can make to reduce these penalties.

Frequently asked questions

Because automated receiving and labor scheduling both depend on the ASN arriving before the truck.

Have a follow-up question about this topic?

Ask EDI AI →