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.08A

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

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.08A.

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.08A. The segments listed, their status (M / C), position and repetition factor are extracted from the official file cusdec_c.htm hosted on service.unece.org.

Segment structure

The CUSDEC D.08A message has 207 header entries, 0 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
0060GEIProcessing informationC×25
0070FIIFinancial institution informationC1
0080MEAMeasurementsC×5
0090EQDEquipment detailsC×999
0100SELSeal numberC×999
0110FTXFree textC×99
0120  SG1Group (×99)C×99
0130  RFFReferenceM1
0140  DTMDate/time/periodC1
0150    SG2Group (×10)C×10
0160    PACPackageM1
0170      SG3Group (×999)C×999
0180      PCIPackage identificationM1
0190      FTXFree textC1
0200        SG4Group (×5)C×5
0210        TDTTransport informationM1
0220        TPLTransport placementC1
0230          SG5Group (×99)C×99
0240          DOCDocument/message detailsM1
0250          DTMDate/time/periodC×2
0260          LOCPlace/location identificationC1
0270            SG6Group (×99)C×99
0280            NADName and addressM1
0290            RFFReferenceC×10
0300            CTAContact informationC1
0310            COMCommunication contactC×5
0320              SG7Group (×1)C1
0330              TODTerms of delivery or transportM1
0340              LOCPlace/location identificationC×2
0350              FTXFree textC1
0360                SG8Group (×25)C×25
0370                MOAMonetary amountM1
0380                  SG9Group (×1)C1
0390                  CUXCurrenciesM1
0400                  DTMDate/time/periodC1
0410                    SG10Group (×99)C×99
0420                    EFIExternal file link identificationM1
0430                    CEDComputer environment detailsC×99
0440                    COMCommunication contactC×9
0450                    RFFReferenceC×9
0460                    DTMDate/time/periodC×9
0470                    QTYQuantityC×9
0480UNSSection controlM1
0490  SG11Group (×999)C×999
0500  DMSDocument/message summaryM1
0510  DTMDate/time/periodC1
0520  MEAMeasurementsC×5
0530    SG12Group (×25)C×25
0540    MOAMonetary amountM1
0550      SG13Group (×1)C1
0560      CUXCurrenciesM1
0570      DTMDate/time/periodC1
0580        SG14Group (×1)C1
0590        TODTerms of delivery or transportM1
0600        LOCPlace/location identificationC×2
0610        FTXFree textC1
0620          SG15Group (×10)C×10
0630          NADName and addressM1
0640            SG16Group (×10)C×10
0650            DOCDocument/message detailsM1
0660            DTMDate/time/periodC×2
0670            LOCPlace/location identificationC1
0680              SG17Group (×10)C×10
0690              PACPackageM1
0700                SG18Group (×999)C×999
0710                PCIPackage identificationM1
0720                FTXFree textC1
0730                RFFReferenceC1
0740                  SG19Group (×5)C×5
0750                  PYTPayment termsM1
0760                  MOAMonetary amountC1
0770                  PCDPercentage detailsC1
0780                  FTXFree textC1
0790                    SG20Group (×10)C×10
0800                    ALCAllowance or chargeM1
0810                    RTERate detailsC1
0820                    MOAMonetary amountC1
0830                    PCDPercentage detailsC1
0840                    QTYQuantityC1
0850                      SG21Group (×1)C1
0860                      CUXCurrenciesM1
0870                      DTMDate/time/periodC1
0880                        SG22Group (×9999)C×9999
0890                        LINLine itemM1
0900                        PIAAdditional product idC1
0910                        QTYQuantityC1
0920                        PRIPrice detailsC×2
0930                        PCDPercentage detailsC1
0940                        MEAMeasurementsC×15
0950                        QVRQuantity variancesC×5
0960                        MOAMonetary amountC×15
0970                        NADName and addressC×10
0980                        GIRRelated identification numbersC×9999
0990                        GEIProcessing informationC×99
1000                        LOCPlace/location identificationC1
1010                          SG23Group (×10)C×10
1020                          DOCDocument/message detailsM1
1030                          DTMDate/time/periodC×2
1040                            SG24Group (×10)C×10
1050                            ALCAllowance or chargeM1
1060                            RTERate detailsC1
1070                            MOAMonetary amountC1
1080                            PCDPercentage detailsC1
1090                            QTYQuantityC1
1100                              SG25Group (×1)C1
1110                              CUXCurrenciesM1
1120                              DTMDate/time/periodC1
1130                                SG26Group (×1)C1
1140                                TODTerms of delivery or transportM1
1150                                LOCPlace/location identificationC×2
1160                                  SG27Group (×5)C×5
1170                                  PYTPayment termsM1
1180                                  MOAMonetary amountC1
1190                                  PCDPercentage detailsC1
1200                                  FTXFree textC1
1210                                    SG28Group (×5)C×5
1220                                    IMDItem descriptionM1
1230                                    FTXFree textC1
1240                                      SG29Group (×10)C×10
1250                                      PACPackageM1
1260                                        SG30Group (×999)C×999
1270                                        PCIPackage identificationM1
1280                                        FTXFree textC1
1290                                        RFFReferenceC1
1300                                          SG31Group (×99999)C×99999
1310                                          EFIExternal file link identificationM1
1320                                          CEDComputer environment detailsC×99
1330                                          COMCommunication contactC×9
1340                                          RFFReferenceC×9
1350                                          DTMDate/time/periodC×9
1360                                          QTYQuantityC×9
1370                                            SG32Group (×99999)C×99999
1380                                            CSTCustoms status of goodsM1
1390                                            FTXFree textC×9
1400                                            LOCPlace/location identificationC×25
1410                                            DTMDate/time/periodC×5
1420                                            MEAMeasurementsC×20
1430                                            NADName and addressC×5
1440                                            TDTTransport informationC×9
1450                                              SG33Group (×10)C×10
1460                                              PACPackageM1
1470                                                SG34Group (×999)C×999
1480                                                PCIPackage identificationM1
1490                                                FTXFree textC1
1500                                                  SG35Group (×25)C×25
1510                                                  MOAMonetary amountM1
1520                                                    SG36Group (×1)C1
1530                                                    CUXCurrenciesM1
1540                                                    DTMDate/time/periodC1
1550                                                      SG37Group (×999)C×999
1560                                                      RFFReferenceM1
1570                                                      DTMDate/time/periodC1
1580                                                      GINGoods identity numberC×99
1590                                                      MOAMonetary amountC1
1600                                                        SG38Group (×1)C1
1610                                                        IMDItem descriptionM1
1620                                                        FTXFree textC×5
1630                                                          SG39Group (×25)C×25
1640                                                          DOCDocument/message detailsM1
1650                                                          DTMDate/time/periodC×2
1660                                                          LOCPlace/location identificationC1
1670                                                          NADName and addressC×5
1680                                                            SG40Group (×1)C1
1690                                                            TODTerms of delivery or transportM1
1700                                                            LOCPlace/location identificationC×2
1710                                                            FTXFree textC1
1720                                                              SG41Group (×1)C1
1730                                                              GDSNature of cargoM1
1740                                                              FTXFree textC1
1750                                                                SG42Group (×25)C×25
1760                                                                GEIProcessing informationM1
1770                                                                PCDPercentage detailsC1
1780                                                                DTMDate/time/periodC1
1790                                                                RFFReferenceC1
1800                                                                  SG43Group (×10)C×10
1810                                                                  TAXDuty/tax/fee detailsM1
1820                                                                  MOAMonetary amountC×2
1830                                                                  GEIProcessing informationC1
1840                                                                    SG44Group (×1)C1
1850                                                                    QVRQuantity variancesM1
1860                                                                    QTYQuantityC1
1870                                                                      SG45Group (×1)C1
1880                                                                      RFFReferenceM1
1890                                                                      DTMDate/time/periodC1
1900                                                                        SG46Group (×50)C×50
1910                                                                        GIRRelated identification numbersM1
1920                                                                        GEIProcessing informationC×10
1930                                                                        NADName and addressC1
1940                                                                        MEAMeasurementsC×5
1950                                                                          SG47Group (×10)C×10
1960                                                                          MOAMonetary amountM1
1970                                                                            SG48Group (×1)C1
1980                                                                            CUXCurrenciesM1
1990                                                                            DTMDate/time/periodC1
2000                                                                              SG49Group (×10)C×10
2010                                                                              TAXDuty/tax/fee detailsM1
2020                                                                              MOAMonetary amountC×2
2030                                                                              GEIProcessing informationC1
2040                                                                                SG50Group (×5)C×5
2050                                                                                DOCDocument/message detailsM1
2060                                                                                DTMDate/time/periodC×2
2070                                                                                LOCPlace/location identificationC1

