Stedi maintains this guide based on public documentation from Target. Contact Target for official EDI specifications. To report any errors in this guide, please contact us.
X12 850 Retail 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
Required
PER
060
Administrative Communications Contact
Max use 3
Optional
FOB
080
F.O.B. Related Instructions
Max use 1
Optional
CSH
110
Sales Requirements
Max use 5
Optional
ITD
130
Terms of Sale/Deferred Terms of Sale
Max use 1
Required
DTM
150
Date/Time Reference
Max use 10
Required
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
—
- BK
- Blanket Order (Quantity Firm)—
- RL
- Release or Delivery Order
- SA
- Stand-alone Order—
REF
050
Heading > REF
Reference Identification
RequiredMax use >1
—
Usage notes
—
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
PER
060
Heading > PER
Administrative Communications Contact
OptionalMax use 3
—
Usage notes
—
Example
If either Communication Number Qualifier (PER-07) or Communication Number (PER-08) 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
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
—
- EM
- Electronic Mail
- FX
- Facsimile
- TE
- Telephone
—
- EM
- Electronic Mail
- FX
- Facsimile
- TE
- Telephone
—
- EM
- Electronic Mail
- FX
- Facsimile
- TE
- Telephone
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
SAC Loop
OptionalMax >1
SAC
120
Heading > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Usage notes
—
Example
If either Agency Qualifier Code (SAC-03) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is present, then the other is required
—
- VI
- Voluntary Inter-Industry Commerce Standard (VICS) EDI
SAC Loop end
ITD
130
Heading > ITD
Terms of Sale/Deferred Terms of Sale
RequiredMax use >1
—
Usage notes
—
Example
If Terms Discount Percent (ITD-03) is present, then at least one of Terms Discount Due Date (ITD-04), Terms Discount Days Due (ITD-05) or Day of Month (ITD-13) is required
—
- 01
- Basic
- 02
- End of Month (EOM)
- 10
- Instant
- 14
- Previously agreed upon—
DTM
150
Heading > DTM
Date/Time Reference
RequiredMax use 10
—
Usage notes
—
Example
If Time Code (DTM-04) is present, then Time (DTM-03) is required
—
- 015
- Promotion Start—
- 037
- Ship Not Before—
- 038
- Ship No Later—
- 063
- Do Not Deliver After—
- 064
- Do Not Deliver Before—
- 078
- Promised for Delivery (Week of)—
- 118
- Requested Pick-up—
TD5
240
Heading > TD5
Carrier Details (Routing Sequence/Transit Time)
OptionalMax use 12
—
Usage notes
—
Example
—
- 2
- Standard Carrier Alpha Code (SCAC)
- 92
- Assigned by Buyer or Buyer's Agent
N9 Truckload Reference ID.
OptionalMax 1
Variants (all may be used)
InstructionsN9
295
Heading > Truckload Reference ID. > N9
Reference Identification
RequiredMax use 1
—
Usage notes
—
Example
N9 Truckload Reference ID. end
N1 Buying Party (Purchaser)
RequiredMax 1
N1
310
Heading > Buying Party (Purchaser) > N1
Name
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
N3
330
Heading > Buying Party (Purchaser) > N3
Address Information
OptionalMax use 2
—
Usage notes
—
Example
N4
340
Heading > Buying Party (Purchaser) > N4
Geographic Location
OptionalMax use >1
—
Usage notes
—
Example
N1 Buying Party (Purchaser) end
N1 Manufacturer of Goods
OptionalMax 1
N1
310
Heading > Manufacturer of Goods > N1
Name
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
N2
320
Heading > Manufacturer of Goods > N2
Additional Name Information
OptionalMax use 2
—
Usage notes
—
Example
N1 Manufacturer of Goods end
N1 Ship To
OptionalMax 1
N1
310
Heading > Ship To > N1
Name
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
N1 Ship To end
Heading end
Detail
PO1 Loop
RequiredMax >1
PO1
010
Detail > PO1 Loop > PO1
Baseline Item Data
RequiredMax use 1
—
Usage notes
—
Example
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-10) or Product/Service ID (PO1-11) 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-06) or Product/Service ID (PO1-07) is present, then the other is required
—
- LE
- Catalog Price per Each
- PP
- Price per Pound
- QT
- Quoted
- UM
- Price per Unit of Measure—
- WD
- Wholesale Price per Dozen
- WE
- Wholesale Price per Each
—
- CB
- Buyer's Catalog Number
- EN
- European Article Number (EAN) (2-5-5-1)
- EO
- EAN/UCC - 8
- IB
- International Standard Book Number (ISBN)
- IN
- Buyer's Item Number—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
- VA
- Vendor's Style Number
—
- CB
- Buyer's Catalog Number
- EN
- European Article Number (EAN) (2-5-5-1)
- EO
- EAN/UCC - 8
- IB
- International Standard Book Number (ISBN)
- IN
- Buyer's Item Number—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
- VA
- Vendor's Style Number
—
- CB
- Buyer's Catalog Number
- EN
- European Article Number (EAN) (2-5-5-1)
- EO
- EAN/UCC - 8
- IB
- International Standard Book Number (ISBN)
- IN
- Buyer's Item Number—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
- VA
- Vendor's Style Number
—
- CB
- Buyer's Catalog Number
- EN
- European Article Number (EAN) (2-5-5-1)
- EO
- EAN/UCC - 8
- IB
- International Standard Book Number (ISBN)
- IN
- Buyer's Item Number—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
- VA
- Vendor's Style Number
CTP Loop
OptionalMax >1
Usage notes
—
CTP
040
Detail > PO1 Loop > CTP Loop > CTP
Pricing Information
RequiredMax use 1
—
Example
If Condition Value (CTP-10) is present, then Price Identifier Code (CTP-02) is required
CTP Loop end
PID Loop
OptionalMax >1
PID
050
Detail > PO1 Loop > PID Loop > PID
Product/Item Description
RequiredMax use 1
—
Usage notes
—
Example
At least one of Product Description Code (PID-04) or Description (PID-05) is required
If Product Description Code (PID-04) is present, then Agency Qualifier Code (PID-03) is required
—
- F
- Free-form
- S
- Structured (From Industry Code List)
- X
- Semi-structured (Code and Text)
—
- 08
- Product
- 73
- Vendor color description
- 74
- Vendor size description
—
- VI
- Voluntary Inter-Industry Commerce Standard (VICS) EDI
PID Loop end
SAC Loop
OptionalMax >1
SAC
130
Detail > PO1 Loop > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Usage notes
—
Example
If either Agency Qualifier Code (SAC-03) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is present, then the other is required
—
- VI
- Voluntary Inter-Industry Commerce Standard (VICS) EDI
—
- HA
- Hanger Service
- TC990101
- Ticketing Service
SAC Loop end
SLN Loop
OptionalMax >1
SLN
470
Detail > PO1 Loop > SLN Loop > SLN
Subline Item Detail
RequiredMax use 1
—
Usage notes
—
Example
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-13) or Product/Service ID (SLN-14) 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-09) or Product/Service ID (SLN-10) 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
RequiredMax use 1
To identify a composite unit of measure
(See Figures Appendix for examples of use)
Usage notes
—
—
- LE
- Catalog Price per Each
- QT
- Quoted
- WD
- Wholesale Price per Dozen
- WE
- Wholesale Price per Each
—
- CB
- Buyer's Catalog Number
- EN
- European Article Number (EAN) (2-5-5-1)
- EO
- EAN/UCC - 8
- IB
- International Standard Book Number (ISBN)
- IN
- Buyer's Item Number—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
- VA
- Vendor's Style Number
—
- CB
- Buyer's Catalog Number
- EN
- European Article Number (EAN) (2-5-5-1)
- EO
- EAN/UCC - 8
- IB
- International Standard Book Number (ISBN)
- IN
- Buyer's Item Number—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
- VA
- Vendor's Style Number
—
- CB
- Buyer's Catalog Number
- EN
- European Article Number (EAN) (2-5-5-1)
- EO
- EAN/UCC - 8
- IB
- International Standard Book Number (ISBN)
- IN
- Buyer's Item Number—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
- VA
- Vendor's Style Number
—
- CB
- Buyer's Catalog Number
- EN
- European Article Number (EAN) (2-5-5-1)
- EO
- EAN/UCC - 8
- IB
- International Standard Book Number (ISBN)
- IN
- Buyer's Item Number—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
- VA
- Vendor's Style Number
PID
490
Detail > PO1 Loop > SLN Loop > PID
Product/Item Description
OptionalMax use 1000
—
Usage notes
—
Example
If Product Description Code (PID-04) is present, then Agency Qualifier Code (PID-03) is required
At least one of Product Description Code (PID-04) or Description (PID-05) is required
—
- F
- Free-form
- S
- Structured (From Industry Code List)
- X
- Semi-structured (Code and Text)
—
- 08
- Product
- 73
- Vendor color description
- 74
- Vendor size description
—
- VI
- Voluntary Inter-Industry Commerce Standard (VICS) EDI
SLN Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
RequiredMax >1
CTT Loop end
Summary end
EDI Samples
Sample 850
ISA*00*0000000000*00*0000000000*08*1111471111 *ZZ*1111991111 *230626*1010*U*00401*000000161*0*P*>~
GS*PO*1111471111*1111991111*20230626*1010*26*X*004010~
ST*850*1111~
BEG*00*SA*111-2222222-3333**20230626*D~
REF*IA*123456*AABBCC~
REF*DP*123~
FOB*DF*OR*LA CA~
CSH*N~
ITD*01*2*2**065~
DTM*037*20230703~
DTM*038*20230704~
TD5*B*2*XYZQ*U~
N1*BY*TARGET DC 1234*92*1234~
N3*1150 MAIN STREET~
N4*CITY*CA*95111*US~
PO1*1*6*EA*75.5*WE*CB*111111*VA*2222222*UP*3333333~
CTP*RS*RES*145.99*******1~
PID*F*73***GREEN~
PID*F*08***Qwerty~
PO4*6*************1~
CTT*1*6~
SE*20*1111~
GE*1*26~
IEA*1*000000161~
GS*PO*1111471111*1111991111*20230626*1010*26*X*004010~
ST*850*1111~
BEG*00*SA*111-2222222-3333**20230626*D~
REF*IA*123456*AABBCC~
REF*DP*123~
FOB*DF*OR*LA CA~
CSH*N~
ITD*01*2*2**065~
DTM*037*20230703~
DTM*038*20230704~
TD5*B*2*XYZQ*U~
N1*BY*TARGET DC 1234*92*1234~
N3*1150 MAIN STREET~
N4*CITY*CA*95111*US~
PO1*1*6*EA*75.5*WE*CB*111111*VA*2222222*UP*3333333~
CTP*RS*RES*145.99*******1~
PID*F*73***GREEN~
PID*F*08***Qwerty~
PO4*6*************1~
CTT*1*6~
SE*20*1111~
GE*1*26~
IEA*1*000000161~
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.