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

CODECO — EDIFACT Container Gate-In / Gate-Out Report Message (D.10A)

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

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

Segment structure

The CODECO D.10A message has 73 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
0030DTMDate/time/periodC×9
0040FTXFree textC×9
0050  SG1Group (×9)C×9
0060  RFFReferenceM1
0070  DTMDate/time/periodC×9
0080    SG2Group (×1)C1
0090    TDTTransport informationM1
0100    DTMDate/time/periodC×9
0110    RFFReferenceC×9
0120      SG3Group (×9)C×9
0130      LOCPlace/location identificationM1
0140      DTMDate/time/periodC×9
0150        SG4Group (×9)M×9
0160        NADName and addressM1
0170          SG5Group (×9)C×9
0180          CTAContact informationM1
0190          COMCommunication contactC×9
0200            SG6Group (×999)C×999
0210            GIDGoods item detailsM1
0220            HANHandling instructionsC×9
0230            FTXFree textC×9
0240            PIAAdditional product idC×9
0250            MEAMeasurementsC×9
0260              SG7Group (×9)C×9
0270              TMPTemperatureM1
0280              RNGRange detailsC1
0290              SGPSplit goods placementC×999
0300                SG8Group (×99)C×99
0310                DGSDangerous goodsM1
0320                FTXFree textC×9
0330                MEAMeasurementsC×9
0340                  SG9Group (×9)C×9
0350                  CTAContact informationM1
0360                  COMCommunication contactC×9
0370                    SG10Group (×9999)M×9999
0380                    EQDEquipment detailsM1
0390                    RFFReferenceC×99
0400                    TMDTransport movement detailsC×9
0410                    DTMDate/time/periodC×99
0420                    LOCPlace/location identificationC×9
0430                    MEAMeasurementsC×99
0440                    DIMDimensionsC×99
0450                    SELSeal numberC×9
0460                    FTXFree textC×99
0470                    PCDPercentage detailsC×9
0480                    EQAAttached equipmentC×9
0490                    CODComponent detailsC1
0500                    HANHandling instructionsC×9
0510                      SG11Group (×9)C×9
0520                      DAMDamageM1
0530                      CODComponent detailsC1
0540                        SG12Group (×9)C×9
0550                        TDTTransport informationM1
0560                        DTMDate/time/periodC×9
0570                        RFFReferenceC×9
0580                          SG13Group (×9)C×9
0590                          LOCPlace/location identificationM1
0600                          DTMDate/time/periodC×9
0610                          NADName and addressC×9
0620                            SG14Group (×99)C×99
0630                            DGSDangerous goodsM1
0640                            FTXFree textC×9
0650                            MEAMeasurementsC×9
0660                              SG15Group (×9)C×9
0670                              CTAContact informationM1
0680                              COMCommunication contactC×9
0690                                SG16Group (×9)C×9
0700                                TMPTemperatureM1
0710                                RNGRange detailsC1
0720                                CNTControl totalC1
0730UNTMessage trailerM1

Detail

No segment in this section.

Summary

No segment in this section.

Changes vs D.96A

Top-level differences between D.96A and D.10A for the CODECO 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

  • COM in the header section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.
  • PCD in the header section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.

Status changes (M ↔ C)

  • RFF (header): status C in D.96A → M in D.10A.
  • LOC (header): status C in D.96A → M in D.10A.
  • CTA (header): status C in D.96A → M in D.10A.
  • TMP (header): status C in D.96A → M in D.10A.
  • CNT (header): status M in D.96A → C in D.10A.

Max-repeat changes

  • RFF (header): repeat ×9 in D.96A → ×1 in D.10A.
  • LOC (header): repeat ×9 in D.96A → ×1 in D.10A.
  • CTA (header): repeat ×9 in D.96A → ×1 in D.10A.
  • TMP (header): repeat ×9 in D.96A → ×1 in D.10A.
  • RNG (header): repeat ×9 in D.96A → ×1 in D.10A.
  • DIM (header): repeat ×9 in D.96A → ×99 in D.10A.

Structural example

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

edifact codeco-d10a-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL010001'
UNH+1+CODECO:D:10A: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+CTRL010001'

Common errors

  • Misaligned UNH tokens — The UNH+...+CODECO:D:10A: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.10A, 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.96A, CODECO D.16B, CODECO D.21B, CODECO D.24A.

← All EDIFACT versions