CODECO — EDIFACT Container Gate-In / Gate-Out Report Message (D.96A)
The CODECO message is the gate-in / gate-out report from a terminal or depot to carriers, forwarders and principals: it confirms the actual entry or exit of a container, its status, the timestamp and a reference to the inbound or outbound transport. It is also used to report internal-yard movements and status changes without physical move. This page summarises the segment structure as published by UN/CEFACT for directory D.96A.
Purpose
The CODECO message is the gate-in / gate-out report from a terminal or depot to carriers, forwarders and principals: it confirms the actual entry or exit of a container, its status, the timestamp and a reference to the inbound or outbound transport. It is also used to report internal-yard movements and status changes without physical move.
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 codeco_s.htm hosted on service.unece.org.
Segment structure
The CODECO D.96A message has 45 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.
Header
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
0010 | UNH | Message header | M | 1 |
0020 | BGM | Beginning of message | M | 1 |
0030 | FTX | Free text | C | ×9 |
0040 | RFF | Reference | C | ×9 |
0050 | SG1 | Group (×1) | C | 1 |
0060 | TDT | Details of transport | M | 1 |
0070 | RFF | Reference | C | ×9 |
0080 | LOC | Place/location identification | C | ×9 |
0090 | DTM | Date/time/period | C | ×9 |
0100 | SG2 | Group (×9) | M | ×9 |
0110 | NAD | Name and address | M | 1 |
0120 | CTA | Contact information | C | ×9 |
0130 | SG3 | Group (×999) | C | ×999 |
0140 | GID | Goods item details | M | 1 |
0150 | HAN | Handling instructions | C | ×9 |
0160 | FTX | Free text | C | ×9 |
0170 | PIA | Additional product id | C | ×9 |
0180 | MEA | Measurements | C | ×9 |
0190 | TMP | Temperature | C | ×9 |
0200 | RNG | Range details | C | ×9 |
0210 | SGP | Split goods placement | C | ×999 |
0220 | SG4 | Group (×9) | C | ×9 |
0230 | DGS | Dangerous goods | M | 1 |
0240 | FTX | Free text | C | ×9 |
0250 | SG5 | Group (×999) | M | ×999 |
0260 | EQD | Equipment details | M | 1 |
0270 | RFF | Reference | C | ×9 |
0280 | TMD | Transport movement details | C | ×9 |
0290 | DTM | Date/time/period | C | ×9 |
0300 | LOC | Place/location identification | C | ×9 |
0310 | MEA | Measurements | C | ×9 |
0320 | DIM | Dimensions | C | ×9 |
0330 | SEL | Seal number | C | ×9 |
0340 | FTX | Free text | C | ×9 |
0350 | EQA | Attached equipment | C | ×9 |
0360 | SG6 | Group (×9) | C | ×9 |
0370 | DAM | Damage | M | 1 |
0380 | COD | Component details | C | 1 |
0390 | SG7 | Group (×9) | C | ×9 |
0400 | TDT | Details of transport | M | 1 |
0410 | LOC | Place/location identification | C | 1 |
0420 | DTM | Date/time/period | C | 1 |
0430 | NAD | Name and address | C | ×9 |
0440 | CNT | Control total | M | 1 |
0450 | UNT | Message trailer | M | 1 |
Detail
No segment in this section.
Summary
No segment in this section.
Changes vs D.96A
This page documents directory D.96A itself: it serves as the reference for every other version of the message. The synthesis below describes the structural changes that later directories will introduce relative to it.
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 CODECO D.96A message with mandatory segments only. The goal is to show the exact version declared in UNH (CODECO:D:96A:UN) — not to replicate a full business case.
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL096001'
UNH+1+CODECO:D:96A:UN'
BGM+262+CODECO-2026-GATE-0418+9'
DTM+137:202605141430:203'
TDT+20+TRUCK-FR1234+3'
LOC+9+FRLEH::6'
NAD+CA+5410000000123::9'
EQD+CN+MSCU1234567+45G1+++5'
DTM+178:202605141230:203'
UNT+9+1'
UNZ+1+CTRL096001' Common errors
- Misaligned UNH tokens — The
UNH+...+CODECO:D:96A:UNtoken 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.
Related messages
Other versions of this message available on ediverse.io: CODECO D.10A, CODECO D.16B, CODECO D.21B, CODECO D.24A.