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.
COSTCO D.18B

COSTCO — EDIFACT Container Stuffing Confirmation Message (D.18B)

The COSTCO message confirms the stuffing (loading) of a container, sent by a container depot operator or a consolidator: it fixes the actual contents (commodities, weight, seals), stuffing date and references to the upcoming booking and B/L. This page summarises the segment structure as published by UN/CEFACT for directory D.18B.

Purpose

The COSTCO message confirms the stuffing (loading) of a container, sent by a container depot operator or a consolidator: it fixes the actual contents (commodities, weight, seals), stuffing date and references to the upcoming booking and B/L.

This page focuses on the structure published by UN/CEFACT for directory D.18B. The segments listed, their status (M / C), position and repetition factor are extracted from the official file costco_c.htm hosted on service.unece.org.

Segment structure

The COSTCO D.18B message has 67 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.
00010UNHMessage headerM1
00020BGMBeginning of messageM1
00030DTMDate/time/periodC×9
00040FTXFree textC×9
00050  SG1Group (×9)C×9
00060  RFFReferenceM1
00070  DTMDate/time/periodC×9
00080    SG2Group (×1)M1
00090    TDTTransport informationM1
00100    DTMDate/time/periodC×9
00110    RFFReferenceC×9
00120      SG3Group (×9)C×9
00130      LOCPlace/location identificationM1
00140      DTMDate/time/periodC×9
00150        SG4Group (×9)M×9
00160        NADName and addressM1
00170          SG5Group (×9)C×9
00180          CTAContact informationM1
00190          COMCommunication contactC×9
00200            SG6Group (×999)M×999
00210            EQDEquipment detailsM1
00220            RFFReferenceC×9
00230            DTMDate/time/periodC×9
00240            TSRTransport service requirementsC×9
00250            DIMDimensionsC×9
00260            SELSeal numberC×9
00270            EQAAttached equipmentC×9
00280            HANHandling instructionsC×9
00290            NADName and addressC×9
00300              SG7Group (×99)C×99
00310              DGSDangerous goodsM1
00320              FTXFree textC×9
00330              MEAMeasurementsC×9
00340                SG8Group (×9)C×9
00350                CTAContact informationM1
00360                COMCommunication contactC×9
00370                  SG9Group (×9)C×9
00380                  TMPTemperatureM1
00390                  RNGRange detailsC1
00400                    SG10Group (×999)M×999
00410                    CNIConsignment informationM1
00420                    RFFReferenceC×9
00430                      SG11Group (×999)C×999
00440                      GIDGoods item detailsM1
00450                      HANHandling instructionsC×9
00460                        SG12Group (×9)C×9
00470                        TMPTemperatureM1
00480                        RNGRange detailsC1
00490                        FTXFree textC×9
00500                        MEAMeasurementsC×9
00510                        PCIPackage identificationC×9
00520                        DOCDocument/message detailsC×9
00530                          SG13Group (×999)M×999
00540                          SGPSplit goods placementM1
00550                          MEAMeasurementsC×9
00560                            SG14Group (×99)C×99
00570                            DGSDangerous goodsM1
00580                            FTXFree textC×9
00590                            MEAMeasurementsC×9
00600                              SG15Group (×9)C×9
00610                              CTAContact informationM1
00620                              COMCommunication contactC×9
00630                                SG16Group (×999)C×999
00640                                SGPSplit goods placementM1
00650                                MEAMeasurementsC×9
00660                                CNTControl totalC1
00670UNTMessage 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.18B for the COSTCO 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.

Status changes (M ↔ C)

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

Max-repeat changes

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

Structural example

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

edifact costco-d18b-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL018001'
UNH+1+COSTCO:D:18B:UN'
BGM+267+COSTCO-2026-0152+9'
DTM+137:202605141430:203'
DTM+138:202605141200:203'
FTX+AAI+++Stuffing completed - high cube container - 24 pallets'
UNT+6+1'
UNZ+1+CTRL018001'

Common errors

  • Misaligned UNH tokens — The UNH+...+COSTCO:D:18B: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.18B, 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: COSTCO D.96A, COSTCO D.01B, COSTCO D.10A, COSTCO D.16B, COSTCO D.21B, COSTCO D.24A, COSTCO D.97A, COSTCO D.99B, COSTCO D.00B, COSTCO D.02B, COSTCO D.05A, COSTCO D.08A, COSTCO D.13B, COSTCO D.20B.

← All EDIFACT versions