DESADV Despatch advice message (D96A)

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

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

ediFabric Native

Native supports X12 today, and EDIFACT is coming. When it's available, map version D96A to this Native model with set_map to parse DESADV 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 DESADV classes in Python, Java, Node.js, Go, Rust or C

The OpenEDI file describes each DESADV as JSON. To work with DESADV data as typed objects, generate classes from the OpenEDI file in your language; the root class is TSDESADV. 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.

DESADV structure

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

IDNameUsageMax use
UNHMessage HeaderOptional1
BGMBEGINNING OF MESSAGEMandatory1
DTMDATE/TIME/PERIODOptional10
ALIADDITIONAL INFORMATIONOptional5
MEAMEASUREMENTSOptional5
MOAMONETARY AMOUNTOptional5
Loop RFFREFERENCEOptional10
RFFREFERENCEMandatory1
DTMDATE/TIME/PERIODOptional1
Loop NADNAME AND ADDRESSOptional10
NADNAME AND ADDRESSMandatory1
LOCPLACE/LOCATION IDENTIFICATIONOptional10
Loop RFFREFERENCEOptional10
RFFREFERENCEMandatory1
DTMDATE/TIME/PERIODOptional1
Loop CTACONTACT INFORMATIONOptional10
CTACONTACT INFORMATIONMandatory1
COMCOMMUNICATION CONTACTOptional5
Loop TODTERMS OF DELIVERY OR TRANSPORTOptional10
TODTERMS OF DELIVERY OR TRANSPORTMandatory1
LOCPLACE/LOCATION IDENTIFICATIONOptional5
FTXFREE TEXTOptional5
Loop TDTDETAILS OF TRANSPORTOptional10
TDTDETAILS OF TRANSPORTMandatory1
PCDPERCENTAGE DETAILSOptional6
Loop LOCPLACE/LOCATION IDENTIFICATIONOptional10
LOCPLACE/LOCATION IDENTIFICATIONMandatory1
DTMDATE/TIME/PERIODOptional10
Loop EQDEQUIPMENT DETAILSOptional10
EQDEQUIPMENT DETAILSMandatory1
MEAMEASUREMENTSOptional5
SELSEAL NUMBEROptional25
EQAATTACHED EQUIPMENTOptional5
Loop HANHANDLING INSTRUCTIONSOptional10
HANHANDLING INSTRUCTIONSMandatory1
FTXFREE TEXTOptional10
Loop CPSCONSIGNMENT PACKING SEQUENCEOptional9999
CPSCONSIGNMENT PACKING SEQUENCEMandatory1
FTXFREE TEXTOptional5
Loop PACPACKAGEOptional9999
PACPACKAGEMandatory1
MEAMEASUREMENTSOptional10
QTYQUANTITYOptional10
Loop HANHANDLING INSTRUCTIONSOptional10
HANHANDLING INSTRUCTIONSMandatory1
FTXFREE TEXTOptional10
Loop PCIPACKAGE IDENTIFICATIONOptional1000
PCIPACKAGE IDENTIFICATIONMandatory1
RFFREFERENCEOptional1
DTMDATE/TIME/PERIODOptional5
GIRRELATED IDENTIFICATION NUMBERSOptional99
Loop GINGOODS IDENTITY NUMBEROptional99
GINGOODS IDENTITY NUMBERMandatory1
DLMDELIVERY LIMITATIONSOptional10
Loop LINLINE ITEMOptional9999
LINLINE ITEMMandatory1
PIAADDITIONAL PRODUCT IDOptional10
IMDITEM DESCRIPTIONOptional25
MEAMEASUREMENTSOptional10
QTYQUANTITYOptional10
ALIADDITIONAL INFORMATIONOptional10
GINGOODS IDENTITY NUMBEROptional100
GIRRELATED IDENTIFICATION NUMBERSOptional100
DLMDELIVERY LIMITATIONSOptional100
DTMDATE/TIME/PERIODOptional5
FTXFREE TEXTOptional5
MOAMONETARY AMOUNTOptional5
Loop RFFREFERENCEOptional10
RFFREFERENCEMandatory1
DTMDATE/TIME/PERIODOptional1
Loop DGSDANGEROUS GOODSOptional10
DGSDANGEROUS GOODSMandatory1
QTYQUANTITYOptional1
FTXFREE TEXTOptional5
Loop LOCPLACE/LOCATION IDENTIFICATIONOptional100
LOCPLACE/LOCATION IDENTIFICATIONMandatory1
NADNAME AND ADDRESSOptional1
DTMDATE/TIME/PERIODOptional1
QTYQUANTITYOptional10
Loop SGPSPLIT GOODS PLACEMENTOptional1000
SGPSPLIT GOODS PLACEMENTMandatory1
QTYQUANTITYOptional10
Loop PCIPACKAGE IDENTIFICATIONOptional9999
PCIPACKAGE IDENTIFICATIONMandatory1
DTMDATE/TIME/PERIODOptional5
MEAMEASUREMENTSOptional10
QTYQUANTITYOptional1
Loop GINGOODS IDENTITY NUMBEROptional10
GINGOODS IDENTITY NUMBERMandatory1
DLMDELIVERY LIMITATIONSOptional10
Loop HANHANDLING INSTRUCTIONSOptional10
HANHANDLING INSTRUCTIONSMandatory1
FTXFREE TEXTOptional5
GINGOODS IDENTITY NUMBEROptional1000
Loop QVRQUANTITY VARIANCESOptional10
QVRQUANTITY VARIANCESMandatory1
DTMDATE/TIME/PERIODOptional5
CNTCONTROL TOTALOptional5
UNTMessage TrailerOptional1