Stedi maintains this guide based on public documentation from Simplot. Contact Simplot for official EDI specifications. To report any errors in this guide, please contact us.
X12 850 Purchase Order
—
Delimiters
- ~ Segment
- * Element
- > Component
Powered by
Build EDI implementation guides at stedi.com
Overview
ISA
-
Interchange Control Header
Max use 1
Required
GS
-
Functional Group Header
Max use 1
Required
heading
ST
010
Transaction Set Header
Max use 1
Required
BEG
020
Beginning Segment for Purchase Order
Max use 1
Required
REF
050
Reference Identification
Max use 1
Required
FOB
080
F.O.B. Related Instructions
Max use 1
Optional
DTM
150
Delivery Requested
Max use 1
Optional
DTM
150
Requested Ship_Available
Max use 1
Optional
TD5
240
Carrier Details (Routing Sequence/Transit Time)
Max use 12
Optional
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
—
- 00
- No Authorization Information Present (No Meaningful Information in I02)
—
- 00
- No Security Information Present (No Meaningful Information in I04)
—
- U
- U.S. EDI Community of ASC X12, TDCC, and UCS
—
- 00401
- Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
—
- 0
- No Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
DTM
150
Heading > DTM
Delivery Requested
OptionalMax use 1
—
Example
Variants (all may be used)
DTMRequested Ship_AvailableDTM
150
Heading > DTM
Requested Ship_Available
OptionalMax use >1
—
Example
Variants (all may be used)
DTMDelivery RequestedTD5
240
Heading > TD5
Carrier Details (Routing Sequence/Transit Time)
OptionalMax use 12
—
Example
If Location Qualifier (TD5-07) is present, then Location Identifier (TD5-08) is required
—
- H
- Customer Pickup
- M
- Motor (Common Carrier)
- R
- Rail
- S
- Ocean
N9 Loop
OptionalMax >1
N9 Loop end
N1
310
Heading > Bill-to-Party > N1
Name
RequiredMax use 1
—
Example
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
—
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 91
- Assigned by Seller or Seller's Agent
- 92
- Assigned by Buyer or Buyer's Agent
- ZZ
- Mutually Defined
N1 Bill-to-Party end
N1 Ship From
OptionalMax 1
N1
310
Heading > Ship From > N1
Name
RequiredMax use 1
—
Example
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
—
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 91
- Assigned by Seller or Seller's Agent
- 92
- Assigned by Buyer or Buyer's Agent
N1 Ship From end
N1 Ship To
OptionalMax 1
N1
310
Heading > Ship To > N1
Name
RequiredMax use 1
—
Example
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
—
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 91
- Assigned by Seller or Seller's Agent
- 92
- Assigned by Buyer or Buyer's Agent
N1 Ship To end
Heading end
Detail
PO1 Loop
RequiredMax >1
PO1
010
Detail > PO1 Loop > PO1
Baseline Item Data
RequiredMax use 1
—
Example
If Unit or Basis for Measurement Code (PO1-03) is present, then Quantity Ordered (PO1-02) is required
If either Product/Service ID Qualifier (PO1-08) or Product/Service ID (PO1-09) is present, then the other is required
If either Product/Service ID Qualifier (PO1-06) or Product/Service ID (PO1-07) is present, then the other is required
—
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- U.P.C./EAN Shipping Container Code (1-2-5-5-1)
PID Loop
OptionalMax >1
PID Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
OptionalMax >1
CTT Loop end
Summary end
EDI Samples
Sample
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231120*0418*U*00401*000000001*0*T*>~
GS*PO*SENDERGS*RECEIVERGS*20231120*041818*000000001*X*004010~
ST*850*0001~
BEG*00*NE*123456789**20131119~
REF*CR*123456789~
FOB*CC~
DTM*002*20131213~
DTM*010*20131206~
TD5****H~
N9*ZZ~
MSG*SEALED OR LOCKED TRAILER REQUIRED FOR DELIVERY~
N1*BT*Bill to Name*ZZ*1234567~
N3*Address~
N4*City*ST*12345~
N1*ST*Ship to Name*9*123456789123~
N3*Address~
N4*City*ST*12345~
N1*SF*Ship From Name*9*123456~
N3*Address~
N4*City*ST*12345~
PO1*1*315*CA*18.9**UK*10071179009894*PI*1234560~
PID*F****POTATO WEDGES~
PO1*2*819*CA*18.12**UK*10071179017073*PI*028259~
PID*F****POTATO BITES~
CTT*2*1134~
SE*24*0001~
GE*1*000000001~
IEA*1*000000001~
GS*PO*SENDERGS*RECEIVERGS*20231120*041818*000000001*X*004010~
ST*850*0001~
BEG*00*NE*123456789**20131119~
REF*CR*123456789~
FOB*CC~
DTM*002*20131213~
DTM*010*20131206~
TD5****H~
N9*ZZ~
MSG*SEALED OR LOCKED TRAILER REQUIRED FOR DELIVERY~
N1*BT*Bill to Name*ZZ*1234567~
N3*Address~
N4*City*ST*12345~
N1*ST*Ship to Name*9*123456789123~
N3*Address~
N4*City*ST*12345~
N1*SF*Ship From Name*9*123456~
N3*Address~
N4*City*ST*12345~
PO1*1*315*CA*18.9**UK*10071179009894*PI*1234560~
PID*F****POTATO WEDGES~
PO1*2*819*CA*18.12**UK*10071179017073*PI*028259~
PID*F****POTATO BITES~
CTT*2*1134~
SE*24*0001~
GE*1*000000001~
IEA*1*000000001~
Stedi is a registered trademark of Stedi, Inc. All names, logos, and brands of third parties listed on this page are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.