INSREQ — EDIFACT Inspection Request Message (D.02B)
The INSREQ message is the inspection request sent to a control body or service provider: it specifies what to inspect, where, when, against which standard, and with which urgency — quality, regulatory compliance, customs, veterinary. This page summarises the segment structure as published by UN/CEFACT for directory D.02B.
Purpose
The INSREQ message is the inspection request sent to a control body or service provider: it specifies what to inspect, where, when, against which standard, and with which urgency — quality, regulatory compliance, customs, veterinary.
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 insreq_c.htm hosted on service.unece.org.
Segment structure
The INSREQ D.02B message has 38 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 | M | ×99 |
0040 | SG1 | Group (×99) | C | ×99 |
0050 | RFF | Reference | M | 1 |
0060 | DTM | Date/time/period | C | ×9 |
0070 | SG2 | Group (×99) | M | ×99 |
0080 | NAD | Name and address | M | 1 |
0090 | LOC | Place/location identification | C | ×99 |
0100 | SG3 | Group (×99) | M | ×99 |
0110 | DOC | Document/message details | M | 1 |
0120 | SG4 | Group (×99) | C | ×99 |
0130 | RFF | Reference | M | 1 |
0140 | DTM | Date/time/period | C | ×99 |
0150 | SG5 | Group (×99) | C | ×99 |
0160 | NAD | Name and address | M | 1 |
0170 | SG6 | Group (×99) | C | ×99 |
0180 | CTA | Contact information | M | 1 |
0190 | COM | Communication contact | C | ×99 |
0200 | SG7 | Group (×999) | C | ×999 |
0210 | LIN | Line item | M | 1 |
0220 | PIA | Additional product id | C | ×99 |
0230 | IMD | Item description | C | ×99 |
0240 | DTM | Date/time/period | C | ×99 |
0250 | RFF | Reference | C | ×99 |
0260 | FTX | Free text | C | ×9 |
0270 | SG8 | Group (×999) | C | ×999 |
0280 | NAD | Name and address | M | 1 |
0290 | GEI | Processing information | C | ×99 |
0300 | LOC | Place/location identification | C | ×99 |
0310 | QTY | Quantity | C | ×99 |
0320 | QVR | Quantity variances | C | ×99 |
0330 | RFF | Reference | C | ×99 |
0340 | FTX | Free text | C | ×9 |
0350 | SG9 | Group (×999) | C | ×999 |
0360 | GIN | Goods identity number | M | 1 |
0370 | RFF | Reference | C | ×99 |
0380 | UNT | Message trailer | M | 1 |
Detail
No segment in this section.
Summary
No segment in this section.
Changes vs D.96A
The INSREQ message is not published in directory D.96A. No "D.96A → D.02B" comparison line can therefore be produced — see the block below for details.
This message is not published in directory D.96A: it was introduced into the standard after that release and therefore has no historical baseline for comparison. The first directory indexed on ediverse.io sets the reference; later changes are then documented from one release to the next in subsequent directories.
Structural example
Minimal example of an INSREQ D.02B message with mandatory segments only. The goal is to show the exact version declared in UNH (INSREQ:D:02B:UN) — not to replicate a full business case.
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL002001'
UNH+1+INSREQ:D:02B:UN'
BGM+701+INSREQ-2026-0220+9'
DTM+137:20260514:102'
DTM+200:20260520:102'
NAD+ON+5410000000123::9'
NAD+IS+5410000000456::9'
LOC+18+FRLEH::6'
LIN+1++3520000001234:EN'
QTY+1:500'
FTX+AAI+++Quality inspection on receipt - ISO 9001'
UNT+10+1'
UNZ+1+CTRL002001' Common errors
- Misaligned UNH tokens — The
UNH+...+INSREQ: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: INSREQ D.01B, INSREQ D.10A, INSREQ D.16B, INSREQ D.21B, INSREQ D.24A, INSREQ D.99B, INSREQ D.00B, INSREQ D.05A, INSREQ D.08A, INSREQ D.13B, INSREQ D.18B, INSREQ D.20B.
X12 functional equivalent: X12 142.