Stedi maintains this guide based on public documentation from AutoAnything. Contact AutoAnything 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
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
—
- DS
- Dropship
- KN
- Purchase Order
- OS
- Special Order
- SA
- Stand-alone Order
REF
050
Heading > REF
Reference Identification
Max use >1
—
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
TD5
240
Heading > TD5
Carrier Details (Routing Sequence/Transit Time)
RequiredMax use 12
—
Example
If Identification Code Qualifier (TD5-02) is present, then Identification Code (TD5-03) is required
If Location Qualifier (TD5-07) is present, then Location Identifier (TD5-08) is required
—
- 2
- Standard Carrier Alpha Code (SCAC)
- ZZ
- Mutually Defined
N9 Loop
Max 1000
N9
295
Heading > N9 Loop > N9
Reference Identification
RequiredMax use 1
—
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
N9 Loop end
N1 Loop
Max 200
N1
310
Heading > N1 Loop > 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
N4
340
Heading > N1 Loop > N4
Geographic Location
RequiredMax use >1
—
Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
PER
360
Heading > N1 Loop > PER
Administrative Communications Contact
Max use >1
—
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
N1 Loop 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 Basis of Unit Price Code (PO1-05) is present, then Unit Price (PO1-04) is required
If either Product/Service ID Qualifier (PO1-06) or Product/Service ID (PO1-07) is present, then the other is required
If either Product/Service ID Qualifier (PO1-10) or Product/Service ID (PO1-11) is present, then the other is required
PID Loop
Max 1000
PID
050
Detail > PO1 Loop > PID Loop > PID
Product/Item Description
RequiredMax use 1
—
Example
If Source Subqualifier (PID-07) is present, then Agency Qualifier Code (PID-03) is required
PID Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
Max 1
CTT
010
Summary > CTT Loop > CTT
Transaction Totals
RequiredMax use 1
—
Example
If either Weight (CTT-03) or Unit or Basis for Measurement Code (CTT-04) is present, then the other is required
If either Volume (CTT-05) or Unit or Basis for Measurement Code (CTT-06) is present, then the other is required
CTT Loop end
Summary end
EDI Samples
Sampel from AutoAnything
ISA*00* *00* *12*9876543210 *01*123456789 *090811*1559*U*00401*000005414*0*T*^~
GS*PO*9876543210*123456789*20090811*1559*000005324*X*004010~
ST*850*000005331~
BEG*00*SA*12345*00*20090602*4444*ZZ**FD~
REF*VR*123456*VENDOR NUMBER~
REF*PG*ABC~
REF*ZZ*1000000924283*Retailer ID~
DTM*038*20201219*1200~
TD5*Z*2*FEDX*M*FED EX**ZZ*FECG~
N9*ZZ*SPECIAL INSTRUCTIONS*INSTRUCTIONS~
MSG*PURCHASE ORDER NOTES HERE~
MSG*PURCHASE ORDER NOTES HERE TOO~
N1*ST*SHIP TO NAME*92*SHIP TO CODE~
N3*456 FIRST AVE~
N4*ANYWHERE*CA*99999*US*94*0001~
PER*DC*DELIVERY CONTACT*TE*8888888888*EM*EMAIL.COM~
PO1*1*8*EA*2.22*PE*SK*STOCK KEEPING UNIT***UP*987654321123~
PID*F**ZZ**PART 1 DESCRIPTION~
DTM*010*20201218~
CTT*1*8~
SE*19*000005331~
GE*1*000005324~
IEA*1*000005414~
GS*PO*9876543210*123456789*20090811*1559*000005324*X*004010~
ST*850*000005331~
BEG*00*SA*12345*00*20090602*4444*ZZ**FD~
REF*VR*123456*VENDOR NUMBER~
REF*PG*ABC~
REF*ZZ*1000000924283*Retailer ID~
DTM*038*20201219*1200~
TD5*Z*2*FEDX*M*FED EX**ZZ*FECG~
N9*ZZ*SPECIAL INSTRUCTIONS*INSTRUCTIONS~
MSG*PURCHASE ORDER NOTES HERE~
MSG*PURCHASE ORDER NOTES HERE TOO~
N1*ST*SHIP TO NAME*92*SHIP TO CODE~
N3*456 FIRST AVE~
N4*ANYWHERE*CA*99999*US*94*0001~
PER*DC*DELIVERY CONTACT*TE*8888888888*EM*EMAIL.COM~
PO1*1*8*EA*2.22*PE*SK*STOCK KEEPING UNIT***UP*987654321123~
PID*F**ZZ**PART 1 DESCRIPTION~
DTM*010*20201218~
CTT*1*8~
SE*19*000005331~
GE*1*000005324~
IEA*1*000005414~
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.