ORDRSP — EDIFACT Order Response (D.97A)
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.97A.
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.97A. The segments listed, their status (M / C), position and repetition factor are extracted from the official file ordrsp_s.htm hosted on service.unece.org.
Segment structure
The ORDRSP D.97A message has 95 header entries, 120 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. |
|---|---|---|---|---|
0010 | UNH | Message header | M | 1 |
0020 | BGM | Beginning of message | M | 1 |
0030 | DTM | Date/time/period | M | ×35 |
0040 | PAI | Payment instructions | C | 1 |
0050 | ALI | Additional information | C | ×5 |
0060 | IMD | Item description | C | 1 |
0070 | FTX | Free text | C | ×99 |
0080 | SG1 | Group (×99) | C | ×99 |
0090 | RFF | Reference | M | 1 |
0100 | DTM | Date/time/period | C | ×5 |
0110 | SG2 | Group (×1) | C | 1 |
0120 | AJT | Adjustment details | M | 1 |
0130 | FTX | Free text | C | ×5 |
0140 | SG3 | Group (×99) | C | ×99 |
0150 | NAD | Name and address | M | 1 |
0160 | LOC | Place/location identification | C | ×25 |
0170 | FII | Financial institution information | C | ×5 |
0180 | SG4 | Group (×10) | C | ×10 |
0190 | RFF | Reference | M | 1 |
0200 | DTM | Date/time/period | C | ×5 |
0210 | SG5 | Group (×5) | C | ×5 |
0220 | DOC | Document/message details | M | 1 |
0230 | DTM | Date/time/period | C | ×5 |
0240 | SG6 | Group (×5) | C | ×5 |
0250 | CTA | Contact information | M | 1 |
0260 | COM | Communication contact | C | ×5 |
0270 | SG7 | Group (×5) | C | ×5 |
0280 | TAX | Duty/tax/fee details | M | 1 |
0290 | MOA | Monetary amount | C | 1 |
0300 | LOC | Place/location identification | C | ×5 |
0310 | SG8 | Group (×5) | C | ×5 |
0320 | CUX | Currencies | M | 1 |
0330 | PCD | Percentage details | C | ×5 |
0340 | DTM | Date/time/period | C | ×5 |
0350 | SG9 | Group (×10) | C | ×10 |
0360 | PAT | Payment terms basis | M | 1 |
0370 | DTM | Date/time/period | C | ×5 |
0380 | PCD | Percentage details | C | 1 |
0390 | MOA | Monetary amount | C | 1 |
0400 | SG10 | Group (×10) | C | ×10 |
0410 | TDT | Details of transport | M | 1 |
0420 | SG11 | Group (×10) | C | ×10 |
0430 | LOC | Place/location identification | M | 1 |
0440 | DTM | Date/time/period | C | ×5 |
0450 | SG12 | Group (×5) | C | ×5 |
0460 | TOD | Terms of delivery or transport | M | 1 |
0470 | LOC | Place/location identification | C | ×2 |
0480 | SG13 | Group (×10) | C | ×10 |
0490 | PAC | Package | M | 1 |
0500 | MEA | Measurements | C | ×5 |
0510 | SG14 | Group (×5) | C | ×5 |
0520 | PCI | Package identification | M | 1 |
0530 | RFF | Reference | C | 1 |
0540 | DTM | Date/time/period | C | ×5 |
0550 | GIN | Goods identity number | C | ×99 |
0560 | SG15 | Group (×10) | C | ×10 |
0570 | EQD | Equipment details | M | 1 |
0580 | HAN | Handling instructions | C | ×5 |
0590 | MEA | Measurements | C | ×5 |
0600 | FTX | Free text | C | ×5 |
0610 | SG16 | Group (×10) | C | ×10 |
0620 | SCC | Scheduling conditions | M | 1 |
0630 | FTX | Free text | C | ×5 |
0640 | RFF | Reference | C | ×5 |
0650 | SG17 | Group (×10) | C | ×10 |
0660 | QTY | Quantity | M | 1 |
0670 | DTM | Date/time/period | C | ×5 |
0680 | SG18 | Group (×25) | C | ×25 |
0690 | APR | Additional price information | M | 1 |
0700 | DTM | Date/time/period | C | ×5 |
0710 | RNG | Range details | C | 1 |
0720 | SG19 | Group (×15) | C | ×15 |
0730 | ALC | Allowance or charge | M | 1 |
0740 | ALI | Additional information | C | ×5 |
0750 | DTM | Date/time/period | C | ×5 |
0760 | SG20 | Group (×1) | C | 1 |
0770 | QTY | Quantity | M | 1 |
0780 | RNG | Range details | C | 1 |
0790 | SG21 | Group (×1) | C | 1 |
0800 | PCD | Percentage details | M | 1 |
0810 | RNG | Range details | C | 1 |
0820 | SG22 | Group (×2) | C | ×2 |
0830 | MOA | Monetary amount | M | 1 |
0840 | RNG | Range details | C | 1 |
0850 | SG23 | Group (×1) | C | 1 |
0860 | RTE | Rate details | M | 1 |
0870 | RNG | Range details | C | 1 |
0880 | SG24 | Group (×5) | C | ×5 |
0890 | TAX | Duty/tax/fee details | M | 1 |
0900 | MOA | Monetary amount | C | 1 |
0910 | SG25 | Group (×100) | C | ×100 |
0920 | RCS | Requirements and conditions | M | 1 |
0930 | RFF | Reference | C | ×5 |
0940 | DTM | Date/time/period | C | ×5 |
0950 | FTX | Free text | C | ×5 |
Detail
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
0960 | SG26 | Group (×200000) | C | ×200000 |
0970 | LIN | Line item | M | 1 |
0980 | PIA | Additional product id | C | ×25 |
0990 | IMD | Item description | C | ×99 |
1000 | MEA | Measurements | C | ×99 |
1010 | QTY | Quantity | C | ×10 |
1020 | PCD | Percentage details | C | ×5 |
1030 | ALI | Additional information | C | ×5 |
1040 | DTM | Date/time/period | C | ×35 |
1050 | MOA | Monetary amount | C | ×10 |
1060 | GIN | Goods identity number | C | ×1000 |
1070 | GIR | Related identification numbers | C | ×1000 |
1080 | QVR | Quantity variances | C | 1 |
1090 | DOC | Document/message details | C | ×5 |
1100 | PAI | Payment instructions | C | 1 |
1110 | FTX | Free text | C | ×99 |
1120 | SG27 | Group (×999) | C | ×999 |
1130 | CCI | Characteristic/class id | M | 1 |
1140 | CAV | Characteristic value | C | ×10 |
1150 | MEA | Measurements | C | ×10 |
1160 | SG28 | Group (×10) | C | ×10 |
1170 | PAT | Payment terms basis | M | 1 |
1180 | DTM | Date/time/period | C | ×5 |
1190 | PCD | Percentage details | C | 1 |
1200 | MOA | Monetary amount | C | 1 |
1210 | SG29 | Group (×1) | C | 1 |
1220 | AJT | Adjustment details | M | 1 |
1230 | FTX | Free text | C | ×5 |
1240 | SG30 | Group (×25) | C | ×25 |
1250 | PRI | Price details | M | 1 |
1260 | CUX | Currencies | C | 1 |
1270 | APR | Additional price information | C | 1 |
1280 | RNG | Range details | C | 1 |
1290 | DTM | Date/time/period | C | ×5 |
1300 | SG31 | Group (×999) | C | ×999 |
1310 | RFF | Reference | M | 1 |
1320 | DTM | Date/time/period | C | ×5 |
1330 | SG32 | Group (×10) | C | ×10 |
1340 | PAC | Package | M | 1 |
1350 | MEA | Measurements | C | ×5 |
1360 | QTY | Quantity | C | ×5 |
1370 | DTM | Date/time/period | C | ×5 |
1380 | SG33 | Group (×1) | C | 1 |
1390 | RFF | Reference | M | 1 |
1400 | DTM | Date/time/period | C | ×5 |
1410 | SG34 | Group (×5) | C | ×5 |
1420 | PCI | Package identification | M | 1 |
1430 | RFF | Reference | C | 1 |
1440 | DTM | Date/time/period | C | ×5 |
1450 | GIN | Goods identity number | C | ×99 |
1460 | SG35 | Group (×9999) | C | ×9999 |
1470 | LOC | Place/location identification | M | 1 |
1480 | QTY | Quantity | C | 1 |
1490 | PCD | Percentage details | C | 1 |
1500 | DTM | Date/time/period | C | ×5 |
1510 | SG36 | Group (×10) | C | ×10 |
1520 | TAX | Duty/tax/fee details | M | 1 |
1530 | MOA | Monetary amount | C | 1 |
1540 | LOC | Place/location identification | C | ×5 |
1550 | SG37 | Group (×99) | C | ×99 |
1560 | NAD | Name and address | M | 1 |
1570 | LOC | Place/location identification | C | ×5 |
1580 | SG38 | Group (×5) | C | ×5 |
1590 | RFF | Reference | M | 1 |
1600 | DTM | Date/time/period | C | ×5 |
1610 | SG39 | Group (×5) | C | ×5 |
1620 | DOC | Document/message details | M | 1 |
1630 | DTM | Date/time/period | C | ×5 |
1640 | SG40 | Group (×5) | C | ×5 |
1650 | CTA | Contact information | M | 1 |
1660 | COM | Communication contact | C | ×5 |
1670 | SG41 | Group (×99) | C | ×99 |
1680 | ALC | Allowance or charge | M | 1 |
1690 | ALI | Additional information | C | ×5 |
1700 | DTM | Date/time/period | C | ×5 |
1710 | SG42 | Group (×1) | C | 1 |
1720 | QTY | Quantity | M | 1 |
1730 | RNG | Range details | C | 1 |
1740 | SG43 | Group (×1) | C | 1 |
1750 | PCD | Percentage details | M | 1 |
1760 | RNG | Range details | C | 1 |
1770 | SG44 | Group (×2) | C | ×2 |
1780 | MOA | Monetary amount | M | 1 |
1790 | RNG | Range details | C | 1 |
1800 | SG45 | Group (×1) | C | 1 |
1810 | RTE | Rate details | M | 1 |
1820 | RNG | Range details | C | 1 |
1830 | SG46 | Group (×5) | C | ×5 |
1840 | TAX | Duty/tax/fee details | M | 1 |
1850 | MOA | Monetary amount | C | 1 |
1860 | SG47 | Group (×10) | C | ×10 |
1870 | TDT | Details of transport | M | 1 |
1880 | SG48 | Group (×10) | C | ×10 |
1890 | LOC | Place/location identification | M | 1 |
1900 | DTM | Date/time/period | C | ×5 |
1910 | SG49 | Group (×5) | C | ×5 |
1920 | TOD | Terms of delivery or transport | M | 1 |
1930 | LOC | Place/location identification | C | ×2 |
1940 | SG50 | Group (×10) | C | ×10 |
1950 | EQD | Equipment details | M | 1 |
1960 | HAN | Handling instructions | C | ×5 |
1970 | MEA | Measurements | C | ×5 |
1980 | FTX | Free text | C | ×5 |
1990 | SG51 | Group (×100) | C | ×100 |
2000 | SCC | Scheduling conditions | M | 1 |
2010 | FTX | Free text | C | ×5 |
2020 | RFF | Reference | C | ×5 |
2030 | SG52 | Group (×10) | C | ×10 |
2040 | QTY | Quantity | M | 1 |
2050 | DTM | Date/time/period | C | ×5 |
2060 | SG53 | Group (×100) | C | ×100 |
2070 | RCS | Requirements and conditions | M | 1 |
2080 | RFF | Reference | C | ×5 |
2090 | DTM | Date/time/period | C | ×5 |
2100 | FTX | Free text | C | ×5 |
2110 | SG54 | Group (×10) | C | ×10 |
2120 | STG | Stages | M | 1 |
2130 | SG55 | Group (×3) | C | ×3 |
2140 | QTY | Quantity | M | 1 |
2150 | MOA | Monetary amount | C | 1 |
Summary
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
2160 | UNS | Section control | M | 1 |
2170 | MOA | Monetary amount | C | ×12 |
2180 | CNT | Control total | C | ×10 |
2190 | SG56 | Group (×10) | C | ×10 |
2200 | ALC | Allowance or charge | M | 1 |
2210 | ALI | Additional information | C | 1 |
2220 | MOA | Monetary amount | M | ×2 |
2230 | UNT | Message trailer | M | 1 |
Changes vs D.96A
Top-level differences between D.96A and D.97A 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.
Max-repeat changes
MEA(detail): repeat ×5 in D.96A → ×99 in D.97A.
Structural example
Minimal example of an ORDRSP D.97A message with mandatory segments only. The goal is to show the exact version declared in UNH (ORDRSP:D:97A: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+CTRL097001'
UNH+1+ORDRSP:D:97A: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+CTRL097001' Common errors
- Misaligned UNH tokens — The
UNH+...+ORDRSP:D:97A: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.97A, 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.99B, ORDRSP D.00B, ORDRSP D.02B, ORDRSP D.05A, ORDRSP D.08A, ORDRSP D.13B, ORDRSP D.18B, ORDRSP D.20B.
X12 functional equivalent: X12 855.