ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.
CUSDEC D.96A

CUSDEC — EDIFACT Customs Declaration Message (D.96A)

The CUSDEC message is the customs declaration sent by a declarant to a customs administration for import or export: detailed declaration of goods, value, origin, customs regime and associated duties. It is one of the largest EDIFACT messages. This page summarises the segment structure as published by UN/CEFACT for directory D.96A.

Purpose

The CUSDEC message is the customs declaration sent by a declarant to a customs administration for import or export: detailed declaration of goods, value, origin, customs regime and associated duties. It is one of the largest EDIFACT messages.

This page focuses on the structure published by UN/CEFACT for directory D.96A. The segments listed, their status (M / C), position and repetition factor are extracted from the official file cusdec_s.htm hosted on service.unece.org.

Segment structure

The CUSDEC D.96A message has 39 header entries, 151 detail entries and 10 summary entries (segments and groups combined). Groups are shown in bold and their members are indented by actual nesting depth.

Pos.TagNameSRep.
0010UNHMessage headerM1
0020BGMBeginning of messageM1
0030CSTCustoms status of goodsC1
0040LOCPlace/location identificationC×99
0050DTMDate/time/periodC×15
0060GISGeneral indicatorC×25
0070FIIFinancial institution informationC1
0080MEAMeasurementsC×5
0090EQDEquipment detailsC×999
0100SELSeal numberC×999
0110  SG1Group (×99)C×99
0120  RFFReferenceM1
0130  DTMDate/time/periodC1
0140    SG2Group (×10)C×10
0150    PACPackageM1
0160      SG3Group (×999)C×999
0170      PCIPackage identificationM1
0180      FTXFree textC1
0190        SG4Group (×5)C×5
0200        TDTDetails of transportM1
0210        TPLTransport placementC1
0220          SG5Group (×10)C×10
0230          DOCDocument/message detailsM1
0240          DTMDate/time/periodC×2
0250          LOCPlace/location identificationC1
0260            SG6Group (×10)C×10
0270            NADName and addressM1
0280            RFFReferenceC×10
0290            CTAContact informationC1
0300            COMCommunication contactC×5
0310              SG7Group (×1)C1
0320              TODTerms of delivery or transportM1
0330              LOCPlace/location identificationC×2
0340              FTXFree textC1
0350                SG8Group (×25)C×25
0360                MOAMonetary amountM1
0370                  SG9Group (×1)C1
0380                  CUXCurrenciesM1
0390                  DTMDate/time/periodC1

Detail