Detail

No segment in this section.

Summary

Pos.TagNameSRep.
2080UNSSection controlM1
2090CNTControl totalC×5
2100  SG51Group (×50)C×50
2110  TAXDuty/tax/fee detailsM1
2120  MOAMonetary amountC×2
2130  GEIProcessing informationC1
2140    SG52Group (×1)C1
2150    AUTAuthentication resultM1
2160    DTMDate/time/periodC1
2170UNTMessage trailerM1

Changes vs D.96A

Top-level differences between D.96A and D.08A 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.

Segments added vs D.96A

  • GEI in the header section (status C, repeat ×25) — not present at the top of the corresponding D.96A section.
  • EFI in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • CED in the header section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.
  • QTY in the header section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.
  • UNS in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • DMS in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • PYT in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • PCD in the header section (status C, repeat ×1) — not present at the top of the corresponding D.96A section.
  • ALC in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • RTE in the header section (status C, repeat ×1) — not present at the top of the corresponding D.96A section.
  • LIN in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • PIA in the header section (status C, repeat ×1) — not present at the top of the corresponding D.96A section.
  • PRI in the header section (status C, repeat ×2) — not present at the top of the corresponding D.96A section.
  • QVR in the header section (status C, repeat ×5) — not present at the top of the corresponding D.96A section.
  • GIR in the header section (status C, repeat ×9999) — not present at the top of the corresponding D.96A section.
  • IMD in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • GIN in the header section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.
  • GDS in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • TAX in the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
  • GEI in the summary section (status C, repeat ×1) — not present at the top of the corresponding D.96A section.

