CUSCAR — EDIFACT Customs Cargo Report Message (D.02B)
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.02B.
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.02B. 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.02B 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.
Header
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
0010 | UNH | Message header | M | 1 |
0020 | BGM | Beginning of message | M | 1 |
0030 | DTM | Date/time/period | C | ×9 |
0040 | LOC | Place/location identification | C | ×9 |
0050 | QTY | Quantity | C | ×9 |
0060 | SG1 | Group (×99) | C | ×99 |
0070 | RFF | Reference | M | 1 |
0080 | DTM | Date/time/period | C | ×9 |
0090 | SG2 | Group (×99) | C | ×99 |
0100 | NAD | Name and address | M | 1 |
0110 | DTM | Date/time/period | C | 1 |
0120 | SG3 | Group (×9) | C | ×9 |
0130 | CTA | Contact information | M | 1 |
0140 | COM | Communication contact | C | ×9 |
0150 | FTX | Free text | C | ×9 |
0160 | SG4 | Group (×9) | C | ×9 |
0170 | TDT | Transport information | M | 1 |
0180 | LOC | Place/location identification | C | ×99 |
0190 | DTM | Date/time/period | C | ×99 |
0200 | GEI | Processing information | C | ×9 |
0210 | SG5 | Group (×9999) | C | ×9999 |
0220 | EQD | Equipment details | M | 1 |
0230 | TSR | Transport service requirements | C | ×9 |
0240 | MEA | Measurements | C | ×9 |
0250 | DIM | Dimensions | C | ×9 |
0260 | SEL | Seal number | C | ×9 |
0270 | NAD | Name and address | C | ×9 |
0280 | GEI | Processing information | C | ×9 |
0290 | LOC | Place/location identification | C | 1 |
0300 | SG6 | Group (×9) | C | ×9 |
0310 | TMP | Temperature | M | 1 |
0320 | RNG | Range details | C | 1 |
0330 | CNT | Control total | C | ×9 |
0340 | SG7 | Group (×9999) | C | ×9999 |
0350 | CNI | Consignment information | M | 1 |
0360 | CNT | Control total | C | ×9 |
0370 | SG8 | Group (×9999) | C | ×9999 |
0380 | RFF | Reference | M | 1 |
0390 | CNT | Control total | C | ×9 |
0400 | MOA | Monetary amount | C | ×9 |
0410 | LOC | Place/location identification | C | ×99 |
0420 | GEI | Processing information | C | ×9 |
0430 | CUX | Currencies | C | ×9 |
0440 | CPI | Charge payment instructions | C | ×9 |
0450 | SG9 | Group (×9) | C | ×9 |
0460 | TDT | Transport information | M | 1 |
0470 | LOC | Place/location identification | C | ×9 |
0480 | DTM | Date/time/period | C | ×9 |
0490 | MEA | Measurements | C | ×9 |
0500 | SG10 | Group (×9) | C | ×9 |
0510 | RFF | Reference | M | 1 |
0520 | TSR | Transport service requirements | C | ×9 |
0530 | SG11 | Group (×99) | C | ×99 |
0540 | NAD | Name and address | M | 1 |
0550 | DTM | Date/time/period | C | ×9 |
0560 | RFF | Reference | C | ×9 |
0570 | SG12 | Group (×9) | C | ×9 |
0580 | CTA | Contact information | M | 1 |
0590 | COM | Communication contact | C | ×9 |
0600 | SG13 | Group (×9) | C | ×9 |
0610 | QTY | Quantity | M | 1 |
0620 | FTX | Free text | C | ×9 |
0630 | SG14 | Group (×9999) | M | ×9999 |
0640 | GID | Goods item details | M | 1 |
0650 | PAC | Package | C | ×9 |
0660 | HAN | Handling instructions | C | ×9 |
0670 | FTX | Free text | C | ×99 |
0680 | MEA | Measurements | C | ×99 |
0690 | MOA | Monetary amount | C | ×9 |
0700 | SGP | Split goods placement | C | ×9999 |
0710 | DGS | Dangerous goods | C | ×9 |
0720 | PCI | Package identification | C | ×9 |
0730 | CST | Customs status of goods | C | 1 |
0740 | LOC | Place/location identification | C | ×9 |
0750 | TMD | Transport movement details | C | ×9 |
0760 | SG15 | Group (×9) | C | ×9 |
0770 | GEI | Processing information | M | 1 |
0780 | DTM | Date/time/period | C | ×9 |
0790 | DOC | Document/message details | C | ×9 |
0800 | PAC | Package | C | ×9 |
0810 | MEA | Measurements | C | ×9 |
0820 | SG16 | Group (×9) | C | ×9 |
0830 | QTY | Quantity | M | 1 |
0840 | FTX | Free text | C | 1 |
0850 | SG17 | Group (×1) | C | 1 |
0860 | AUT | Authentication result | M | 1 |
0870 | DTM | Date/time/period | C | ×9 |
0880 | RFF | Reference | C | ×9 |
0890 | UNT | Message trailer | M | 1 |
Detail
No segment in this section.
Summary
No segment in this section.
Changes vs D.96A
Top-level differences between D.96A and D.02B 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
GEIin the header section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.TMDin the header section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.
Segments removed vs D.96A
GISin the header section — present in D.96A but missing in D.02B at the same level.
Status changes (M ↔ C)
QTY(header): status M in D.96A → C in D.02B.RFF(header): status C in D.96A → M in D.02B.
Max-repeat changes
LOC(header): repeat ×99 in D.96A → ×9 in D.02B.QTY(header): repeat ×1 in D.96A → ×9 in D.02B.RFF(header): repeat ×9 in D.96A → ×1 in D.02B.SGP(header): repeat ×99 in D.96A → ×9999 in D.02B.
Structural example
Minimal example of an CUSCAR D.02B message with mandatory segments only. The goal is to show the exact version declared in UNH (CUSCAR:D:02B:UN) — not to replicate a full business case (see the CUSCAR D.96A page for an annotated example).
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL002001'
UNH+1+CUSCAR:D:02B: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+CTRL002001' Common errors
- Misaligned UNH tokens — The
UNH+...+CUSCAR:D:02B: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.02B, 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: 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.05A, CUSCAR D.08A, CUSCAR D.13B, CUSCAR D.18B, CUSCAR D.20B.
X12 functional equivalent: X12 309.