EDI 856 HL Segment: S→O→T→P→I Hierarchy Validator & Excel Flattener
Understand how HL01 (ID), HL02 (Parent ID), and HL03 (Level Code: S, O, T, P, I) construct a packaging tree—and flatten any 856 ASN into a single Excel table.
Drop your file below, check the order, then download for Excel (.XLSX) & CSV.
- 1Load your order file
- 2Check it and match your SKUs
Drop your EDI order file here
.edi, .x12 or .txt. The file is read on your computer and is not uploaded.
No chargeback risks found. This order passes every check.
Checked against the Target supplier guide for EDI 856.
- Verified 3 GS1-128 (SSCC-18) Modulo 10 barcodes across 7 HL hierarchy nodes.
Raw EDI Code Inspector
39 linesIdentifies the physical shipment in an EDI 856 ASN and declares the hierarchy structure (e.g., 0001 for SOTPI/SOPI).
Packing List & Advance Ship Notice (ASN)
| Carton Barcode (SSCC-18) | Purchase Order # | Ship-To Warehouse / DC | Your SKU & Item ID | Shipped Qty |
|---|---|---|---|---|
00006141410000010004 Pallet: 00106141410000099990 | TGT-PO-889900 Dept: 049 | TARGET REGIONAL DC 0555 DC #0555 · ZIP 76065 | Item: 049-12-3456 · UPC: 012345678905 | 50 EA |
00006141410000010011 Pallet: 00106141410000099990 | TGT-PO-889900 Dept: 049 | TARGET REGIONAL DC 0555 DC #0555 · ZIP 76065 | Item: 049-12-3499 · UPC: 012345678912 | 30 EA |
View Advanced Packaging Hierarchy (Optional)
Download for your software
Pick where the order is going, then download. Files are ready for Excel, QuickBooks, Shopify or a thermal printer.
Field mapping table: which EDI segment fills which column (for IT & bookkeepers)
EDI 856 HL03 Level Codes (S, O, T, P, I) & Child Segments
Deterministic segment-to-column mapping rules enforced by our client-side X12 engine
| Source X12 Segment / Element | Sample Raw Value | Target ERP / CSV Column | Transformation & Validation Logic |
|---|---|---|---|
| HL*1**S~ (Shipment Level) | HL01=1, HL02="", HL03=S | Root Shipment Node | Contains TD1 (weight/cartons), TD5 (SCAC), REF*BM (BOL), DTM, and N1*SF / N1*ST addresses. |
| HL*2*1*O~ (Order Level) | HL01=2, HL02=1, HL03=O | Purchase Order Node | Links to Shipment (1) and carries PRF (PO #) and REF*DP (Department #). |
| HL*3*2*T~ & HL*4*3*P~ (Tare & Pack) | HL03=T (Pallet) / HL03=P (Carton) | Container Barcode Nodes | Carries MAN*GM 20-digit SSCC-18 pallet and carton barcodes. |
| HL*5*4*I~ (Item Level) | HL01=5, HL02=4, HL03=I | Packed SKU & Quantity Node | Links to Pack (4) and carries LIN (SKU/UPC), SN1 (Shipped Qty), and PID. |
Critical Chargeback & Import Pitfalls We Prevent
Common EDI mistakes that trigger $250+ retailer fines or accounting balance errors
Non-Sequential HL01 IDs or Orphan HL02 Parent Pointers
Risk: 997 / 824 ASN RejectionHL01 must increment sequentially (1, 2, 3, 4...), and every HL02 must point to a valid existing ancestor HL01.
Putting LIN/SN1 Inside the Pack (P) Level Instead of Item (I)
Risk: Missing Line Items at ReceivingIn SOTPI/SOPI structures, MAN*GM belongs under Pack (P), while LIN and SN1 must reside under a child Item (I) HL node.
CTT01 Not Matching Total HL Segment Count
Risk: ASN Integrity ErrorIn an 856 ASN, CTT01 counts the total number of HL segments (e.g., 7), not just the number of items (2).
How to Validate & Flatten an 856 HL Hierarchy
Zero middleware setup — complete in under 60 seconds
Click any HL badge in the right pane to highlight that node in the X12 AST tree.
See how Shipment, Order, Pallet, and Carton attributes merge onto each Item row.
Download the flattened spreadsheet or print GS1-128 labels for all P nodes.
Frequently Asked Technical Questions
ANSI X12 specification details, retail companion rules, and ERP import answers
What does SOTPI stand for in an EDI 856?
S = Shipment, O = Order, T = Tare (Pallet), P = Pack (Carton/Case), I = Item. It is the standard 5-tier packaging hierarchy used by Target, Walmart, and major grocers.
How does EDIParse flatten an 856 HL tree into Excel?
For each leaf Item (I) node, our algorithm walks up the parentId chain (I -> P -> T -> O -> S) and merges all ancestor attributes into a single denormalized row.
Related EDI Converters, Retailer Guides & X12 Segment References
- X12 referenceEDI 810 BIG Segment: Beginning Segment for Invoice Guide
- X12 referenceEDI 810 TDS Segment: Total Monetary Value & N2 Implied Decimal Guide
- X12 referenceEDI 850 & 810 SAC Segment: Allowance, Charge & SAC05 N2 Guide
- X12 referenceEDI 997 & 824 Rejection Codes Lookup & 1-Click Auto-Fix Tool
- X12 referenceEDI 850 BEG Segment: Beginning Segment for Purchase Order Guide
- ToolsGS1-128 (UCC-128) 4x6" Carton Label PDF Generator for EDI 856 & 850
- Transaction setsEDI 856 Advance Ship Notice (ASN) Inspector, Excel Converter & Label Generator
- IntegrationsConvert EDI 850 Purchase Orders to ShipStation & WMS CSV
- RetailersLowe’s EDI 850 / 856 / 810 Translator, Validator & ERP Bridge