Stedi maintains this guide based on public documentation from Computer Generated Solutions. Contact Computer Generated Solutions for official EDI specifications. To report any errors in this guide, please contact us.
X12 850 Purchase Order
—
Delimiters
- ~ Segment
- * Element
- > Component
EDI samples
- None included
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
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
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
—
Usage notes
—
- BK
- Blanket Order (Quantity Firm)
- RL
- Release or Delivery Order
- SA
- Stand-alone Order
—
- 2A
- Import License Number
- 6A
- Consignee Reference Number
- 8X
- Transaction Category or Type
- AAY
- Accounting Period Reference
- AN
- Associated Purchase Orders
- DP
- Department Number
- IA
- Internal Vendor Number
- JY
- Origin of Shipment Harmonized-Based Code
- LSD
- Logistics Support Documentation Type Code
- MR
- Merchandise Type Code
- OF
- Operator Identification Number
- PC
- Production Code
- PD
- Promotion/Deal Number
- PO
- Purchase Order Number
- RL
- Reserve Assembly Line Feed Location
- XY
- Other Unlisted Type of Reference Number
FOB
080
Heading > FOB
F.O.B. Related Instructions
OptionalMax use >1
—
Usage notes
—
Example
If Description (FOB-03) is present, then Location Qualifier (FOB-02) is required
ITD
130
Heading > ITD
Terms of Sale/Deferred Terms of Sale
OptionalMax use >1
—
Usage notes
—
Example
If Terms Discount Percent (ITD-03) is present, then at least one of Terms Discount Days Due (ITD-05) or Day of Month (ITD-13) is required
—
- 3
- Invoice Date
- 7
- Effective Date
- 15
- Receipt of Goods
TD5
240
Heading > TD5
Carrier Details (Routing Sequence/Transit Time)
OptionalMax use 12
—
Usage notes
—
Example
N9 Loop
OptionalMax >1
N9 Loop end
N1 Loop
OptionalMax >1
Usage notes
—
N1
310
Heading > N1 Loop > 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
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
—
- BK
- Bank
- BT
- Bill-to-Party
- DV
- Division
- LG
- Location of Goods
- MA
- Party for whom Item is Ultimately Intended
- ST
- Ship To
- VN
- Vendor
PER
360
Heading > N1 Loop > PER
Administrative Communications Contact
OptionalMax use >1
—
Usage notes
—
Example
N1 Loop 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
—
- DM
- Committee for Uniform Security Identification Procedure Number (CUSIP) Number
—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
PO3
030
Detail > PO1 Loop > PO3
Additional Item Detail
OptionalMax use 25
—
Usage notes
—
Example
If Unit Price (PO3-04) is present, then at least one of Price Identifier Code (PO3-03) or Basis of Unit Price Code (PO3-05) is required
CTP Loop
RequiredMax >1
CTP
040
Detail > PO1 Loop > CTP Loop > CTP
Pricing Information
RequiredMax use 1
—
Usage notes
—
Example
If either Quantity (CTP-04) or Composite Unit of Measure (CTP-05) is present, then the other is required
CTP Loop end
PID Loop
RequiredMax >1
PID
050
Detail > PO1 Loop > PID Loop > PID
Product/Item Description
RequiredMax use 1
—
Usage notes
—
Example
PID Loop end
PO4
090
Detail > PO1 Loop > PO4
Item Physical Details
OptionalMax use >1
—
Usage notes
—
Example
If either Size (PO4-02) or Unit or Basis for Measurement Code (PO4-03) is present, then the other is required
REF
100
Detail > PO1 Loop > REF
Reference Identification
OptionalMax use >1
—
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
—
- AS
- Acceptable Source Supplier ID
- CL
- Seller's Credit Memo
- CO
- Customer Order Number
- CR
- Customer Reference Number
- DL
- Seller's Debit Memo
- HTS
- IL
- Internal Order Number
- IT
- Internal Customer Number
- KE
- Ending Kanban Serial Number
- L6
- Subcontract Line Item Number
- LI
- Line Item Identifier (Seller's)
- MO
- Manufacturing Operation Number
- NS
- National Stock Number
- OR
- Order/Paragraph Number
- PC1
- PC2
- PC3
- PC4
- PC5
- PC6
- PC7
- PC8
- PC9
- PE
- Plant Number
- QT
- Warranty Registration Number
- SE
- Serial Number
- SH
- Sender Defined Clause
- SK
- Service Change Number
- UD2
OptionalMax use 1
To identify one or more reference numbers or identification numbers as specified by the Reference Qualifier
If either Reference Identification Qualifier (C040-03) or Reference Identification (C040-04) is present, then the other is required
If either Reference Identification Qualifier (C040-05) or Reference Identification (C040-06) is present, then the other is required
N9 Loop
OptionalMax >1
N9 Loop end
N1 Loop
OptionalMax >1
N1
350
Detail > PO1 Loop > N1 Loop > 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
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
PER
400
Detail > PO1 Loop > N1 Loop > PER
Administrative Communications Contact
OptionalMax use 3
—
Example
N1 Loop end
SLN Loop
OptionalMax >1
SLN
470
Detail > PO1 Loop > SLN Loop > SLN
Subline Item Detail
RequiredMax use 1
—
Example
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-17) or Product/Service ID (SLN-18) 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
RequiredMax 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 >1
AMT Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
RequiredMax >1
CTT Loop end
Summary end
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.