ORDRSP — EDIFACT Order Response (D.18B)
The ORDRSP message is the supplier’s formal response to a received ORDERS message: full acceptance, proposed changes, partial or full rejection. It carries per-line commitments on quantity, price and delivery date. This page summarises the segment structure as published by UN/CEFACT for directory D.18B.
Purpose
The ORDRSP message is the supplier’s formal response to a received ORDERS message: full acceptance, proposed changes, partial or full rejection. It carries per-line commitments on quantity, price and delivery date.
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 ordrsp_c.htm hosted on service.unece.org.
Segment structure
The ORDRSP D.18B message has 103 header entries, 136 detail entries and 8 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 | M | ×35 |
00040 | PAI | Payment instructions | C | 1 |
00050 | ALI | Additional information | C | ×5 |
00060 | IMD | Item description | C | ×999 |
00070 | FTX | Free text | C | ×99 |
00080 | GIR | Related identification numbers | C | ×10 |
00090 | SG1 | Group (×9999) | C | ×9999 |
00100 | RFF | Reference | M | 1 |
00110 | DTM | Date/time/period | C | ×5 |
00120 | SG2 | Group (×1) | C | 1 |
00130 | AJT | Adjustment details | M | 1 |
00140 | FTX | Free text | C | ×5 |
00150 | SG3 | Group (×99) | C | ×99 |
00160 | NAD | Name and address | M | 1 |
00170 | LOC | Place/location identification | C | ×25 |
00180 | FII | Financial institution information | C | ×5 |
00190 | SG4 | Group (×99) | C | ×99 |
00200 | RFF | Reference | M | 1 |
00210 | DTM | Date/time/period | C | ×5 |
00220 | SG5 | Group (×5) | C | ×5 |
00230 | DOC | Document/message details | M | 1 |
00240 | DTM | Date/time/period | C | ×5 |
00250 | SG6 | Group (×5) | C | ×5 |
00260 | CTA | Contact information | M | 1 |
00270 | COM | Communication contact | C | ×5 |
00280 | SG7 | Group (×5) | C | ×5 |
00290 | TAX | Duty/tax/fee details | M | 1 |
00300 | MOA | Monetary amount | C | 1 |
00310 | LOC | Place/location identification | C | ×5 |
00320 | SG8 | Group (×5) | C | ×5 |
00330 | CUX | Currencies | M | 1 |
00340 | PCD | Percentage details | C | ×5 |
00350 | DTM | Date/time/period | C | ×5 |
00360 | SG9 | Group (×10) | C | ×10 |
00370 | PYT | Payment terms | M | 1 |
00380 | DTM | Date/time/period | C | ×5 |
00390 | PCD | Percentage details | C | 1 |
00400 | MOA | Monetary amount | C | 1 |
00410 | SG10 | Group (×10) | C | ×10 |
00420 | TDT | Transport information | M | 1 |
00430 | SG11 | Group (×10) | C | ×10 |
00440 | LOC | Place/location identification | M | 1 |
00450 | DTM | Date/time/period | C | ×5 |
00460 | SG12 | Group (×5) | C | ×5 |
00470 | TOD | Terms of delivery or transport | M | 1 |
00480 | LOC | Place/location identification | C | ×2 |
00490 | SG13 | Group (×99) | C | ×99 |
00500 | PAC | Package | M | 1 |
00510 | MEA | Measurements | C | ×5 |
00520 | SG14 | Group (×99) | C | ×99 |
00530 | PCI | Package identification | M | 1 |
00540 | RFF | Reference | C | 1 |
00550 | DTM | Date/time/period | C | ×5 |
00560 | GIN | Goods identity number | C | ×99 |
00570 | SG15 | Group (×10) | C | ×10 |
00580 | EQD | Equipment details | M | 1 |
00590 | HAN | Handling instructions | C | ×5 |
00600 | MEA | Measurements | C | ×5 |
00610 | FTX | Free text | C | ×5 |
00620 | SG16 | Group (×10) | C | ×10 |
00630 | SCC | Scheduling conditions | M | 1 |
00640 | FTX | Free text | C | ×5 |
00650 | RFF | Reference | C | ×5 |
00660 | SG17 | Group (×10) | C | ×10 |
00670 | QTY | Quantity | M | 1 |
00680 | DTM | Date/time/period | C | ×5 |
00690 | SG18 | Group (×25) | C | ×25 |
00700 | APR | Additional price information | M | 1 |
00710 | DTM | Date/time/period | C | ×5 |
00720 | RNG | Range details | C | 1 |
00730 | SG19 | Group (×99) | C | ×99 |
00740 | ALC | Allowance or charge | M | 1 |
00750 | ALI | Additional information | C | ×5 |
00760 | DTM | Date/time/period | C | ×5 |
00770 | SG20 | Group (×1) | C | 1 |
00780 | QTY | Quantity | M | 1 |
00790 | RNG | Range details | C | 1 |
00800 | SG21 | Group (×1) | C | 1 |
00810 | PCD | Percentage details | M | 1 |
00820 | RNG | Range details | C | 1 |
00830 | SG22 | Group (×2) | C | ×2 |
00840 | MOA | Monetary amount | M | 1 |
00850 | RNG | Range details | C | 1 |
00860 | SG23 | Group (×1) | C | 1 |
00870 | RTE | Rate details | M | 1 |
00880 | RNG | Range details | C | 1 |
00890 | SG24 | Group (×5) | C | ×5 |
00900 | TAX | Duty/tax/fee details | M | 1 |
00910 | MOA | Monetary amount | C | 1 |
00920 | SG25 | Group (×999) | C | ×999 |
00930 | RCS | Requirements and conditions | M | 1 |
00940 | RFF | Reference | C | ×5 |
00950 | DTM | Date/time/period | C | ×5 |
00960 | FTX | Free text | C | ×99999 |
00970 | SG26 | Group (×99) | C | ×99 |
00980 | EFI | External file link identification | M | 1 |
00990 | CED | Computer environment details | C | ×99 |
01000 | COM | Communication contact | C | ×9 |
01010 | RFF | Reference | C | ×9 |
01020 | DTM | Date/time/period | C | ×9 |
01030 | QTY | Quantity | C | ×9 |
Detail
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
01040 | SG27 | Group (×200000) | C | ×200000 |
01050 | LIN | Line item | M | 1 |
01060 | PIA | Additional product id | C | ×25 |
01070 | IMD | Item description | C | ×99 |
01080 | MEA | Measurements | C | ×99 |
01090 | QTY | Quantity | C | ×99 |
01100 | PCD | Percentage details | C | ×5 |
01110 | ALI | Additional information | C | ×5 |
01120 | DTM | Date/time/period | C | ×35 |
01130 | MOA | Monetary amount | C | ×10 |
01140 | GEI | Processing information | C | ×99 |
01150 | GIN | Goods identity number | C | ×1000 |
01160 | GIR | Related identification numbers | C | ×1000 |
01170 | QVR | Quantity variances | C | 1 |
01180 | DOC | Document/message details | C | ×99 |
01190 | PAI | Payment instructions | C | 1 |
01200 | MTD | Maintenance operation details | C | ×99 |
01210 | FTX | Free text | C | ×99 |
01220 | SG28 | Group (×999) | C | ×999 |
01230 | CCI | Characteristic/class id | M | 1 |
01240 | CAV | Characteristic value | C | ×10 |
01250 | MEA | Measurements | C | ×10 |
01260 | SG29 | Group (×10) | C | ×10 |
01270 | PYT | Payment terms | M | 1 |
01280 | DTM | Date/time/period | C | ×5 |
01290 | PCD | Percentage details | C | 1 |
01300 | MOA | Monetary amount | C | 1 |
01310 | SG30 | Group (×1) | C | 1 |
01320 | AJT | Adjustment details | M | 1 |
01330 | FTX | Free text | C | ×5 |
01340 | SG31 | Group (×25) | C | ×25 |
01350 | PRI | Price details | M | 1 |
01360 | CUX | Currencies | C | 1 |
01370 | APR | Additional price information | C | 1 |
01380 | RNG | Range details | C | 1 |
01390 | DTM | Date/time/period | C | ×5 |
01400 | SG32 | Group (×9999) | C | ×9999 |
01410 | RFF | Reference | M | 1 |
01420 | DTM | Date/time/period | C | ×5 |
01430 | SG33 | Group (×99) | C | ×99 |
01440 | PAC | Package | M | 1 |
01450 | MEA | Measurements | C | ×5 |
01460 | QTY | Quantity | C | ×5 |
01470 | DTM | Date/time/period | C | ×5 |
01480 | SG34 | Group (×1) | C | 1 |
01490 | RFF | Reference | M | 1 |
01500 | DTM | Date/time/period | C | ×5 |
01510 | SG35 | Group (×99) | C | ×99 |
01520 | PCI | Package identification | M | 1 |
01530 | RFF | Reference | C | 1 |
01540 | DTM | Date/time/period | C | ×5 |
01550 | GIN | Goods identity number | C | ×99 |
01560 | SG36 | Group (×9999) | C | ×9999 |
01570 | LOC | Place/location identification | M | 1 |
01580 | PCD | Percentage details | C | 1 |
01590 | DTM | Date/time/period | C | ×5 |
01600 | SG37 | Group (×99) | C | ×99 |
01610 | QTY | Quantity | M | 1 |
01620 | STS | Status | C | ×99 |
01630 | SG38 | Group (×10) | C | ×10 |
01640 | TAX | Duty/tax/fee details | M | 1 |
01650 | MOA | Monetary amount | C | 1 |
01660 | LOC | Place/location identification | C | ×5 |
01670 | SG39 | Group (×999) | C | ×999 |
01680 | NAD | Name and address | M | 1 |
01690 | LOC | Place/location identification | C | ×5 |
01700 | FII | Financial institution information | C | ×5 |
01710 | SG40 | Group (×99) | C | ×99 |
01720 | RFF | Reference | M | 1 |
01730 | DTM | Date/time/period | C | ×5 |
01740 | SG41 | Group (×5) | C | ×5 |
01750 | DOC | Document/message details | M | 1 |
01760 | DTM | Date/time/period | C | ×5 |
01770 | SG42 | Group (×5) | C | ×5 |
01780 | CTA | Contact information | M | 1 |
01790 | COM | Communication contact | C | ×5 |
01800 | SG43 | Group (×99) | C | ×99 |
01810 | QTY | Quantity | M | 1 |
01820 | DTM | Date/time/period | C | ×5 |
01830 | STS | Status | C | ×99 |
01840 | SG44 | Group (×99) | C | ×99 |
01850 | ALC | Allowance or charge | M | 1 |
01860 | ALI | Additional information | C | ×5 |
01870 | DTM | Date/time/period | C | ×5 |
01880 | SG45 | Group (×1) | C | 1 |
01890 | QTY | Quantity | M | 1 |
01900 | RNG | Range details | C | 1 |
01910 | SG46 | Group (×1) | C | 1 |
01920 | PCD | Percentage details | M | 1 |
01930 | RNG | Range details | C | 1 |
01940 | SG47 | Group (×2) | C | ×2 |
01950 | MOA | Monetary amount | M | 1 |
01960 | RNG | Range details | C | 1 |
01970 | SG48 | Group (×1) | C | 1 |
01980 | RTE | Rate details | M | 1 |
01990 | RNG | Range details | C | 1 |
02000 | SG49 | Group (×5) | C | ×5 |
02010 | TAX | Duty/tax/fee details | M | 1 |
02020 | MOA | Monetary amount | C | 1 |
02030 | SG50 | Group (×10) | C | ×10 |
02040 | TDT | Transport information | M | 1 |
02050 | SG51 | Group (×10) | C | ×10 |
02060 | LOC | Place/location identification | M | 1 |
02070 | DTM | Date/time/period | C | ×5 |
02080 | SG52 | Group (×5) | C | ×5 |
02090 | TOD | Terms of delivery or transport | M | 1 |
02100 | LOC | Place/location identification | C | ×2 |
02110 | SG53 | Group (×10) | C | ×10 |
02120 | EQD | Equipment details | M | 1 |
02130 | HAN | Handling instructions | C | ×5 |
02140 | MEA | Measurements | C | ×5 |
02150 | FTX | Free text | C | ×5 |
02160 | SG54 | Group (×100) | C | ×100 |
02170 | SCC | Scheduling conditions | M | 1 |
02180 | FTX | Free text | C | ×5 |
02190 | RFF | Reference | C | ×5 |
02200 | SG55 | Group (×10) | C | ×10 |
02210 | QTY | Quantity | M | 1 |
02220 | DTM | Date/time/period | C | ×5 |
02230 | SG56 | Group (×999) | C | ×999 |
02240 | RCS | Requirements and conditions | M | 1 |
02250 | RFF | Reference | C | ×5 |
02260 | DTM | Date/time/period | C | ×5 |
02270 | FTX | Free text | C | ×99999 |
02280 | SG57 | Group (×10) | C | ×10 |
02290 | STG | Stages | M | 1 |
02300 | SG58 | Group (×3) | C | ×3 |
02310 | QTY | Quantity | M | 1 |
02320 | MOA | Monetary amount | C | 1 |
02330 | SG59 | Group (×99) | C | ×99 |
02340 | EFI | External file link identification | M | 1 |
02350 | CED | Computer environment details | C | ×99 |
02360 | COM | Communication contact | C | ×9 |
02370 | RFF | Reference | C | ×9 |
02380 | DTM | Date/time/period | C | ×9 |
02390 | QTY | Quantity | C | ×9 |
Summary
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
02400 | UNS | Section control | M | 1 |
02410 | MOA | Monetary amount | C | ×12 |
02420 | CNT | Control total | C | ×10 |
02430 | SG60 | Group (×10) | C | ×10 |
02440 | ALC | Allowance or charge | M | 1 |
02450 | ALI | Additional information | C | 1 |
02460 | MOA | Monetary amount | M | ×2 |
02470 | UNT | Message trailer | M | 1 |
Changes vs D.96A
Top-level differences between D.96A and D.18B for the ORDRSP 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
GIRin the header section (status C, repeat ×10) — not present at the top of the corresponding D.96A section.PYTin the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.EFIin the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.CEDin the header section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.GEIin the detail section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.MTDin the detail section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.PYTin the detail section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.STSin the detail section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.FIIin the detail section (status C, repeat ×5) — not present at the top of the corresponding D.96A section.EFIin the detail section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.CEDin the detail section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.
Segments removed vs D.96A
PATin the header section — present in D.96A but missing in D.18B at the same level.PATin the detail section — present in D.96A but missing in D.18B at the same level.
Max-repeat changes
IMD(header): repeat ×1 in D.96A → ×999 in D.18B.MEA(detail): repeat ×5 in D.96A → ×99 in D.18B.QTY(detail): repeat ×10 in D.96A → ×99 in D.18B.DOC(detail): repeat ×5 in D.96A → ×99 in D.18B.
Structural example
Minimal example of an ORDRSP D.18B message with mandatory segments only. The goal is to show the exact version declared in UNH (ORDRSP:D:18B:UN) — not to replicate a full business case (see the ORDRSP D.96A page for an annotated example).
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL018001'
UNH+1+ORDRSP:D:18B:UN'
BGM+231+ORD789-RSP+9'
DTM+137:20260514:102'
NAD+SU+5410000000456::9'
NAD+BY+5410000000123::9'
LIN+1++3520000001234:EN'
QTY+21:10'
QTY+83:10'
PRI+AAA:42.00'
UNS+S'
CNT+2:1'
UNT+11+1'
UNZ+1+CTRL018001' Common errors
- Misaligned UNH tokens — The
UNH+...+ORDRSP:D:18B: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.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.
Related messages
Other versions of this message available on ediverse.io: ORDRSP D.96A, ORDRSP D.01B, ORDRSP D.10A, ORDRSP D.16B, ORDRSP D.21B, ORDRSP D.24A, ORDRSP D.97A, ORDRSP D.99B, ORDRSP D.00B, ORDRSP D.02B, ORDRSP D.05A, ORDRSP D.08A, ORDRSP D.13B, ORDRSP D.20B.
X12 functional equivalent: X12 855.