EDI Order Examples: EDIFACT ORDERS & X12 850

Purchase orders are the most common EDI documents in B2B transactions. Below are complete purchase order examples in both EDIFACT (ORDERS) and ANSI X12 (850) formats, representing a real manufacturing order scenario.

Scenario

Midwest Manufacturing is ordering industrial parts from Global Parts Supplier: 1,000 steel brackets, 500 mounting plates, and 2,000 gasket sets for delivery to their Toledo distribution center.

EDIFACT ORDERS Example

A complete EDIFACT purchase order with buyer/supplier details, delivery location, terms, and three line items:

EDIFACT ORDERS - Purchase Order
UNB+UNOA:2+BUYER001:ZZ+SUPPLIER001:ZZ+240301:0830+456123'
UNH+1+ORDERS:D:96A:UN'
BGM+220+PO-2024-03001+9'
DTM+137:20240301:102'
DTM+2:20240315:102'
DTM+63:20240315:102'
RFF+CT:FRAME-AGR-2024'
NAD+BY+9012345678901::9++Midwest Manufacturing Inc+5000 Industrial Blvd+Detroit+MI+48201+US'
CTA+PD+:John Smith'
COM+john.smith@midwest-mfg.com:EM'
COM+1-313-555-0100:TE'
NAD+SU+4567890123456::9++Global Parts Supplier+1200 Commerce Way+Chicago+IL+60601+US'
NAD+DP+9012345678902::9++Midwest DC - North+8000 Logistics Drive+Toledo+OH+43601+US'
CUX+2:USD:9'
TOD+3+CIF'
TDT+20++30+31'
LIN+1++PART-A1234:SA'
PIA+1+7890123456789:EN'
IMD+F++:::Steel Bracket Assembly - Heavy Duty'
QTY+21:1000:EA'
DTM+2:20240315:102'
PRI+AAA:12.50:CA'
RFF+LI:1'
LIN+2++PART-B5678:SA'
PIA+1+7890123456790:EN'
IMD+F++:::Aluminum Mounting Plate 6x8'
QTY+21:500:EA'
DTM+2:20240315:102'
PRI+AAA:8.75:CA'
RFF+LI:2'
LIN+3++PART-C9012:SA'
PIA+1+7890123456791:EN'
IMD+F++:::Rubber Gasket Set - Industrial'
QTY+21:2000:EA'
DTM+2:20240320:102'
PRI+AAA:2.25:CA'
RFF+LI:3'
UNS+S'
MOA+79:21375.00'
CNT+2:3'
UNT+39+1'
UNZ+1+456123'

Header Segments

  • BGM+220 - Document type 220 = Purchase Order
  • DTM+137 - Order date: 2024-03-01
  • DTM+2 - Requested delivery: 2024-03-15
  • DTM+63 - Latest delivery: 2024-03-15
  • RFF+CT - Contract reference

Party Information

  • NAD+BY - Buyer: Midwest Manufacturing, Detroit MI
  • CTA+PD - Contact: John Smith
  • COM - Email and phone contact details
  • NAD+SU - Supplier: Global Parts Supplier, Chicago IL
  • NAD+DP - Delivery Point: Midwest DC, Toledo OH

Terms and Transport

  • CUX+2:USD - Currency: US Dollars
  • TOD+3+CIF - Terms of Delivery: CIF (Cost, Insurance, Freight)
  • TDT+20 - Transport mode: Road

Line Items

LinePart No.DescriptionQtyPriceAmount
1PART-A1234Steel Bracket Assembly1,000$12.50$12,500.00
2PART-B5678Aluminum Mounting Plate500$8.75$4,375.00
3PART-C9012Rubber Gasket Set2,000$2.25$4,500.00
Total$21,375.00

X12 850 Purchase Order Example

The same order in ANSI X12 format (850 transaction set), commonly used in North America:

ANSI X12 850 - Purchase Order
ISA*00*          *00*          *ZZ*BUYER001       *ZZ*SUPPLIER001    *240301*0830*U*00401*000456123*0*P*>~
GS*PO*BUYER001*SUPPLIER001*20240301*0830*456123*X*004010~
ST*850*0001~
BEG*00*SA*PO-2024-03001**20240301~
REF*CT*FRAME-AGR-2024~
PER*BD*John Smith*TE*1-313-555-0100*EM*john.smith@midwest-mfg.com~
FOB*PP*OR*CIF~
DTM*002*20240315~
N1*BY*Midwest Manufacturing Inc*92*BUYER001~
N3*5000 Industrial Blvd~
N4*Detroit*MI*48201*US~
N1*ST*Midwest DC - North*92*DC001~
N3*8000 Logistics Drive~
N4*Toledo*OH*43601*US~
N1*VN*Global Parts Supplier*92*SUPPLIER001~
N3*1200 Commerce Way~
N4*Chicago*IL*60601*US~
PO1*1*1000*EA*12.50**VP*PART-A1234*UP*7890123456789~
PID*F****Steel Bracket Assembly - Heavy Duty~
DTM*002*20240315~
PO1*2*500*EA*8.75**VP*PART-B5678*UP*7890123456790~
PID*F****Aluminum Mounting Plate 6x8~
DTM*002*20240315~
PO1*3*2000*EA*2.25**VP*PART-C9012*UP*7890123456791~
PID*F****Rubber Gasket Set - Industrial~
DTM*002*20240320~
CTT*3*3500~
AMT*TT*21375.00~
SE*30*0001~
GE*1*456123~
IEA*1*000456123~

Key X12 Segments

  • BEG - Beginning segment with PO number and type
  • REF - Reference numbers (contract, etc.)
  • PER - Contact information
  • FOB - Terms of sale (CIF)
  • N1 Loop - Party identification (BY, ST, VN)
  • PO1 - Line item detail
  • CTT - Transaction totals (line count)
  • AMT - Total amount

Order Document Codes

Order TypeEDIFACT BGMX12 BEG01Use
Original Order22000New purchase order
Order Change23001Modify existing order
Blanket Order221BEStanding order with releases

Related EDI Examples

Related Resources

Format Your EDI Orders

Paste your ORDERS or 850 purchase order message into our free formatter for instant beautification.

Open EDIFACT Formatter →