Stedi maintains this guide based on public documentation from Fineline. Contact Fineline 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
CUR
040
Currency
Max use 1
Optional
REF
050
Reference Identification
Max use 6
Optional
FOB
080
F.O.B. Related Instructions
Max use 1
Optional
ITD
130
Terms of Sale/Deferred Terms of Sale
Max use 1
Optional
DTM
150
Date/Time Reference
Max use 2
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
REF
050
Heading > REF
Reference Identification
OptionalMax use 6
—
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
—
- 8X
- Transaction Category or Type
- AAY
- Accounting Period Reference
- JY
- Origin of Shipment Harmonized-Based Code
- LSD
- Logistics Support Documentation Type Code
- PC
- Production Code
- XY
- Other Unlisted Type of Reference Number
FOB
080
Heading > FOB
F.O.B. Related Instructions
OptionalMax use 1
—
Example
If Description (FOB-03) is present, then Location Qualifier (FOB-02) is required
N1 Loop
OptionalMax 3
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
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-14) or Product/Service ID (PO1-15) 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
If either Product/Service ID Qualifier (PO1-20) or Product/Service ID (PO1-21) is present, then the other is required
If either Product/Service ID Qualifier (PO1-22) or Product/Service ID (PO1-23) is present, then the other is required
—
- DM
- Committee for Uniform Security Identification Procedure Number (CUSIP) Number
CTP Loop
OptionalMax 2
CTP Loop end
PID Loop
OptionalMax 2
PID Loop end
REF
100
Detail > PO1 Loop > REF
Reference Identification
OptionalMax use 15
—
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
—
- CR
- Customer Reference Number
- HTS
- KE
- Ending Kanban Serial Number
- MO
- Manufacturing Operation Number
- NS
- National Stock Number
- PC1
- PC2
- PC3
- PC4
- PC5
- PC9
- SE
- Serial Number
- SH
- Sender Defined Clause
N1 Loop
OptionalMax 3
N1
350
Detail > PO1 Loop > 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
N1 Loop end
SLN Loop
OptionalMax 1000
SLN
470
Detail > PO1 Loop > SLN Loop > SLN
Subline Item Detail
RequiredMax use 1
—
Example
If either Quantity (SLN-04) or Composite Unit of Measure (SLN-05) is present, then the other is required
If Basis of Unit Price Code (SLN-07) is present, then Unit Price (SLN-06) is required
If Relationship Code (SLN-08) is present, then Unit Price (SLN-06) is required
If either Product/Service ID Qualifier (SLN-09) or Product/Service ID (SLN-10) is present, then the other is required
If either Product/Service ID Qualifier (SLN-11) or Product/Service ID (SLN-12) is present, then the other is required
If either Product/Service ID Qualifier (SLN-13) or Product/Service ID (SLN-14) is present, then the other is required
If either Product/Service ID Qualifier (SLN-15) or Product/Service ID (SLN-16) is present, then the other is required
If either Product/Service ID Qualifier (SLN-19) or Product/Service ID (SLN-20) is present, then the other is required
If either Product/Service ID Qualifier (SLN-21) or Product/Service ID (SLN-22) is present, then the other is required
If either Product/Service ID Qualifier (SLN-23) or Product/Service ID (SLN-24) is present, then the other is required
OptionalMax use 1
To identify a composite unit of measure
(See Figures Appendix for examples of use)
—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
—
- DM
- Committee for Uniform Security Identification Procedure Number (CUSIP) Number
SLN Loop end
AMT Loop
OptionalMax 3
AMT Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
OptionalMax 1
CTT Loop end
Summary end
EDI Samples
Test 850
ISA*00* *00* *01*147844419 *ZZ*10116 *220906*1230*U*00401*000000002*0*T*>~
GS*PO*147844419*10116*20220906*1230*2*X*004010~
ST*850*0001~
BEG*05*SA*1053295**20211019~
CUR*BY*USD~
REF*AAY*ALL~
REF*8X*DIR~
REF*XY*AOP 12.21~
REF*JY*CN~
REF*LSD*H2O*SHIP IN BY BOAT~
REF*PC*CONFIRM~
FOB*MX*ZZ*FOB~
ITD*01****45*******30/15/55%~
DTM*010*20220328~
DTM*001*20220523~
N1*VN*Test CO LTD*92*G0078~
N3*NO 1-2E*West VILLAGE STREET~
N4*ORANGE***CN~
PO1*1*252*PR*34.85*PE*ST*34343*CL*001*****DM*M***PT*CP*PO*35334*LI*4~
CTP**RTL*10.00~
CTP**PBR*6.00000~
PID*F*08***3434~
PID*F*73***BLACK~
PO4*252~
REF*KE*3r34*3434~
REF*HTS*6402.99.3165~
REF*MO*H2O~
REF*SH*BOA~
REF*PC1*234234*4234234~
REF*PC2*11*23423~
REF*PC3*20*4234~
REF*PC4*AW*2323~
REF*PC5*423234*2333242~
REF*PC9*423-01*LOT32423TA-01~
REF*SE*ALL*4234~
REF*NS*50315~
REF*CR*0~
DTM*037*20220411~
DTM*038*20220418~
DTM*AAG*20220613~
DTM*825*20220523~
DTM*110*20220328~
N1*MP*ORANGE*92*G00781~
N3*ORANGE*JUNE STREET~
N4*ORANGE***CN~
N1*ST*CATALOG*92*02~
N3*C/O DMG*205 MEADOW ROAD~
N4*EDISON*NJ*088176033*US~
N1*AG*GUOLONG SHOES CO LTD*92*G0078~
N3*NO 1-2, 6TH, COMMUNE*QING HU VILLAGE, JUN HE STREET~
N4*GUANGZHOU***CN~
SLN*1**I*6*PR*34.85*CT*I*UP*235223*ST*24324*IZ*5*CL*001***DM*M*BO*2342*NS*50315~
PO4*6~
AMT*1*8782.20~
AMT*ID*2.25660000~
AMT*AY*37.9100000~
CTT*3~
AMT*2*24046.50~
SE*57*0001~
GE*1*2~
IEA*1*000000002~
GS*PO*147844419*10116*20220906*1230*2*X*004010~
ST*850*0001~
BEG*05*SA*1053295**20211019~
CUR*BY*USD~
REF*AAY*ALL~
REF*8X*DIR~
REF*XY*AOP 12.21~
REF*JY*CN~
REF*LSD*H2O*SHIP IN BY BOAT~
REF*PC*CONFIRM~
FOB*MX*ZZ*FOB~
ITD*01****45*******30/15/55%~
DTM*010*20220328~
DTM*001*20220523~
N1*VN*Test CO LTD*92*G0078~
N3*NO 1-2E*West VILLAGE STREET~
N4*ORANGE***CN~
PO1*1*252*PR*34.85*PE*ST*34343*CL*001*****DM*M***PT*CP*PO*35334*LI*4~
CTP**RTL*10.00~
CTP**PBR*6.00000~
PID*F*08***3434~
PID*F*73***BLACK~
PO4*252~
REF*KE*3r34*3434~
REF*HTS*6402.99.3165~
REF*MO*H2O~
REF*SH*BOA~
REF*PC1*234234*4234234~
REF*PC2*11*23423~
REF*PC3*20*4234~
REF*PC4*AW*2323~
REF*PC5*423234*2333242~
REF*PC9*423-01*LOT32423TA-01~
REF*SE*ALL*4234~
REF*NS*50315~
REF*CR*0~
DTM*037*20220411~
DTM*038*20220418~
DTM*AAG*20220613~
DTM*825*20220523~
DTM*110*20220328~
N1*MP*ORANGE*92*G00781~
N3*ORANGE*JUNE STREET~
N4*ORANGE***CN~
N1*ST*CATALOG*92*02~
N3*C/O DMG*205 MEADOW ROAD~
N4*EDISON*NJ*088176033*US~
N1*AG*GUOLONG SHOES CO LTD*92*G0078~
N3*NO 1-2, 6TH, COMMUNE*QING HU VILLAGE, JUN HE STREET~
N4*GUANGZHOU***CN~
SLN*1**I*6*PR*34.85*CT*I*UP*235223*ST*24324*IZ*5*CL*001***DM*M*BO*2342*NS*50315~
PO4*6~
AMT*1*8782.20~
AMT*ID*2.25660000~
AMT*AY*37.9100000~
CTT*3~
AMT*2*24046.50~
SE*57*0001~
GE*1*2~
IEA*1*000000002~
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.