RESREQ Reservation request (D16A)

This is the standard EDIFACT D16A spec, with 20 loops and 108 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 (101 KB) Generate classes
The ediFabric .NET template, class TSRESREQ. It needs the common segments, composites and codes of EDIFACT D16A, one download for every transaction in the version. Download C# (1 KB) Common files (69 KB)
The intermediary model ediFabric Native loads with set_map. Native supports X12 today, and EDIFACT is coming. Download Native (1 KB)

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

ediFabric Native

Native supports X12 today, and EDIFACT is coming. When it's available, map version D16A to this Native model with set_map to parse RESREQ files to JSON from Python, Java, C or C#. See ediFabric Native.

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 RESREQ classes in Python, Java, Node.js, Go, Rust or C

The OpenEDI file describes each RESREQ as JSON. To work with RESREQ data as typed objects, generate classes from the OpenEDI file in your language; the root class is TSRESREQ. The classes keep the loops, segments, lengths and code lists, but not the EDI data formats. Read more in Generate a class from OpenEDI.

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

RESREQ structure

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

IDNameUsageMax use
UIHUIHMandatory1
MSDMSDOptional1
ORGORGOptional1
RCIRCIOptional1
NUNNUNOptional1
FTIFTIOptional1
CRICRIOptional1
CLTCLTOptional1
ATIATIOptional1
CONCONOptional1
ITMITMOptional1
HDIHDIOptional1
TFFTFFOptional9
POSPOSOptional1
CMNCMNOptional1
IFTIFTOptional9
TDITDIOptional9
ADSADSOptional9
Loop NMENMEOptional9
NMENMEMandatory1
ADSADSOptional1
Loop SSRSSROptional99
SSRSSRMandatory1
IFTIFTOptional1
Loop PMTPMTOptional9
PMTPMTMandatory1
CONCONOptional1
ADSADSOptional1
NMENMEOptional1
Loop TIFTIFOptional999
TIFTIFMandatory1
FTIFTIOptional1
CRICRIOptional1
CONCONOptional1
IFTIFTOptional1
TDITDIOptional1
DISDISOptional1
ADSADSOptional9
Loop SSRSSROptional99
SSRSSRMandatory1
IFTIFTOptional1
Loop PMTPMTOptional9
PMTPMTMandatory1
CONCONOptional1
ADSADSOptional1
NMENMEOptional1
Loop TVLTVLOptional99
TVLTVLMandatory1
MSDMSDOptional1
RCIRCIOptional1
RPIRPIOptional1
MOVMOVOptional1
CNXCNXOptional1
DISDISOptional1
ASDASDOptional1
CONCONOptional1
ADSADSOptional1
NMENMEOptional1
PLIPLIOptional1
AAIAAIOptional1
IFTIFTOptional9
TDITDIOptional9
TFFTFFOptional99
Loop VEHVEHOptional9
VEHVEHMandatory1
PDTPDTOptional1
Loop PMTPMTOptional9
PMTPMTMandatory1
CONCONOptional1
ADSADSOptional1
NMENMEOptional1
Loop NUNNUNOptional1
NUNNUNMandatory1
CRICRIOptional1
Loop SSRSSROptional99
SSRSSRMandatory1
PMTPMTOptional1
CONCONOptional1
ADSADSOptional1
NMENMEOptional1
IFTIFTOptional1
Loop TIFTIFOptional999
TIFTIFMandatory1
FTIFTIOptional1
CRICRIOptional1
CONCONOptional1
IFTIFTOptional1
ASDASDOptional1
ADSADSOptional9
TFFTFFOptional99
Loop SSRSSROptional99
SSRSSRMandatory1
IFTIFTOptional1
Loop PMTPMTOptional9
PMTPMTMandatory1
CONCONOptional1
ADSADSOptional1
NMENMEOptional1
Loop ODIODIOptional99
ODIODIMandatory1
MSDMSDOptional1
Loop TVLTVLMandatory99
TVLTVLMandatory1
APDAPDOptional1
RPIRPIOptional1
NUNNUNOptional1
FTIFTIOptional1
TFFTFFOptional1
RCIRCIOptional1
DISDISOptional1
ASDASDOptional1
IFTIFTOptional9
Loop SSRSSROptional99
SSRSSRMandatory1
IFTIFTOptional1
Loop VEHVEHOptional9
VEHVEHMandatory1
PDTPDTOptional1
Loop PMTPMTOptional9
PMTPMTMandatory1
CONCONOptional1
ADSADSOptional1
NMENMEOptional1
Loop TIFTIFOptional999
TIFTIFMandatory1
FTIFTIOptional1
SSRSSROptional99
UITUITMandatory1