Stedi maintains this guide based on public documentation from Keystone. Contact Keystone 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
ITD
130
Terms of Sale/Deferred Terms of Sale
Max use 1
Optional
DTM
150
Date/Time Reference
Max use 10
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
ITD
130
Heading > ITD
Terms of Sale/Deferred Terms of Sale
OptionalMax use >1
—
Example
If Terms Discount Percent (ITD-03) is present, then at least one of Terms Discount Due Date (ITD-04), Terms Discount Days Due (ITD-05) or Day of Month (ITD-13) is required
If Terms Discount Amount (ITD-08) is present, then at least one of Terms Discount Due Date (ITD-04), Terms Discount Days Due (ITD-05) or Day of Month (ITD-13) is required
N9 Loop
OptionalMax 1000
N9 Loop end
N1 Loop Bill-to-Party
OptionalMax 1
Variants (all may be used)
N1 Loop Ship ToN1 Loop Bill-to-Party end
N1 Loop Ship To
OptionalMax 1
Variants (all may be used)
N1 Loop Bill-to-PartyN1
310
Heading > N1 Loop Ship To > N1
Name
RequiredMax use 1
—
Example
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
N1 Loop Ship To end
Heading end
Detail
PO1 Loop
RequiredMax 100000
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
PID Loop
OptionalMax 1000
PID Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
OptionalMax 1
CTT Loop end
Summary end
EDI Samples
Sample 1
ISA*00* *00* *01*011678799 *12*0000000000 *150811*1419*U*00400*000000019*0*P*>~
GS*PO*011678799*000000000000*20150811*141900*000000019*X*004010~
ST*850*0001~
BEG*00*SA*0161713**20150811~
REF*IA*X99~
ITD************TERMS DESCRIPTION~
DTM*002*20150825~
TD5*****ROADWAY~
N9*ZZ*01~
MSG*ALL TERMS AND DISCOUNTS APPLY ATTN BARB ~
MSG*COMBINE ORDERS 555-555-5555 FAX~
MSG*CONFIRM W/ERIKA – PURCHASING FAX 555 555 5555~
MSG*PLEASE DELIVER WITHIN NORMAL LEAD-TIMES~
MSG* D.O.D. PROGRAM ACCOUNT #99999 B/O~
MSG*PACKING SLIP MUST BE IN AN ENVELOPE AND ATTACHED TO THE BILL OF LADING; THE~
MSG*BILL MUST THEN BE MARKED TO SHOW THIS AS A PIECE OF GOODS BEING SHIPPED.~
N1*BT*KEYSTONE AUTOMOTIVE OPERATIONS, INC.~
N3*44 TUNKHANNOCK AVENUE~
N4*EXETER*PA*18643*USA~
N1*ST*KEYSTONE AUTOMOTIVE OPERATIONS*92*01~
N3*SLOCUM AVENUE~
N4*EXETER*PA*18643*USA~
PO1*00001*2*EA*17.25**BP*17221*VN*A-17221~
PID*F****PART DESCRIPTION 1~
PO1*00002*2*EA*45.99**BP*17228*VN*A-17228~
PID*F****PART DESCRIPTION 2~
PO1*00003*2*EA*6.50**BP*17267*VN*A-17267~
PID*F****PART DESCRIPTION 3~
CTT*3~
SE*28*0001~
GE*1*000000019~
IEA*1*000000019~
GS*PO*011678799*000000000000*20150811*141900*000000019*X*004010~
ST*850*0001~
BEG*00*SA*0161713**20150811~
REF*IA*X99~
ITD************TERMS DESCRIPTION~
DTM*002*20150825~
TD5*****ROADWAY~
N9*ZZ*01~
MSG*ALL TERMS AND DISCOUNTS APPLY ATTN BARB ~
MSG*COMBINE ORDERS 555-555-5555 FAX~
MSG*CONFIRM W/ERIKA – PURCHASING FAX 555 555 5555~
MSG*PLEASE DELIVER WITHIN NORMAL LEAD-TIMES~
MSG* D.O.D. PROGRAM ACCOUNT #99999 B/O~
MSG*PACKING SLIP MUST BE IN AN ENVELOPE AND ATTACHED TO THE BILL OF LADING; THE~
MSG*BILL MUST THEN BE MARKED TO SHOW THIS AS A PIECE OF GOODS BEING SHIPPED.~
N1*BT*KEYSTONE AUTOMOTIVE OPERATIONS, INC.~
N3*44 TUNKHANNOCK AVENUE~
N4*EXETER*PA*18643*USA~
N1*ST*KEYSTONE AUTOMOTIVE OPERATIONS*92*01~
N3*SLOCUM AVENUE~
N4*EXETER*PA*18643*USA~
PO1*00001*2*EA*17.25**BP*17221*VN*A-17221~
PID*F****PART DESCRIPTION 1~
PO1*00002*2*EA*45.99**BP*17228*VN*A-17228~
PID*F****PART DESCRIPTION 2~
PO1*00003*2*EA*6.50**BP*17267*VN*A-17267~
PID*F****PART DESCRIPTION 3~
CTT*3~
SE*28*0001~
GE*1*000000019~
IEA*1*000000019~
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.