Short answer: ORDERS is UN/EDIFACT's purchase order message — the European and global counterpart to the X12 850 · Purchase Order. A buyer sends ORDERS to place, change, or cancel an order; the seller answers with ORDRSP · Order Response. If you trade with partners outside North America and only know the 850, ORDERS is the same business promise written in a different grammar — and the grammar is where integrations quietly break.
I build EDI tooling for a living. Here is how ORDERS actually works, segment by segment.
What does an ORDERS message actually contain?
An ORDERS message sits inside an EDIFACT interchange (UNB/UNZ envelope, optional UNG/UNG group), and its own structure runs like this:
- UNH — opens the message and names it: message type ORDERS, plus the directory version and release (for example D:96A or D:01B). Two partners on different directories are not speaking quite the same dialect.
- BGM — the document header: what kind of order this is (a standard order, a rush order, a blanket-order release) and the buyer's order number. That number is the thread every later message pulls on.
- DTM — dates that carry legal weight: when the order was placed, and the requested delivery date or window. A DTM read as decoration instead of a commitment is a late shipment waiting to happen.
- NAD — the parties: buyer, supplier, delivery point, invoicee. Each NAD carries a qualifier saying which role it plays; the same company can appear three times in three roles.
- LIN / PIA / IMD — the order lines themselves: the buyer's item number, additional product IDs (such as a GTIN in PIA), and the item description. LIN numbers the line; everything about that line hangs off it.
- QTY — the ordered quantity, with a qualifier distinguishing ordered quantity from, say, a previously ordered quantity it replaces.
- PRI / MOA — the price the buyer expects to pay and line amounts. ORDERS states the buyer's price; whether the seller accepts it is ORDRSP's job to say.
- RFF — references that tie the line or header to something outside the message: a contract number, a prior order, a delivery instruction reference.
- UNS / CNT / UNT — the trailer: section separation, control totals, and the segment count that proves the message arrived whole.
How is ORDERS different from the X12 850?
The business content is nearly identical — parties, lines, quantities, prices, dates. The differences that break integrations are structural:
Delimiters are declared, not fixed. EDIFACT opens with an optional UNA string that can redefine the segment terminator, element separator, and release character. A parser that hard-codes +, :, and ' will eventually meet a partner who changed them — legally.
Versions are directories, not releases of one guide. X12 partners argue about 4010 versus 5010. EDIFACT partners argue about D.96A versus D.01B, and a segment valid in one directory may not exist in the other. The version negotiation happens before mapping, or it happens as a rejection.
The acknowledgment pair is different. X12 answers an 850 with an 855 · Purchase Order Acknowledgment and a 997 · Functional Acknowledgment for syntax. EDIFACT answers ORDERS with ORDRSP for the business answer and CONTRL for the syntax receipt. Teams that map 855 logic straight onto ORDRSP miss that ORDRSP can change quantities, dates, and prices line by line — it is a negotiation, not a receipt.
What breaks most often in production?
Treating the requested delivery date as informational. In ORDERS, the DTM delivery window is part of the offer. Accepting the order in ORDRSP while silently shipping outside the window is how suppliers earn chargebacks in EDIFACT markets just as reliably as in X12 ones.
Losing the buyer's order number. BGM carries it, RFF may repeat it, and every downstream message — ORDRSP, DESADV · Despatch Advice, INVOIC · Invoice — is matched against it. Shops that key fulfillment on their own internal order ID and drop the buyer's number discover the break at invoice matching, the most expensive place to discover anything.
Hard-coding delimiters and directories. Both failures look identical from the outside — "the file would not parse" — and both are partner-specific, which is why they survive generic testing and fail on the second trading partner, not the first.
Answering with a blanket ORDRSP. An ORDRSP that accepts every line unchanged when quantities or dates have actually moved is worse than a rejection: it converts a solvable difference into a delivery dispute. Answer line by line, the way the order was written.
What should you do with an ORDERS message?
- Read the envelope first. Directory, sender, and control counts decide whether the message can be trusted before a single line is mapped.
- Preserve the buyer's references end to end. Order number, line numbers, and contract references are the join keys for the whole order-to-cash chain.
- Validate against the partner's subset, not the directory alone. Almost nobody trades raw D.01B; they trade a documented subset of it. The subset is the contract.
- Close the loop explicitly. Every ORDERS deserves an ORDRSP that says, per line, accepted, changed, or rejected — in the window the partner's agreement specifies.
FAQ
Is ORDERS the same as an 850?
In business purpose, yes: both are purchase orders. In syntax, envelope, versioning, and acknowledgment pairing, no — plan a real mapping between them, not a rename.
What directory version should a new ORDERS integration use?
The one your partner's implementation guide specifies. D.96A and D.01B are both still common in production; supporting "EDIFACT" without naming a directory is supporting neither.
What answers an ORDERS message?
ORDRSP · Order Response for the business answer, and CONTRL for syntax-level acknowledgment where the agreement calls for it.
Can one interchange carry more than one ORDERS message?
Yes. An interchange can carry multiple messages, and control totals in UNZ exist precisely so the receiver can prove all of them arrived.
Getting ORDERS parsed, answered line by line, and matched cleanly through shipment and invoice is a large part of what we built SignalEDI to handle. I'm Chris, founder of SignalEDI — if your EDIFACT partners each seem to speak a slightly different dialect, I'd genuinely like to hear how you keep the versions straight.
Top comments (1)
The point that ORDRSP is a line-by-line negotiation rather than a receipt matches what we see on the supplier side: the "accepted" reply and the real ship date often disagree, and the gap only shows up at invoice matching. The BGM/RFF thread on the buyer's order number is a good practical rule too, since every later INVOIC and DESADV hangs off it.
I'm curious about the partial-acceptance case. When a supplier answers ORDERS with an ORDRSP that changes a quantity or DTM on only some lines, how do you usually handle it downstream: auto-accept within a tolerance, or route every changed line to a human to confirm before the order is treated as confirmed? And does that rule differ for small suppliers who often don't send ORDRSP at all?
(AI-assisted comment from the HireDov team.)