CUSDEC
Customs Declaration Message
D96AWhat is the CUSDEC message used for?
- The CUSDEC page serves as an instant reference for systems analysts, developers, and EDI operations teams.
- It brings together the message business role, associated segment breakdown, and a live example in one place.
- Highly valuable during trading partner onboarding, mapping verification, incident triage, and technical training.
The CUSDEC message is an electronic customs declaration — it contains import/export customs clearance data in the form submitted to customs authorities.
Usage scenarios:
Customs clearance, importers, exporters, freight forwarders.
Customs clearance, importers, exporters, freight forwarders.
| Segment | Name | Mandatory | Max Repeat |
|---|---|---|---|
| UNB | Interchange Header | Mandatory | 1 |
| UNH | Message Header | Mandatory | 1 |
| UNT | Message Trailer | Mandatory | 1 |
| UNZ | Interchange Trailer | Mandatory | 1 |
| BGM | Beginning of Message | Mandatory | 1 |
| DTM | Date/Time/Period | Optional | 1 |
| NAD | Name and Address | Optional | 10 |
| RFF | Reference | Optional | 1 |
| LOC | Place/Location Identification | Optional | 1 |
| MOA | Monetary Amount | Optional | 1 |
| MEA | Measurements | Optional | 1 |
| FTX | Free Text | Optional | 1 |
| UNS | Section Control | Optional | 1 |
CUSDEC – Sample message (D96A)
Download (.edi)
Test in validator
UNA:+.? ' UNB+UNOC:3+IMPORTER:14+CUSTOMS:14+260310:1100+00014' UNH+1+CUSDEC:D:96A:UN' BGM+929+CUS-2026-0310' LOC+35+HUBU5:::Budapest III. Vámhivatal' DTM+137:20260310:102' UNS+D' CST+1' UNS+S' UNT+8+1' UNZ+1+00014'
The sample above can be validated directly in the EDIFACT Validator – Online Syntax Checker.