Pos.TagNameSRep.
0400UNSSection controlM1
0410  SG10Group (×999)C×999
0420  DMSDocument/message summaryM1
0430  DTMDate/time/periodC1
0440  MEAMeasurementsC×5
0450    SG11Group (×25)C×25
0460    MOAMonetary amountM1
0470      SG12Group (×1)C1
0480      CUXCurrenciesM1
0490      DTMDate/time/periodC1
0500        SG13Group (×1)C1
0510        TODTerms of delivery or transportM1
0520        LOCPlace/location identificationC×2
0530        FTXFree textC1
0540          SG14Group (×10)C×10
0550          NADName and addressM1
0560            SG15Group (×10)C×10
0570            DOCDocument/message detailsM1
0580            DTMDate/time/periodC×2
0590            LOCPlace/location identificationC1
0600              SG16Group (×10)C×10
0610              PACPackageM1
0620                SG17Group (×999)C×999
0630                PCIPackage identificationM1
0640                FTXFree textC1
0650                RFFReferenceC1
0660                  SG18Group (×5)C×5
0670                  PATPayment terms basisM1
0680                  MOAMonetary amountC1
0690                  PCDPercentage detailsC1
0700                  FTXFree textC1
0710                    SG19Group (×10)C×10
0720                    ALCAllowance or chargeM1
0730                    RTERate detailsC1
0740                    MOAMonetary amountC1
0750                    PCDPercentage detailsC1
0760                    QTYQuantityC1
0770                      SG20Group (×1)C1
0780                      CUXCurrenciesM1
0790                      DTMDate/time/periodC1
0800                        SG21Group (×9999)C×9999
0810                        LINLine itemM1
0820                        PIAAdditional product idC1
0830                        QTYQuantityC1
0840                        PRIPrice detailsC×2
0850                        PCDPercentage detailsC1
0860                        MEAMeasurementsC×5
0870                        QVRQuantity variancesC×5
0880                        MOAMonetary amountC×15
0890                        NADName and addressC×10
0900                        GIRRelated identification numbersC×9999
0910                          SG22Group (×10)C×10
0920                          DOCDocument/message detailsM1
0930                          DTMDate/time/periodC×2
0940                            SG23Group (×10)C×10
0950                            ALCAllowance or chargeM1
0960                            RTERate detailsC1
0970                            MOAMonetary amountC1
0980                            PCDPercentage detailsC1
0990                            QTYQuantityC1
1000                              SG24Group (×1)C1
1010                              CUXCurrenciesM1
1020                              DTMDate/time/periodC1
1030                                SG25Group (×1)C1
1040                                TODTerms of delivery or transportM1
1050                                LOCPlace/location identificationC×2
1060                                  SG26Group (×5)C×5
1070                                  PATPayment terms basisM1
1080                                  MOAMonetary amountC1
1090                                  PCDPercentage detailsC1
1100                                  FTXFree textC1
1110                                    SG27Group (×5)C×5
1120                                    IMDItem descriptionM1
1130                                    FTXFree textC1
1140                                      SG28Group (×10)C×10
1150                                      PACPackageM1
1160                                        SG29Group (×999)C×999
1170                                        PCIPackage identificationM1
1180                                        FTXFree textC1
1190                                        RFFReferenceC1
1200                                          SG30Group (×9999)C×9999
1210                                          CSTCustoms status of goodsM1
1220                                          FTXFree textC×9
1230                                          LOCPlace/location identificationC×25
1240                                          DTMDate/time/periodC×5
1250                                          MEAMeasurementsC×20
1260                                          NADName and addressC×5
1270                                          TDTDetails of transportC×9
1280                                            SG31Group (×10)C×10
1290                                            PACPackageM1
1300                                              SG32Group (×999)C×999
1310                                              PCIPackage identificationM1
1320                                              FTXFree textC1
1330                                                SG33Group (×25)C×25
1340                                                MOAMonetary amountM1
1350                                                  SG34Group (×1)C1
1360                                                  CUXCurrenciesM1
1370                                                  DTMDate/time/periodC1
1380                                                    SG35Group (×999)C×999
1390                                                    RFFReferenceM1
1400                                                    DTMDate/time/periodC1
1410                                                    GINGoods identity numberC×99
1420                                                    MOAMonetary amountC1
1430                                                      SG36Group (×1)C1
1440                                                      IMDItem descriptionM1
1450                                                      FTXFree textC×5
1460                                                        SG37Group (×25)C×25
1470                                                        DOCDocument/message detailsM1
1480                                                        DTMDate/time/periodC×2
1490                                                        LOCPlace/location identificationC1
1500                                                        NADName and addressC×5
1510                                                          SG38Group (×1)C1
1520                                                          TODTerms of delivery or transportM1
1530                                                          LOCPlace/location identificationC×2
1540                                                          FTXFree textC1
1550                                                            SG39Group (×1)C1
1560                                                            GDSNature of cargoM1
1570                                                            FTXFree textC1
1580                                                              SG40Group (×25)C×25
1590                                                              GISGeneral indicatorM1
1600                                                              PCDPercentage detailsC1
1610                                                              DTMDate/time/periodC1
1620                                                              RFFReferenceC1
1630                                                                SG41Group (×10)C×10
1640                                                                TAXDuty/tax/fee detailsM1
1650                                                                MOAMonetary amountC×2
1660                                                                GISGeneral indicatorC1
1670                                                                  SG42Group (×1)C1
1680                                                                  QVRQuantity variancesM1
1690                                                                  QTYQuantityC1
1700                                                                    SG43Group (×1)C1
1710                                                                    RFFReferenceM1
1720                                                                    DTMDate/time/periodC1
1730                                                                      SG44Group (×50)C×50
1740                                                                      GIRRelated identification numbersM1
1750                                                                      GISGeneral indicatorC×10
1760                                                                      NADName and addressC1
1770                                                                      MEAMeasurementsC×5
1780                                                                        SG45Group (×10)C×10
1790                                                                        MOAMonetary amountM1
1800                                                                          SG46Group (×1)C1
1810                                                                          CUXCurrenciesM1
1820                                                                          DTMDate/time/periodC1
1830                                                                            SG47Group (×10)C×10
1840                                                                            TAXDuty/tax/fee detailsM1
1850                                                                            MOAMonetary amountC×2
1860                                                                            GISGeneral indicatorC1
1870                                                                              SG48Group (×5)C×5
1880                                                                              DOCDocument/message detailsM1
1890                                                                              DTMDate/time/periodC×2
1900                                                                              LOCPlace/location identificationC1

