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

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

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

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.97A. 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.97A message has 0 header entries, 0 detail entries and 0 summary entries (segments and groups combined). Groups are shown in bold and their members are indented by actual nesting depth.

No segment in this section.

Detail

No segment in this section.

Summary

No segment in this section.

Changes vs D.96A

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

  • UNH in the header section — present in D.96A but missing in D.97A at the same level.
  • BGM in the header section — present in D.96A but missing in D.97A at the same level.
  • CST in the header section — present in D.96A but missing in D.97A at the same level.
  • LOC in the header section — present in D.96A but missing in D.97A at the same level.
  • DTM in the header section — present in D.96A but missing in D.97A at the same level.
  • GIS in the header section — present in D.96A but missing in D.97A at the same level.
  • FII in the header section — present in D.96A but missing in D.97A at the same level.
  • MEA in the header section — present in D.96A but missing in D.97A at the same level.
  • EQD in the header section — present in D.96A but missing in D.97A at the same level.
  • SEL in the header section — present in D.96A but missing in D.97A at the same level.
  • RFF in the header section — present in D.96A but missing in D.97A at the same level.
  • PAC in the header section — present in D.96A but missing in D.97A at the same level.
  • PCI in the header section — present in D.96A but missing in D.97A at the same level.
  • FTX in the header section — present in D.96A but missing in D.97A at the same level.
  • TDT in the header section — present in D.96A but missing in D.97A at the same level.
  • TPL in the header section — present in D.96A but missing in D.97A at the same level.
  • DOC in the header section — present in D.96A but missing in D.97A at the same level.
  • NAD in the header section — present in D.96A but missing in D.97A at the same level.
  • CTA in the header section — present in D.96A but missing in D.97A at the same level.
  • COM in the header section — present in D.96A but missing in D.97A at the same level.
  • TOD in the header section — present in D.96A but missing in D.97A at the same level.
  • MOA in the header section — present in D.96A but missing in D.97A at the same level.
  • CUX in the header section — present in D.96A but missing in D.97A at the same level.
  • UNS in the detail section — present in D.96A but missing in D.97A at the same level.
  • DMS in the detail section — present in D.96A but missing in D.97A at the same level.
  • DTM in the detail section — present in D.96A but missing in D.97A at the same level.
  • MEA in the detail section — present in D.96A but missing in D.97A at the same level.
  • MOA in the detail section — present in D.96A but missing in D.97A at the same level.
  • CUX in the detail section — present in D.96A but missing in D.97A at the same level.
  • TOD in the detail section — present in D.96A but missing in D.97A at the same level.
  • LOC in the detail section — present in D.96A but missing in D.97A at the same level.
  • FTX in the detail section — present in D.96A but missing in D.97A at the same level.
  • NAD in the detail section — present in D.96A but missing in D.97A at the same level.
  • DOC in the detail section — present in D.96A but missing in D.97A at the same level.
  • PAC in the detail section — present in D.96A but missing in D.97A at the same level.
  • PCI in the detail section — present in D.96A but missing in D.97A at the same level.
  • RFF in the detail section — present in D.96A but missing in D.97A at the same level.
  • PAT in the detail section — present in D.96A but missing in D.97A at the same level.
  • PCD in the detail section — present in D.96A but missing in D.97A at the same level.
  • ALC in the detail section — present in D.96A but missing in D.97A at the same level.
  • RTE in the detail section — present in D.96A but missing in D.97A at the same level.
  • QTY in the detail section — present in D.96A but missing in D.97A at the same level.
  • LIN in the detail section — present in D.96A but missing in D.97A at the same level.
  • PIA in the detail section — present in D.96A but missing in D.97A at the same level.
  • PRI in the detail section — present in D.96A but missing in D.97A at the same level.
  • QVR in the detail section — present in D.96A but missing in D.97A at the same level.
  • GIR in the detail section — present in D.96A but missing in D.97A at the same level.
  • IMD in the detail section — present in D.96A but missing in D.97A at the same level.
  • CST in the detail section — present in D.96A but missing in D.97A at the same level.
  • TDT in the detail section — present in D.96A but missing in D.97A at the same level.
  • GIN in the detail section — present in D.96A but missing in D.97A at the same level.
  • GDS in the detail section — present in D.96A but missing in D.97A at the same level.
  • GIS in the detail section — present in D.96A but missing in D.97A at the same level.
  • TAX in the detail section — present in D.96A but missing in D.97A at the same level.
  • UNS in the summary section — present in D.96A but missing in D.97A at the same level.
  • CNT in the summary section — present in D.96A but missing in D.97A at the same level.
  • TAX in the summary section — present in D.96A but missing in D.97A at the same level.
  • MOA in the summary section — present in D.96A but missing in D.97A at the same level.
  • GIS in the summary section — present in D.96A but missing in D.97A at the same level.
  • AUT in the summary section — present in D.96A but missing in D.97A at the same level.
  • DTM in the summary section — present in D.96A but missing in D.97A at the same level.
  • UNT in the summary section — present in D.96A but missing in D.97A at the same level.

Structural example

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

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

Common errors

  • Misaligned UNH tokens — The UNH+...+CUSDEC:D:97A: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.97A, 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.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