COPRAR — EDIFACT Container Discharge / Loading Order Message (D.24A)
The COPRAR message is the order from a carrier to a port terminal to load or discharge a precise list of containers onto or from a seagoing vessel: it identifies the vessel, the voyage, the containers concerned and the booking references. The related report is CODECO (or CASRES in some flows). This page summarises the segment structure as published by UN/CEFACT for directory D.24A.
Purpose
The COPRAR message is the order from a carrier to a port terminal to load or discharge a precise list of containers onto or from a seagoing vessel: it identifies the vessel, the voyage, the containers concerned and the booking references. The related report is CODECO (or CASRES in some flows).
This page focuses on the structure published by UN/CEFACT for directory D.24A. The segments listed, their status (M / C), position and repetition factor are extracted from the official file coprar_c.htm hosted on service.unece.org.
Segment structure
The COPRAR D.24A message has 56 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. |
|---|---|---|---|---|
00010 | UNH | Message header | M | 1 |
00020 | BGM | Beginning of message | M | 1 |
00030 | DTM | Date/time/period | C | ×9 |
00040 | FTX | Free text | C | ×9 |
00050 | SG1 | Group (×9) | C | ×9 |
00060 | RFF | Reference | M | 1 |
00070 | DTM | Date/time/period | C | ×9 |
00080 | SG2 | Group (×1) | M | 1 |
00090 | TDT | Transport information | M | 1 |
00100 | DTM | Date/time/period | C | ×9 |
00110 | RFF | Reference | C | ×9 |
00120 | SG3 | Group (×9) | C | ×9 |
00130 | LOC | Place/location identification | M | 1 |
00140 | DTM | Date/time/period | C | ×9 |
00150 | FTX | Free text | C | ×9 |
00160 | SG4 | Group (×9) | M | ×9 |
00170 | NAD | Name and address | M | 1 |
00180 | SG5 | Group (×9) | C | ×9 |
00190 | CTA | Contact information | M | 1 |
00200 | COM | Communication contact | C | ×9 |
00210 | SG6 | Group (×99999) | M | ×99999 |
00220 | EQD | Equipment details | M | 1 |
00230 | RFF | Reference | C | ×9 |
00240 | EQN | Number of units | C | 1 |
00250 | TMD | Transport movement details | C | ×9 |
00260 | DTM | Date/time/period | C | ×9 |
00270 | LOC | Place/location identification | C | ×9 |
00280 | MEA | Measurements | C | ×9 |
00290 | DIM | Dimensions | C | ×9 |
00300 | SG7 | Group (×9) | C | ×9 |
00310 | TMP | Temperature | M | 1 |
00320 | RNG | Range details | C | 1 |
00330 | SEL | Seal number | C | ×9 |
00340 | ATT | Attribute | C | ×99 |
00350 | FTX | Free text | C | ×9 |
00360 | PCD | Percentage details | C | ×9 |
00370 | SG8 | Group (×999) | C | ×999 |
00380 | DGS | Dangerous goods | M | 1 |
00390 | ATT | Attribute | C | ×9 |
00400 | FTX | Free text | C | ×9 |
00410 | MEA | Measurements | C | ×9 |
00420 | SG9 | Group (×9) | C | ×9 |
00430 | CTA | Contact information | M | 1 |
00440 | COM | Communication contact | C | ×9 |
00450 | EQA | Attached equipment | C | ×9 |
00460 | HAN | Handling instructions | C | ×99 |
00470 | SG10 | Group (×1) | C | 1 |
00480 | TDT | Transport information | M | 1 |
00490 | DTM | Date/time/period | C | ×9 |
00500 | RFF | Reference | C | ×9 |
00510 | SG11 | Group (×9) | C | ×9 |
00520 | LOC | Place/location identification | M | 1 |
00530 | DTM | Date/time/period | C | ×9 |
00540 | NAD | Name and address | C | ×9 |
00550 | CNT | Control total | C | 1 |
00560 | 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.24A for the COPRAR 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
COMin the header section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.ATTin the header section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.PCDin the header section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.HANin the header section (status C, repeat ×99) — 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.24A.CTA(header): status C in D.96A → M in D.24A.TMP(header): status C in D.96A → M in D.24A.DGS(header): status C in D.96A → M in D.24A.CNT(header): status M in D.96A → C in D.24A.
Max-repeat changes
RFF(header): repeat ×9 in D.96A → ×1 in D.24A.LOC(header): repeat ×9 in D.96A → ×1 in D.24A.CTA(header): repeat ×9 in D.96A → ×1 in D.24A.TMP(header): repeat ×9 in D.96A → ×1 in D.24A.RNG(header): repeat ×9 in D.96A → ×1 in D.24A.DGS(header): repeat ×9 in D.96A → ×1 in D.24A.
Structural example
Minimal example of an COPRAR D.24A message with mandatory segments only. The goal is to show the exact version declared in UNH (COPRAR:D:24A:UN) — not to replicate a full business case (see the COPRAR D.96A page for an annotated example).
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL024001'
UNH+1+COPRAR:D:24A:UN'
BGM+750+COPRAR-2026-MSC1234+9'
DTM+137:202605141430:203'
TDT+20+MSC1234W+1++MSC::ZZZ+++9301234:103:::MSC OSCAR'
LOC+11+FRLEH::6'
LOC+13+NLRTM::6'
NAD+CA+5410000000123::9'
EQD+CN+MSCU1234567+45G1+++5'
RFF+BN:BKG-2026-MSC-7811'
UNT+10+1'
UNZ+1+CTRL024001' Common errors
- Misaligned UNH tokens — The
UNH+...+COPRAR:D:24A: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.24A, 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: COPRAR D.96A, COPRAR D.10A, COPRAR D.16B, COPRAR D.21B.