858 Shipment Information (007010)

This is the standard X12 007010 spec, with 14 loops and 124 segment positions, as OpenEDI JSON, an ediFabric C# template and an ediFabric Native model. To change it for a trading partner, customize it in the EDI Spec Builder.

Loading the spec…
The spec as an OpenAPI 3 schema with x-openedi-* extensions, for ediFabric Native, ediFabric Cloud and the EDI Spec Builder. Download OpenEDI (191 KB) Generate classes
The ediFabric .NET template, class TS858. It needs the common segments, composites and codes of X12 007010, one download for every transaction in the version. Download C# (2 KB) Common files (230 KB)
The intermediary model ediFabric Native loads with set_map. Download Native (161 KB)

Use the 858 spec in your code

ediFabric .NET

Add the C# template and its common files to your project, or reference the template NuGet package, and read 858 files into TS858 objects. See ediFabric .NET.

ediFabric Native

Map version 007010 to the Native model with set_map, then parse 858 files to JSON from Python, Java, C or C#. See Convert between EDI and JSON.

OpenEDI

Select Customize in Spec Builder to copy the spec under your own name, change it for your partner, and parse files against it in EdiNation, ediFabric Native or ediFabric Cloud. Read about OpenEDI.

Generate 858 classes in Python, Java, Node.js, Go, Rust or C

ediFabric Native returns each 858 as JSON, with the property names of the OpenEDI schema. To work with that JSON as typed objects, generate classes from the OpenEDI file in your language and deserialize the JSON into TS858. Serialize the objects back to JSON to build EDI with ediFabric Native. The classes keep the loops, segments, lengths and code lists, but not the EDI data formats, so validate files with ediFabric Native. Read more in Generate a class from OpenEDI.

Python: datamodel-code-generator. Node.js: openapi-typescript. Java, Go, Rust and C: OpenAPI Generator.

858 structure

Loops and segments of the standard 858, with their usage and maximum repeats.

IDNameUsageMax use
STTransaction Set HeaderMandatory1
ZC1ZC1Optional1
BXBXMandatory1
BNXBNXOptional1
M3M3Optional1
N9N9Optional30
CMCMOptional3
Y6Y6Optional4
Y7Y7Optional1
C3C3Optional1
ITDITDOptional1
G62G62Optional10
PERPEROptional3
NANAOptional999
F9F9Optional1
D9D9Optional1
R1R1Optional1
R2R2Optional13
R3R3Optional13
R4R4Optional5
MEAMEAOptional10
H3H3Optional20
PSPSOptional5
H6H6Optional6
V4V4Optional1
V5V5Optional1
Loop E1E1Optional2
E1E1Mandatory1
E4E4Mandatory1
E5E5Mandatory13
PIPIOptional1
M1M1Optional1
M2M2Optional1
L7L7Optional30
NTENTEOptional50
XHXHOptional1
Loop N7N7Optional600
N7N7Mandatory1
EMEMOptional1
NANAOptional30
M7M7Optional5
N5N5Optional1
G62G62Optional2
REFREFOptional5
ICICOptional1
VCVCOptional36
M12M12Optional2
GAGAOptional15
Loop E1E1Optional2
E1E1Mandatory1
E4E4Mandatory1
E5E5Mandatory13
PIPIOptional1
Loop N1N1Optional12
N1N1Mandatory1
N2N2Optional2
N3N3Optional2
N4N4Optional1
REFREFOptional12
PERPEROptional3
H3H3Optional5
Loop S5S5Optional999
S5S5Mandatory1
G62G62Optional6
N9N9Optional10
H6H6Optional6
Loop N1N1Optional5
N1N1Mandatory1
N2N2Optional2
N3N3Optional2
N4N4Optional1
PERPEROptional2
BLBLOptional12
Loop FA1FA1Optional99999
FA1FA1Mandatory1
FA2FA2Mandatory99999
L10L10Optional1
Loop HLHLMandatory99999
HLHLMandatory1
N7N7Optional1
NANAOptional1
M7M7Optional5
N5N5Optional1
REFREFOptional5
ICICOptional1
VCVCOptional36
L7L7Optional10
SL1SL1Optional1
N9N9Optional10
H3H3Optional1
M12M12Optional2
X1X1Optional6
X2X2Optional1
L5L5Optional10
PERPEROptional5
LH2LH2Optional6
LHRLHROptional1
LH6LH6Optional10
Y7Y7Optional2
G62G62Optional10
NTENTEOptional100
LPLPOptional1
AXLAXLOptional12
Loop L0L0Optional20
L0L0Mandatory1
L1L1Optional20
MEAMEAOptional10
Loop PIPIOptional30
PIPIMandatory1
CDCDOptional10
Loop LH1LH1Optional1000
LH1LH1Mandatory1
LH2LH2Optional4
LH3LH3Optional12
LFHLFHOptional20
LEPLEPOptional3
LH4LH4Optional4
LHTLHTOptional3
LHRLHROptional10
PERPEROptional5
LHELHEOptional1
Loop FA1FA1Optional99999
FA1FA1Mandatory1
FA2FA2Mandatory99999
L10L10Optional1
Loop NM1NM1Optional4
NM1NM1Mandatory1
N3N3Optional2
N4N4Optional1
Loop N1N1Optional4
N1N1Mandatory1
N2N2Optional2
N3N3Optional2
N4N4Optional1
PERPEROptional2
BLBLOptional12
L3L3Optional1
SETransaction Set TrailerMandatory1