Stedi maintains this guide based on public documentation from Walmart. Contact Walmart for official EDI specifications. To report any errors in this guide, please contact us.

X12 850 [5010] Purchase Order
—
Delimiters
- ~ Segment
- * Element
- > Component
- ^ Repetition
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
0100
Transaction Set Header
Max use 1
Required
BEG
0200
Beginning Segment for Purchase Order
Max use 1
Required
CUR
0400
Currency
Max use 1
REF
0500
Reference Information
Max use 1
FOB
0800
F.O.B. Related Instructions
Max use 1
ITD
1300
Terms of Sale/Deferred Terms of Sale
Max use 1
DTM
1500
Date/Time Reference
Max use 10
PID
1900
Product/Item Description
Max use 200
TD5
2400
Carrier Details (Routing Sequence/Transit Time)
Max use 1
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)
—
- 00501
- Standards Approved for Publication by ASC X12 Procedures Review Board through October 2003
—
- 0
- No Interchange Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested (TA1)
—
- I
- Information
- P
- Production Data
- T
- Test Data
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
—
- 00
- Original
- 22
- Information Copy—
- 38
- No Financial Value—
—
- BE
- Blanket Order/Estimated Quantities (Not firm Commitment)—
- RL
- Release or Delivery Order—
- SA
- Stand-alone Order—
FOB
0800
Heading > FOB
F.O.B. Related Instructions
Max use >1
—
Usage notes
—
Example
If Description (FOB-03) is present, then Location Qualifier (FOB-02) is required
SAC Loop
Max 25
SAC
1200
Heading > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Usage notes
—
Example
If either Allowance/Charge Percent Qualifier (SAC-06) or Percent, Decimal Format (SAC-07) is present, then the other is required
If either Unit or Basis for Measurement Code (SAC-09) or Quantity (SAC-10) is present, then the other is required
—
- A260
- Advertising Allowance
- B000
- Central Buy
- B320
- Competitive Allowance
- B720
- Cooperative Advertising/Merchandising Allowance (Performance)
- B860
- Customs Broker Fee
- B872
- Customs Duty
- B880
- Customs Entry
- C000
- Defective Allowance
- C220
- Development Charge—
- C310
- Discount
- C320
- Display Allowance
- C510
- Dry Ice—
- C540
- Early Buy Allowance
- D140
- Forwarding Charge
- D170
- Free Goods
- D240
- Freight
- D260
- Fuel Charge—
- D270
- Fuel Surcharge
- D500
- Handling
- D750
- Inbound Freight Charges
- D800
- Inland Transportation
- E160
- Label Allowance
- E280
- Late Payment Charge
- E720
- New Distribution Allowance
- E740
- New Store Allowance
- E750
- New Store Discount
- E770
- New Warehouse
- F050
- Other (See related description)
- F180
- Pallet
- F330
- Pickup and Delivery
- F340
- Pick/Up
- F670
- Price and Marketing Allowance
- F680
- Price Deviation
- F800
- Promotional Allowance
- F910
- Quantity Discount
- F920
- Quantity Surcharge
- F970
- Rebate
- G220
- Refrigeration
- H000
- Special Allowance
- H910
- Temperature Protection
- I070
- Tobacco Products Report Charge
- I310
- Truckload Discount
- I390
- Unloading
- I410
- Unsaleable Merchandise Allowance
- I530
- Volume Discount
- I570
- Warehouse
SAC Loop end
—
- 02
- End of Month (EOM)
- 05
- Discount Not Applicable
- 08
- Basic Discount Offered
—
Usage notes
—
- 001
- Cancel After—
- 002
- Delivery Requested—
- 007
- Effective—
- 010
- Requested Ship—
- 037
- Ship Not Before—
- 038
- Ship No Later—
- 063
- Do Not Deliver After—
- 704
- Delivery Appointment Date and Time—
PID
1900
Heading > PID
Product/Item Description
Max use 200
—
Usage notes
—
Example
If Product Description Code (PID-04) is present, then Agency Qualifier Code (PID-03) is required
—
- VI
- Voluntary Inter-Industry Commerce Standard (VICS) EDI
N9 Loop
Max 1000
N9 Loop end
N1 Loop
Max 200
N1
3100
Heading > N1 Loop > N1
Party Identification
RequiredMax use 1
—
Usage notes
—
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
—
- BT
- Bill-to-Party—
- BY
- Buying Party (Purchaser)—
- DZ
- Delivery Zone—
- FR
- Message From—
- SN
- Store—
- ST
- Ship To—
- SU
- Supplier/Manufacturer—
N1 Loop end
Heading end
Detail
PO1 Loop
RequiredMax 100000
PO1
0100
Detail > PO1 Loop > PO1
Baseline Item Data
RequiredMax use 1
—
Usage notes
—
Example
If Unit or Basis for Measurement Code (PO1-03) is present, then Quantity (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-08) or Product/Service ID (PO1-09) 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
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
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
If either Product/Service ID Qualifier (PO1-24) or Product/Service ID (PO1-25) is present, then the other is required
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number—
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)—
- UK
- GTIN 14-digit Data Structure—
- UP
- UCC - 12—
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
CTP Loop
Max >1
CTP Loop end
PO4
0900
Detail > PO1 Loop > PO4
Item Physical Details
Max use >1
—
Usage notes
—
Example
If Inner Pack (PO4-14) is present, then Pack (PO4-01) is required
SAC Loop
Max 25
SAC
1300
Detail > PO1 Loop > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Usage notes
—
Example
If either Allowance/Charge Percent Qualifier (SAC-06) or Percent, Decimal Format (SAC-07) is present, then the other is required
If either Unit or Basis for Measurement Code (SAC-09) or Quantity (SAC-10) is present, then the other is required
—
- E740
- New Store Allowance
- F800
- Promotional Allowance
SAC Loop end
SDQ
1900
Detail > PO1 Loop > SDQ
Destination Quantity
Max use 500
—
Usage notes
—
Example
If either Identification Code (SDQ-05) or Quantity (SDQ-06) is present, then the other is required
If either Identification Code (SDQ-07) or Quantity (SDQ-08) is present, then the other is required
If either Identification Code (SDQ-09) or Quantity (SDQ-10) is present, then the other is required
If either Identification Code (SDQ-11) or Quantity (SDQ-12) is present, then the other is required
If either Identification Code (SDQ-13) or Quantity (SDQ-14) is present, then the other is required
If either Identification Code (SDQ-15) or Quantity (SDQ-16) is present, then the other is required
If either Identification Code (SDQ-17) or Quantity (SDQ-18) is present, then the other is required
If either Identification Code (SDQ-19) or Quantity (SDQ-20) is present, then the other is required
If either Identification Code (SDQ-21) or Quantity (SDQ-22) is present, then the other is required
N9 Loop Letters or Notes
Max 1000
Variants (all may be used)
N9 Loop Store NumberN9
3300
Detail > PO1 Loop > N9 Loop Letters or Notes > N9
Extended Reference Information
RequiredMax use 1
—
Usage notes
—
Example
N9 Loop Letters or Notes end
N9 Loop Store Number
Max 1
Variants (all may be used)
N9 Loop Letters or NotesN9
3300
Detail > PO1 Loop > N9 Loop Store Number > N9
Extended Reference Information
RequiredMax use 1
—
Usage notes
—
Example
N9 Loop Store Number end
SLN Loop
Max 1000
SLN
4700
Detail > PO1 Loop > SLN Loop > SLN
Subline Item Detail
RequiredMax use 1
—
Usage notes
—
Example
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-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
If either Product/Service ID Qualifier (SLN-25) or Product/Service ID (SLN-26) is present, then the other is required
If either Product/Service ID Qualifier (SLN-27) or Product/Service ID (SLN-28) is present, then the other is required
Max use 1
To identify a composite unit of measure
(See Figures Appendix for examples of use)
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13—
- IN
- Buyer's Item Number—
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)—
- UK
- GTIN 14-digit Data Structure—
- UP
- UCC - 12—
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
—
Usage notes
—
- BO
- Buyers Color
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- IZ
- Buyer's Size Code
- P8
- Retail Price Look Up Number (PLU)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
SLN Loop end
AMT Loop
Max >1
AMT
6000
Detail > PO1 Loop > AMT Loop > AMT
Monetary Amount Information
RequiredMax use 1
—
Usage notes
—
Example
AMT Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
Max >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.