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.
CODECO D.96A

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.

Pos.TagNameSRep.
0010UNHMessage headerM1
0020BGMBeginning of messageM1
0030FTXFree textC×9
0040RFFReferenceC×9
0050  SG1Group (×1)C1
0060  TDTDetails of transportM1
0070  RFFReferenceC×9
0080  LOCPlace/location identificationC×9
0090  DTMDate/time/periodC×9
0100    SG2Group (×9)M×9
0110    NADName and addressM1
0120    CTAContact informationC×9
0130      SG3Group (×999)C×999
0140      GIDGoods item detailsM1
0150      HANHandling instructionsC×9
0160      FTXFree textC×9
0170      PIAAdditional product idC×9
0180      MEAMeasurementsC×9
0190      TMPTemperatureC×9
0200      RNGRange detailsC×9
0210      SGPSplit goods placementC×999
0220        SG4Group (×9)C×9
0230        DGSDangerous goodsM1
0240        FTXFree textC×9
0250          SG5Group (×999)M×999
0260          EQDEquipment detailsM1
0270          RFFReferenceC×9
0280          TMDTransport movement detailsC×9
0290          DTMDate/time/periodC×9
0300          LOCPlace/location identificationC×9
0310          MEAMeasurementsC×9
0320          DIMDimensionsC×9
0330          SELSeal numberC×9
0340          FTXFree textC×9
0350          EQAAttached equipmentC×9
0360            SG6Group (×9)C×9
0370            DAMDamageM1
0380            CODComponent detailsC1
0390              SG7Group (×9)C×9
0400              TDTDetails of transportM1
0410              LOCPlace/location identificationC1
0420              DTMDate/time/periodC1
0430              NADName and addressC×9
0440              CNTControl totalM1
0450UNTMessage trailerM1

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.

edifact codeco-d96a-example.edi
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: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: CODECO D.10A, CODECO D.16B, CODECO D.21B, CODECO D.24A.

← All EDIFACT versions