Segments removed vs D.96A

  • GIS in the header section — present in D.96A but missing in D.08A at the same level.
  • UNS in the detail section — present in D.96A but missing in D.08A at the same level.
  • DMS in the detail section — present in D.96A but missing in D.08A at the same level.
  • DTM in the detail section — present in D.96A but missing in D.08A at the same level.
  • MEA in the detail section — present in D.96A but missing in D.08A at the same level.
  • MOA in the detail section — present in D.96A but missing in D.08A at the same level.
  • CUX in the detail section — present in D.96A but missing in D.08A at the same level.
  • TOD in the detail section — present in D.96A but missing in D.08A at the same level.
  • LOC in the detail section — present in D.96A but missing in D.08A at the same level.
  • FTX in the detail section — present in D.96A but missing in D.08A at the same level.
  • NAD in the detail section — present in D.96A but missing in D.08A at the same level.
  • DOC in the detail section — present in D.96A but missing in D.08A at the same level.
  • PAC in the detail section — present in D.96A but missing in D.08A at the same level.
  • PCI in the detail section — present in D.96A but missing in D.08A at the same level.
  • RFF in the detail section — present in D.96A but missing in D.08A at the same level.
  • PAT in the detail section — present in D.96A but missing in D.08A at the same level.
  • PCD in the detail section — present in D.96A but missing in D.08A at the same level.
  • ALC in the detail section — present in D.96A but missing in D.08A at the same level.
  • RTE in the detail section — present in D.96A but missing in D.08A at the same level.
  • QTY in the detail section — present in D.96A but missing in D.08A at the same level.
  • LIN in the detail section — present in D.96A but missing in D.08A at the same level.
  • PIA in the detail section — present in D.96A but missing in D.08A at the same level.
  • PRI in the detail section — present in D.96A but missing in D.08A at the same level.
  • QVR in the detail section — present in D.96A but missing in D.08A at the same level.
  • GIR in the detail section — present in D.96A but missing in D.08A at the same level.
  • IMD in the detail section — present in D.96A but missing in D.08A at the same level.
  • CST in the detail section — present in D.96A but missing in D.08A at the same level.
  • TDT in the detail section — present in D.96A but missing in D.08A at the same level.
  • GIN in the detail section — present in D.96A but missing in D.08A at the same level.
  • GDS in the detail section — present in D.96A but missing in D.08A at the same level.
  • GIS in the detail section — present in D.96A but missing in D.08A at the same level.
  • TAX in the detail section — present in D.96A but missing in D.08A at the same level.
  • GIS in the summary section — present in D.96A but missing in D.08A at the same level.

Max-repeat changes

  • FTX (header): repeat ×1 in D.96A → ×99 in D.08A.

Structural example

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

edifact cusdec-d08a-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL008001'
UNH+1+CUSDEC:D:08A: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+CTRL008001'

Common errors

  • Misaligned UNH tokens — The UNH+...+CUSDEC:D:08A: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.08A, 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.13B, CUSDEC D.18B, CUSDEC D.20B.

X12 functional equivalent: X12 309.

← All EDIFACT versions