← All messages  /  ORDERS
ORDERS

Purchase Order

D01B

What is the ORDERS message used for?

  • The ORDERS page serves as an instant reference for systems analysts, developers, and EDI operations teams.
  • It brings together the message business role, associated segment breakdown, and a live example in one place.
  • Highly valuable during trading partner onboarding, mapping verification, incident triage, and technical training.

The ORDERS message represents a commercial purchase order. It is one of the most widely used EDIFACT message types in retail, automotive and manufacturing. The buyer uses it to communicate ordered products, quantities, prices and delivery terms to the supplier.

Usage areas

  • Retail: supermarket and department store orders
  • Automotive: just-in-time parts orders
  • Manufacturing: raw material and component orders
Usage scenarios:
Retail (FMCG), automotive JIT orders, manufacturing component orders, logistics.
Segment Name Mandatory Max Repeat
UNH Message Header Mandatory 1
BGM Beginning of Message Mandatory 1
DTM Date/Time/Period Mandatory 35
PAI Payment instructions Optional 1
ALI Additional information Optional 5
IMD Item Description Optional 999
FTX Free Text Optional N
GIR Related identification numbers Optional 1000
RFF Reference Mandatory 5
NAD Name and Address Mandatory 1
LOC Place/Location Identification Mandatory 99
FII Financial institution information Optional 5
DOC Document/message details Mandatory 99
CTA Contact Information Mandatory 1
COM Communication Contact Optional 5
TAX Duty/Tax/Fee Details Mandatory 1
MOA Monetary Amount Mandatory 99
CUX Currencies Mandatory 1
PCD Percentage details Mandatory 5
PAT Payment Terms Basis Mandatory 1
RJL Accounting journal identification Optional 99
TDT Transport Information Mandatory 1
TOD Terms of Delivery or Transport Mandatory 1
PAC Package Mandatory 1
MEA Measurements Optional 99
PCI Package identification Mandatory 1
GIN Goods Identity Number Optional 1000
EQD Equipment details Mandatory 1
HAN Handling instructions Optional 5
SCC Scheduling Conditions Mandatory 1
QTY Quantity Mandatory 99
APR Additional price information Mandatory 99
RNG Range details Optional 1
ALC Allowance or Charge Mandatory 1
RTE Rate details Mandatory 1
RCS Requirements and conditions Mandatory 1
DGS Dangerous goods Mandatory 1
LIN Line Item Mandatory 1
PIA Additional Product ID Optional 25
GIS General indicator Optional 99
QVR Quantity variances Optional 1
MTD Maintenance operation details Optional 99
CCI Characteristic/class id Mandatory 1
CAV Characteristic value Optional 10
PRI Price Details Mandatory 1
STG Stages Mandatory 1
UNS Section Control Mandatory 1
CNT Control Total Optional 10
UNT Message Trailer Mandatory 1
ORDERS – Sample message (D01B) Download (.edi) Test in validator
UNA:+.? '
UNB+UNOC:3+BUYER:14+SUPPLIER:14+260310:0800+00001'
UNH+1+ORDERS:D:01B:UN'
BGM+220+ORD-2026-0310+9'
DTM+137:20260310:102'
DTM+2:20260315:102'
RFF+CR:CONTRACT-2026'
NAD+BY+1234567890123::9++ACME Kft++Budapest+1051+HU'
NAD+SE+9876543210123::9++Supplier GmbH++Berlin+10115+DE'
CUX+2:EUR:4'
LIN+1++4000862141404:EN'
IMD+F++:::Stainless Steel Bolt M8x30'
QTY+21:1000:PCE'
PRI+AAA:1.25'
LIN+2++4000862141411:EN'
IMD+F++:::Hex Nut M8'
QTY+21:2000:PCE'
PRI+AAA:0.45'
UNS+S'
CNT+2:2'
UNT+20+1'
UNZ+1+00001'

The sample above can be validated directly in the EDIFACT Validator – Online Syntax Checker.