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.
CUSCAR D.20B

CUSCAR — EDIFACT Customs Cargo Report Message (D.20B)

The CUSCAR message is the cargo report sent to a customs administration by a carrier or consignee upon or before the arrival of a means of transport: it describes the contents of a container or full shipment for customs control, safety/security and import/export statistics. This page summarises the segment structure as published by UN/CEFACT for directory D.20B.

Purpose

The CUSCAR message is the cargo report sent to a customs administration by a carrier or consignee upon or before the arrival of a means of transport: it describes the contents of a container or full shipment for customs control, safety/security and import/export statistics.

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

Segment structure

The CUSCAR D.20B message has 89 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
00040LOCPlace/location identificationC×9
00050QTYQuantityC×9
00060  SG1Group (×99)C×99
00070  RFFReferenceM1
00080  DTMDate/time/periodC×9
00090    SG2Group (×99)C×99
00100    NADName and addressM1
00110    DTMDate/time/periodC1
00120      SG3Group (×9)C×9
00130      CTAContact informationM1
00140      COMCommunication contactC×9
00150      FTXFree textC×9
00160        SG4Group (×9)C×9
00170        TDTTransport informationM1
00180        LOCPlace/location identificationC×99
00190        DTMDate/time/periodC×99
00200        GEIProcessing informationC×9
00210          SG5Group (×9999)C×9999
00220          EQDEquipment detailsM1
00230          TSRTransport service requirementsC×9
00240          MEAMeasurementsC×9
00250          DIMDimensionsC×9
00260          SELSeal numberC×9
00270          NADName and addressC×9
00280          GEIProcessing informationC×9
00290          LOCPlace/location identificationC1
00300            SG6Group (×9)C×9
00310            TMPTemperatureM1
00320            RNGRange detailsC1
00330            CNTControl totalC×9
00340              SG7Group (×9999)C×9999
00350              CNIConsignment informationM1
00360              CNTControl totalC×9
00370                SG8Group (×9999)C×9999
00380                RFFReferenceM1
00390                CNTControl totalC×9
00400                MOAMonetary amountC×9
00410                LOCPlace/location identificationC×99
00420                GEIProcessing informationC×9
00430                CUXCurrenciesC×9
00440                CPICharge payment instructionsC×9
00450                  SG9Group (×9)C×9
00460                  TDTTransport informationM1
00470                  LOCPlace/location identificationC×9
00480                  DTMDate/time/periodC×9
00490                  MEAMeasurementsC×9
00500                    SG10Group (×9)C×9
00510                    RFFReferenceM1
00520                    TSRTransport service requirementsC×9
00530                      SG11Group (×99)C×99
00540                      NADName and addressM1
00550                      DTMDate/time/periodC×9
00560                      RFFReferenceC×9
00570                        SG12Group (×9)C×9
00580                        CTAContact informationM1
00590                        COMCommunication contactC×9
00600                          SG13Group (×9)C×9
00610                          QTYQuantityM1
00620                          FTXFree textC×9
00630                            SG14Group (×9999)M×9999
00640                            GIDGoods item detailsM1
00650                            PACPackageC×9
00660                            HANHandling instructionsC×9
00670                            FTXFree textC×99
00680                            MEAMeasurementsC×99
00690                            MOAMonetary amountC×9
00700                            SGPSplit goods placementC×9999
00710                            DGSDangerous goodsC×99
00720                            PCIPackage identificationC×9
00730                            CSTCustoms status of goodsC1
00740                            LOCPlace/location identificationC×9
00750                            TMDTransport movement detailsC×9
00760                              SG15Group (×9)C×9
00770                              GEIProcessing informationM1
00780                              DTMDate/time/periodC×9
00790                              DOCDocument/message detailsC×9
00800                              PACPackageC×9
00810                              MEAMeasurementsC×9
00820                                SG16Group (×9)C×9
00830                                QTYQuantityM1
00840                                FTXFree textC1
00850                                  SG17Group (×1)C1
00860                                  AUTAuthentication resultM1
00870                                  DTMDate/time/periodC×9
00880                                  RFFReferenceC×9
00890UNTMessage 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.20B for the CUSCAR 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

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

Segments removed vs D.96A

  • GIS in the header section — present in D.96A but missing in D.20B at the same level.

Status changes (M ↔ C)

  • QTY (header): status M in D.96A → C in D.20B.
  • RFF (header): status C in D.96A → M in D.20B.

Max-repeat changes

  • LOC (header): repeat ×99 in D.96A → ×9 in D.20B.
  • QTY (header): repeat ×1 in D.96A → ×9 in D.20B.
  • RFF (header): repeat ×9 in D.96A → ×1 in D.20B.
  • SGP (header): repeat ×99 in D.96A → ×9999 in D.20B.
  • DGS (header): repeat ×9 in D.96A → ×99 in D.20B.

Structural example

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

edifact cuscar-d20b-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL020001'
UNH+1+CUSCAR:D:20B:UN'
BGM+929+CUSCAR-2026-0123+9'
DTM+137:20260514:102'
NAD+CA+5410000000123::9'
NAD+CZ+5410000000456::9'
TDT+20+MSC1234W+1++MSC::ZZZ+++9301234:103:::MSC OSCAR'
LOC+9+FRLEH::6'
LOC+11+NLRTM::6'
RFF+BM:BL-2026-7811'
EQD+CN+MSCU1234567+45G1+++5'
MEA+AAE+G+KGM:24500'
UNT+11+1'
UNZ+1+CTRL020001'

Common errors

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

X12 functional equivalent: X12 309.

← All EDIFACT versions