Stedi maintains this guide based on public documentation from UNFI. Contact UNFI 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
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 10
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
N1 Loop Ship To
OptionalMax 200
PER
360
Heading > N1 Loop Ship To > PER
Administrative Communications Contact
OptionalMax use >1
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-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 either Product/Service ID Qualifier (PO1-10) or Product/Service ID (PO1-11) is present, then the other is required
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-06) or Product/Service ID (PO1-07) is present, then the other 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-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
—
- MF
- Manufacturer
- MG
- Manufacturer's Part Number
—
- UA
- U.P.C./EAN Case Code (2-5-5)
- UI
- U.P.C. Consumer Package Code (1-5-5)
—
- UA
- U.P.C./EAN Case Code (2-5-5)
- UI
- U.P.C. Consumer Package Code (1-5-5)
—
- UK
- U.P.C./EAN Shipping Container Code (1-2-5-5-1)
PID Loop
OptionalMax 1000
PID Loop end
SAC Loop
OptionalMax 25
SAC
130
Detail > PO1 Loop > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Example
At least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Qualifier Code (SAC-03) is required
If either Agency Qualifier Code (SAC-03) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is present, then the other is required
If Reference Identification (SAC-13) is present, then at least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is required
If either Unit or Basis for Measurement Code (SAC-09) or Quantity (SAC-10) is present, then the other is required
—
- F800
- Promotional Allowance
—
- CA
- Case
- DZ
- Dozen
- EA
- Each
- GS
- Gross
- LB
- Pound
SAC Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
OptionalMax 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
CustomerGeneric_850
ISA*00* *00* *01*123456789 *01*943556183 *140120*0841*U*00401*005887255*0*P*>
GS*PO*123456789*943556183*20140120*0841*005887255*X*004010
ST*850*005887255
BEG*00*SA*5887255**20140120
REF*ZZ**XX~
N1*BT*Customer Bill To Name*92*11111
N1*ST*Customer Ship To Name*92*22222
N3*Address
N4*Short Hills*NJ*07052
PO1**4*EA*11.10**MF*001579402481*PI*064558
PID*F****Description 1
PO1**3*EA*2**MF*001579402685*PI*068752
PID*F****Description 2
PO1**4*EA*3.3**MF*001579402474*PI*067355
PID*F****Description 3
CTT*3
SE*15*005887255
GE*1*005887255
IEA*1*005887255
GS*PO*123456789*943556183*20140120*0841*005887255*X*004010
ST*850*005887255
BEG*00*SA*5887255**20140120
REF*ZZ**XX~
N1*BT*Customer Bill To Name*92*11111
N1*ST*Customer Ship To Name*92*22222
N3*Address
N4*Short Hills*NJ*07052
PO1**4*EA*11.10**MF*001579402481*PI*064558
PID*F****Description 1
PO1**3*EA*2**MF*001579402685*PI*068752
PID*F****Description 2
PO1**4*EA*3.3**MF*001579402474*PI*067355
PID*F****Description 3
CTT*3
SE*15*005887255
GE*1*005887255
IEA*1*005887255
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.