267 Individual Life (007010)

This is the standard X12 007010 spec, with 29 loops and 203 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 (193 KB) Generate classes
The ediFabric .NET template, class TS267. It needs the common segments, composites and codes of X12 007010, one download for every transaction in the version. Download C# (3 KB) Common files (230 KB)
The intermediary model ediFabric Native loads with set_map. Download Native (153 KB)

Use the 267 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 267 files into TS267 objects. See ediFabric .NET.

ediFabric Native

Map version 007010 to the Native model with set_map, then parse 267 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 267 classes in Python, Java, Node.js, Go, Rust or C

ediFabric Native returns each 267 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 TS267. 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.

267 structure

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

IDNameUsageMax use
STTransaction Set HeaderMandatory1
BGNBGNMandatory1
DTPDTPOptional99999
Loop NM1NM1Optional99999
NM1NM1Mandatory1
N3N3Optional3
N4N4Optional1
REFREFOptional9
PERPEROptional3
Loop N1N1Mandatory99999
N1N1Mandatory1
N2N2Optional3
N3N3Optional3
N4N4Optional1
N9N9Optional99999
DTMDTMOptional99999
Loop ACTACTMandatory99999
ACTACTMandatory1
ASIASIOptional1
PERPEROptional99999
C3C3Optional1
LUILUIOptional99999
DTPDTPOptional99999
BLIBLIOptional1
LINLINOptional99999
PDLPDLOptional99999
AM1AM1Optional99999
AMTAMTOptional99999
QTYQTYOptional99999
YNQYNQOptional99999
REFREFOptional99999
Loop LQLQOptional99999
LQLQMandatory1
N4N4Optional99999
LUILUIOptional99999
Loop SISIOptional99999
SISIMandatory1
AMTAMTOptional99999
DTPDTPOptional99999
REFREFOptional99999
NM1NM1Optional1
N4N4Optional1
MSGMSGOptional99999
Loop PIDPIDOptional99999
PIDPIDMandatory1
BLIBLIOptional1
SPASPAOptional1
UDUDOptional1
AMTAMTOptional99999
AM1AM1Optional99999
PDLPDLOptional99999
QTYQTYOptional99999
DTPDTPOptional99999
MSGMSGOptional99999
Loop INVINVOptional99999
INVINVMandatory1
AM1AM1Optional99999
DTPDTPOptional99999
QTYQTYOptional99999
LINLINOptional2
RPARPAOptional99999
Loop BENBENOptional99999
BENBENMandatory1
NM1NM1Optional1
N2N2Optional3
N3N3Optional3
N4N4Optional1
REFREFOptional99999
DTPDTPOptional99999
IIIIIIOptional99999
QTYQTYOptional99999
AMTAMTOptional99999
LUILUIOptional1
MSGMSGOptional99999
Loop ENTENTOptional99999
ENTENTMandatory1
NX1NX1Optional2
REFREFOptional99999
LINLINOptional9
DMGDMGOptional1
DMADMAOptional1
INDINDOptional1
LUILUIOptional1
ERIERIOptional1
DTPDTPOptional99999
AMTAMTOptional99999
AM1AM1Optional99999
RPARPAOptional99999
YNQYNQOptional99999
QTYQTYOptional99999
MSGMSGOptional99999
Loop NM1NM1Optional99999
NM1NM1Mandatory1
N2N2Optional3
REFREFOptional99999
AM1AM1Optional99999
Loop N3N3Optional99999
N3N3Mandatory1
N4N4Optional1
COMCOMOptional9
DTPDTPOptional99999
QTYQTYOptional1
Loop LQLQOptional99999
LQLQMandatory1
SPASPAOptional1
DTPDTPOptional99999
MSGMSGOptional99999
Loop NM1NM1Optional99999
NM1NM1Mandatory1
N3N3Optional3
N4N4Optional1
REFREFOptional99999
COMCOMOptional3
LUILUIOptional1
DTPDTPOptional99999
MSGMSGOptional99999
Loop BENBENOptional99999
BENBENMandatory1
NM1NM1Optional1
N2N2Optional3
N3N3Optional3
N4N4Optional1
REFREFOptional99999
DTPDTPOptional99999
IIIIIIOptional99999
QTYQTYOptional99999
AMTAMTOptional99999
LUILUIOptional1
MSGMSGOptional99999
Loop PIDPIDOptional99999
PIDPIDMandatory1
BLIBLIOptional9
SPASPAOptional1
AMTAMTOptional99999
QTYQTYOptional99999
DTPDTPOptional99999
YNQYNQOptional99999
MSGMSGOptional99999
Loop PDLPDLOptional99999
PDLPDLMandatory1
REFREFOptional99999
Loop INVINVOptional99999
INVINVMandatory1
QTYQTYOptional99999
DTPDTPOptional99999
RPARPAOptional99999
Loop BENBENOptional99999
BENBENMandatory1
NM1NM1Optional1
N2N2Optional3
N3N3Optional3
N4N4Optional1
REFREFOptional99999
DTPDTPOptional99999
IIIIIIOptional99999
QTYQTYOptional99999
AMTAMTOptional99999
LUILUIOptional1
MSGMSGOptional99999
Loop UCUCOptional99999
UCUCMandatory1
Loop HLHLOptional99999
HLHLMandatory1
UQSUQSOptional1
YNQYNQOptional99999
NM1NM1Optional1
N3N3Optional3
N4N4Optional1
COMCOMOptional9
DTPDTPOptional99999
QTYQTYOptional99999
MSGMSGOptional99999
AM1AM1Optional99999
AMTAMTOptional99999
IIIIIIOptional99999
ECECOptional1
EMSEMSOptional1
EMPEMPOptional1
PCTPCTOptional99999
SOISOIOptional99999
LINLINOptional2
REFREFOptional99999
ASLASLOptional99999
TOATOAOptional99999
TOVTOVOptional99999
VEHVEHOptional99999
CDSCDSOptional99999
CEDCEDOptional99999
SINSINOptional99999
UCSUCSOptional99999
FHFHOptional99999
SPASPAOptional1
MPIMPIOptional1
Loop PWKPWKOptional99999
PWKPWKMandatory1
NM1NM1Optional1
N4N4Optional1
REFREFOptional99999
DTPDTPOptional99999
SPASPAOptional1
Loop EFIEFIOptional99999
EFIEFIMandatory1
BINBINMandatory1
Loop LXLXOptional99999
LXLXMandatory1
Loop PDLPDLOptional99999
PDLPDLMandatory1
REFREFOptional99999
Loop LSLSOptional1
LSLSMandatory1
Loop AMTAMTOptional99999
AMTAMTMandatory1
N1N1Optional1
N3N3Optional2
N4N4Optional1
LINLINOptional2
DTPDTPOptional99999
QTYQTYOptional99999
MSGMSGOptional99999
Loop AM1AM1Optional99999
AM1AM1Mandatory1
Loop INVINVOptional99999
INVINVMandatory1
QTYQTYOptional99999
DTPDTPOptional99999
RPARPAOptional99999
LELEMandatory1
Loop K2K2Optional99999
K2K2Mandatory1
DTPDTPOptional1
NM1NM1Optional1
SETransaction Set TrailerMandatory1