Summary

Pos.TagNameSRep.
1910UNSSection controlM1
1920CNTControl totalC×5
1930  SG49Group (×50)C×50
1940  TAXDuty/tax/fee detailsM1
1950  MOAMonetary amountC×2
1960  GISGeneral indicatorC1
1970    SG50Group (×1)C1
1980    AUTAuthentication resultM1
1990    DTMDate/time/periodC1
2000UNTMessage trailerM1

Changes vs D.96A

Top-level differences between D.96A and D.96A for the CUSDEC message (segments directly inside header / detail / summary, ignoring nested groups). The comparison is indicative: a given tag may have evolved inside nested groups without showing up in this synthesis.

No top-level differences detected between D.96A and D.96A for this message. Differences are then limited to nested groups and code lists.

Structural example

Minimal example of an CUSDEC D.96A message with mandatory segments only. The goal is to show the exact version declared in UNH (CUSDEC:D:96A:UN) — not to replicate a full business case (see the CUSDEC D.96A page for an annotated example).

edifact cusdec-d96a-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL096001'
UNH+1+CUSDEC:D:96A:UN'
BGM+929+CUSDEC-2026-7811+9'
DTM+137:20260514:102'
NAD+CZ+5410000000123::9'
NAD+EX+5410000000456::9'
CST+1+850430:NCM:FR'
MOA+38:42500.00:EUR'
LOC+27+FR::ISO'
LOC+28+CN::ISO'
UNT+9+1'
UNZ+1+CTRL096001'

Common errors

  • Misaligned UNH tokens — The UNH+...+CUSDEC:D:96A:UN token must reflect exactly the directory in use — a mismatch between the UNH release and the release agreed with the partner is rejected by every strict validator.
  • Wrong UNT segment count — The value after UNT+ must include UNH and UNT themselves. By far the most common sender-side error, regardless of the directory in use.
  • Stale code lists — Between D.96A and D.96A, several code lists received new qualifiers (DTM status, RFF qualifier, NAD codes…). Reusing an older directory’s code tables triggers warnings or even rejections depending on the partner’s strict-conformance mode.

Other versions of this message available on ediverse.io: CUSDEC D.96A, CUSDEC D.01B, CUSDEC D.10A, CUSDEC D.16B, CUSDEC D.21B, CUSDEC D.24A, CUSDEC D.97A, CUSDEC D.99B, CUSDEC D.00B, CUSDEC D.02B, CUSDEC D.05A, CUSDEC D.08A, CUSDEC D.13B, CUSDEC D.18B, CUSDEC D.20B.

X12 functional equivalent: X12 309.

← All EDIFACT versions