Stedi maintains this guide based on public documentation from Grainger. Contact Grainger 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
Optional
PER
060
Administrative Communications Contact
Max use 3
Required
FOB
080
F.O.B. Related Instructions
Max use 1
Required
ITD
130
Terms of Sale/Deferred Terms of Sale
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
PER
060
Heading > PER
Administrative Communications Contact
RequiredMax use 3
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
If either Communication Number Qualifier (PER-07) or Communication Number (PER-08) is present, then the other is required
TD5
240
Heading > TD5
Carrier Details (Routing Sequence/Transit Time)
OptionalMax use 12
—
Example
If Identification Code Qualifier (TD5-02) is present, then Identification Code (TD5-03) is required
N9 Loop
RequiredMax >1
N9 Loop end
N1 Ordered By end
N1 Ship To
RequiredMax 1
N1 Ship To end
N1 Vendor
RequiredMax 1
N1 Vendor end
Heading end
Detail
PO1 Loop
RequiredMax >1
PO1
010
Detail > PO1 Loop > PO1
Baseline Item Data
RequiredMax use 1
—
Example
If either Product/Service ID Qualifier (PO1-10) or Product/Service ID (PO1-11) is present, then the other is required
If either Product/Service ID Qualifier (PO1-12) or Product/Service ID (PO1-13) is present, then the other is required
If either Product/Service ID Qualifier (PO1-14) or Product/Service ID (PO1-15) is present, then the other is required
If either Product/Service ID Qualifier (PO1-16) or Product/Service ID (PO1-17) is present, then the other is required
If either Product/Service ID Qualifier (PO1-18) or Product/Service ID (PO1-19) is present, then the other is required
—
Usage notes
—
- PL
- Purchaser's Order Line Number—
—
Usage notes
—
- UD
- U.P.C./EAN Consumer Package Code (2-5-5)
PID Loop
RequiredMax >1
PID Loop end
SCH Loop
RequiredMax >1
SCH Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
RequiredMax >1
CTT Loop end
Summary end
EDI Samples
Grainger FindMRO Purchase Order
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231030*0227*U*00401*000000001*0*T*>~
GS*PO*SENDERGS*RECEIVERGS*20231030*022717*000000001*X*004010~
ST*850*000000002~
BEG*00*DR*4810000000*SALES ORDER NUMBER*20041001~
REF*IA*20001234~
REF*IT*1234567890~
REF*CR*1122334455~
REF*DI*2342342344~
REF*DP*4564564566~
REF*RE*7897897899~
PER*BD*GRAINGER BUYER NAME*TE*BUYER PHONE NUMBER*FX*BUYER FAX NUMBER*EM*BUYER EMAIL ADDRESS~
FOB*PO*DE***FOB~
ITD************PAYMENT TERMS~
TD5**ZZ*25811**UPS GROUND~
N9*L1**REFER TO MSG SEGMENT ~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
N1*OB*GRAINGER~
N1*VN*SUPPLIER NAME~
N1*ST*GRAINGER FINDMRO*92*TPSO~
N2*ATTENTION NAME 1*ATTENTION NAME 2~
N3*SHIP TO ADDRESS 1*SHIP TO ADDRESS2~
N4*CITY*CA*90210*US~
PO1*00001*10*EA*1.00**CB*GRAINGER SOURCING (FINDMRO) STOCK NUMBER*VN*VENDOR ITEM NUMBER*CP*GRAINGER CUSTOMER MATERIAL NUMBER*PL*GRAINGER CUSTOMER PURCHASE ORDER LINE NUMBER*MN*MANUFACTURER MODEL NUMBER*MG*MANUFACTURERS PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
PO1*00002*10*EA*1.00**CB* GRAINGER SOURCING (FINDMRO) STOCK NUMBER*VN*VENDOR ITEM NUMBER*CP*GRAINGER CUSTOMER MATERIAL NUMBER*PL*GRAINGER CUSTOMER PURCHASE ORDER LINE NUMBER*MN*MANUFACTURER MODEL NUMBER*MG*MANUFACTURERS PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
CTT*2~
AMT*TT*2000~
SE*35*000000002~
GE*1*000000001~
IEA*1*000000001~
GS*PO*SENDERGS*RECEIVERGS*20231030*022717*000000001*X*004010~
ST*850*000000002~
BEG*00*DR*4810000000*SALES ORDER NUMBER*20041001~
REF*IA*20001234~
REF*IT*1234567890~
REF*CR*1122334455~
REF*DI*2342342344~
REF*DP*4564564566~
REF*RE*7897897899~
PER*BD*GRAINGER BUYER NAME*TE*BUYER PHONE NUMBER*FX*BUYER FAX NUMBER*EM*BUYER EMAIL ADDRESS~
FOB*PO*DE***FOB~
ITD************PAYMENT TERMS~
TD5**ZZ*25811**UPS GROUND~
N9*L1**REFER TO MSG SEGMENT ~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
N1*OB*GRAINGER~
N1*VN*SUPPLIER NAME~
N1*ST*GRAINGER FINDMRO*92*TPSO~
N2*ATTENTION NAME 1*ATTENTION NAME 2~
N3*SHIP TO ADDRESS 1*SHIP TO ADDRESS2~
N4*CITY*CA*90210*US~
PO1*00001*10*EA*1.00**CB*GRAINGER SOURCING (FINDMRO) STOCK NUMBER*VN*VENDOR ITEM NUMBER*CP*GRAINGER CUSTOMER MATERIAL NUMBER*PL*GRAINGER CUSTOMER PURCHASE ORDER LINE NUMBER*MN*MANUFACTURER MODEL NUMBER*MG*MANUFACTURERS PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
PO1*00002*10*EA*1.00**CB* GRAINGER SOURCING (FINDMRO) STOCK NUMBER*VN*VENDOR ITEM NUMBER*CP*GRAINGER CUSTOMER MATERIAL NUMBER*PL*GRAINGER CUSTOMER PURCHASE ORDER LINE NUMBER*MN*MANUFACTURER MODEL NUMBER*MG*MANUFACTURERS PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
CTT*2~
AMT*TT*2000~
SE*35*000000002~
GE*1*000000001~
IEA*1*000000001~
Grainger Parts Replenishment Purchase Order
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231030*0227*U*00401*000000001*0*T*>~
GS*PO*SENDERGS*RECEIVERGS*20231030*022724*000000001*X*004010~
ST*850*000000002~
BEG*00*NE*4400000000**20041001~
REF*IA*Supplier vend # 2000+4 digits~
PER*BD*GRAINGER BUYER NAME*TE*BUYER PHONE NUMBER*FX*BUYER FAX NUMBER*EM*BUYER EMAIL ADDRESS~
FOB*PO*DE***FOB~
ITD************PAYMENT TERMS~
N9*L1**REFER TO MSG SEGMENT ~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
N1*OB*GRAINGER~
N1*VN*SUPPLIER NAME~
N1*ST*GRAINGER PARTS*92*970~
N2*ATTENTION NAME 1*ATTENTION NAME 2~
N3*SHIP TO ADDRESS 1*SHIP TO ADDRESS2~
N4*CITY*00*ZIPCODE*000~
PO1*00001*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER*******MG*MANUFACTURER PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
PO1*00002*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER*******MG*MANUFACTURER PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
CTT*2~
AMT*TT*2000~
SE*29*000000002~
GE*1*000000001~
IEA*1*000000001~
GS*PO*SENDERGS*RECEIVERGS*20231030*022724*000000001*X*004010~
ST*850*000000002~
BEG*00*NE*4400000000**20041001~
REF*IA*Supplier vend # 2000+4 digits~
PER*BD*GRAINGER BUYER NAME*TE*BUYER PHONE NUMBER*FX*BUYER FAX NUMBER*EM*BUYER EMAIL ADDRESS~
FOB*PO*DE***FOB~
ITD************PAYMENT TERMS~
N9*L1**REFER TO MSG SEGMENT ~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
N1*OB*GRAINGER~
N1*VN*SUPPLIER NAME~
N1*ST*GRAINGER PARTS*92*970~
N2*ATTENTION NAME 1*ATTENTION NAME 2~
N3*SHIP TO ADDRESS 1*SHIP TO ADDRESS2~
N4*CITY*00*ZIPCODE*000~
PO1*00001*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER*******MG*MANUFACTURER PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
PO1*00002*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER*******MG*MANUFACTURER PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
CTT*2~
AMT*TT*2000~
SE*29*000000002~
GE*1*000000001~
IEA*1*000000001~
Grainger Replenishment Purchase Order
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231030*0227*U*00401*000000001*0*T*>~
GS*PO*SENDERGS*RECEIVERGS*20231030*022730*000000001*X*004010~
ST*850*000000001~
BEG*00*NE*4600000000**20041001~
REF*IA*supplier vend # 2000+4 digits~
PER*BD*GRAINGER BUYER NAME*TE*BUYER PHONE NUMBER*FX*BUYER FAX NUMBER*EM*BUYER EMAIL ADDRESS~
FOB*PO*DE***FOB~
ITD************PAYMENT TERMS~
N9*L1**REFER TO MSG SEGMENT ~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
N1*OB*GRAINGER~
N1*VN*SUPPLIER NAME~
N1*ST*GRAINGER*92*001~
N2*ATTENTION NAME 1*ATTENTION NAME 2~
N3*SHIP TO ADDRESS 1*SHIP TO ADDRESS2~
N4*CITY*00*ZIPCODE*000~
PO1*00001*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
PO1*00002*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
CTT*2~
AMT*TT*2000~
SE*29*000000001~
GE*1*000000001~
IEA*1*000000001~
GS*PO*SENDERGS*RECEIVERGS*20231030*022730*000000001*X*004010~
ST*850*000000001~
BEG*00*NE*4600000000**20041001~
REF*IA*supplier vend # 2000+4 digits~
PER*BD*GRAINGER BUYER NAME*TE*BUYER PHONE NUMBER*FX*BUYER FAX NUMBER*EM*BUYER EMAIL ADDRESS~
FOB*PO*DE***FOB~
ITD************PAYMENT TERMS~
N9*L1**REFER TO MSG SEGMENT ~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
N1*OB*GRAINGER~
N1*VN*SUPPLIER NAME~
N1*ST*GRAINGER*92*001~
N2*ATTENTION NAME 1*ATTENTION NAME 2~
N3*SHIP TO ADDRESS 1*SHIP TO ADDRESS2~
N4*CITY*00*ZIPCODE*000~
PO1*00001*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
PO1*00002*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
CTT*2~
AMT*TT*2000~
SE*29*000000001~
GE*1*000000001~
IEA*1*000000001~
Third Party Purchase Order
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231030*0228*U*00401*000000001*0*T*>~
GS*PO*SENDERGS*RECEIVERGS*20231030*022805*000000001*X*004010~
ST*850*000000002~
BEG*00*DR*4600000000*GRAINGER SALES ORDER NUMBER*20041001~
REF*IA*20001234~
REF*IT*1234567890~
REF*CR*1122334455~
REF*DI*2342342344~
REF*DP*4564564566~
REF*RE*7897897899~
PER*BD*GRAINGER BUYER NAME*TE*BUYER PHONE NUMBER*FX*BUYER FAX NUMBER*EM*BUYER EMAIL ADDRESS~
FOB*PO*DE***FOB~
ITD************PAYMENT TERMS~
TD5**ZZ*25811**UPS GROUND~
N9*L1**REFER TO MSG SEGMENT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
N1*OB*GRAINGER~
N1*VN*SUPPLIER NAME~
N1*ST*GRAINGER CUSTOMER*92*TPSO~
N2*ATTENTION NAME 1*ATTENTION NAME 2~
N3*SHIP TO ADDRESS 1*SHIP TO ADDRESS2~
N4*CITY*00*ZIPCODE*000~
PO1*00001*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER*CP*GRAINGER CUSTOMER MATERIAL NUMBER*PL*GRAINGER CUSTOMER PURCHASE ORDER LINE NUMBER*MN*MANUFACTURER MODEL NUMBER*MG*MANUFACTURERS PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
PO1*00002*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER*CP*GRAINGER CUSTOMER MATERIAL NUMBER*PL*GRAINGER CUSTOMER PURCHASE ORDER LINE NUMBER*MN*MANUFACTURER MODEL NUMBER*MG*MANUFACTURERS PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
CTT*2~
AMT*TT*2000~
SE*35*000000002~
GE*1*000000001~
IEA*1*000000001~
GS*PO*SENDERGS*RECEIVERGS*20231030*022805*000000001*X*004010~
ST*850*000000002~
BEG*00*DR*4600000000*GRAINGER SALES ORDER NUMBER*20041001~
REF*IA*20001234~
REF*IT*1234567890~
REF*CR*1122334455~
REF*DI*2342342344~
REF*DP*4564564566~
REF*RE*7897897899~
PER*BD*GRAINGER BUYER NAME*TE*BUYER PHONE NUMBER*FX*BUYER FAX NUMBER*EM*BUYER EMAIL ADDRESS~
FOB*PO*DE***FOB~
ITD************PAYMENT TERMS~
TD5**ZZ*25811**UPS GROUND~
N9*L1**REFER TO MSG SEGMENT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
MSG*FREE FORM MESSAGE TEXT~
N1*OB*GRAINGER~
N1*VN*SUPPLIER NAME~
N1*ST*GRAINGER CUSTOMER*92*TPSO~
N2*ATTENTION NAME 1*ATTENTION NAME 2~
N3*SHIP TO ADDRESS 1*SHIP TO ADDRESS2~
N4*CITY*00*ZIPCODE*000~
PO1*00001*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER*CP*GRAINGER CUSTOMER MATERIAL NUMBER*PL*GRAINGER CUSTOMER PURCHASE ORDER LINE NUMBER*MN*MANUFACTURER MODEL NUMBER*MG*MANUFACTURERS PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
PO1*00002*10*EA*1.00**CB*GRAINGER STOCK NUMBER*VN*VENDOR ITEM NUMBER*CP*GRAINGER CUSTOMER MATERIAL NUMBER*PL*GRAINGER CUSTOMER PURCHASE ORDER LINE NUMBER*MN*MANUFACTURER MODEL NUMBER*MG*MANUFACTURERS PART NUMBER~
PID*F****ITEM DESCRIPTION~
MSG*FREE FORM MESSAGE TEXT~
SCH*10*EA***010*20041010~
CTT*2~
AMT*TT*2000~
SE*35*000000002~
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.