Stedi maintains this guide based on public documentation from Williams Sonoma. Contact Williams Sonoma for official EDI specifications. To report any errors in this guide, please contact us.
X12 850 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
Optional
REF
0500
Reference Information
Max use 1
Required
PER
0600
Administrative Communications Contact
Max use 3
Optional
FOB
0800
F.O.B. Related Instructions
Max use 1
Optional
CSH
1100
Sales Requirements
Max use 5
Optional
ITD
1300
Terms of Sale/Deferred Terms of Sale
Max use 1
Optional
TD5
2400
Carrier Details (Routing Sequence/Transit Time)
Max use 1
Optional
TD3
2500
Carrier Details (Equipment)
Max use 12
Optional
detail
PO1 Loop
PO1
0100
Baseline Item Data
Max use 1
Required
CUR
0200
Currency
Max use 1
Optional
MEA
0490
Measurements
Max use 40
Optional
PO4
0900
Item Physical Details
Max use 1
Optional
REF
1000
Reference Information Route Number
Max use 1
Optional
REF
1000
Reference Information Tarrif Number
Max use 1
Optional
ITD
1500
Terms of Sale/Deferred Terms of Sale
Max use 2
Optional
SDQ
1900
Destination Quantity
Max use 500
Optional
DTM
2100
Date/Time Reference
Max use 10
Required
TC2
2350
Commodity
Max use 1
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)
—
- 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
REF
0500
Heading > REF
Reference Information
RequiredMax use >1
—
Usage notes
—
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
—
- 19
- Division Identifier
- 87
- Functional Category—
- AN
- Associated Purchase Orders—
- CO
- Customer Order Number
- DP
- Department Number—
- IA
- Internal Vendor Number—
- MR
- Merchandise Type Code—
- PO
- Purchase Order Number
FOB
0800
Heading > FOB
F.O.B. Related Instructions
OptionalMax use 1
—
Example
If Description (FOB-03) is present, then Location Qualifier (FOB-02) is required
If Transportation Terms Qualifier Code (FOB-04) is present, then Transportation Terms Code (FOB-05) is required
—
- CC
- Collect
- DF
- Defined by Buyer and Seller
- PP
- Prepaid (by Seller)
TD5
2400
Heading > TD5
Carrier Details (Routing Sequence/Transit Time)
OptionalMax use 1
—
Usage notes
—
Example
—
- A
- Air
- LT
- Less Than Trailer Load (LTL)
- M
- Motor (Common Carrier)
- O
- Containerized Ocean
- R
- Rail
- T
- Best Way (Shippers Option)
- U
- Private Parcel Service
- VE
- Vessel, Ocean
N9 Loop
OptionalMax 10
N9 Loop end
N1 Loop
OptionalMax 4
N1
3100
Heading > N1 Loop > N1
Party Identification
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
—
- AG
- Agent/Agency—
- BT
- Bill-to-Party—
- BY
- Buying Party (Purchaser)—
- FW
- Forwarder—
- SO
- Sold To If Different From Bill To—
- ST
- Ship To—
- VN
- Vendor
PER
3600
Heading > N1 Loop > 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
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
N1 Loop end
Heading end
Detail
PO1 Loop
RequiredMax 100000
PO1
0100
Detail > PO1 Loop > PO1
Baseline Item Data
RequiredMax use 1
—
Example
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-12) or Product/Service ID (PO1-13) is present, then the other is required
CTP Loop
OptionalMax 1
CTP Loop end
OptionalMax use 1
To identify a composite unit of measure
(See Figures Appendix for examples of use)
PID Loop
RequiredMax 5
PID Loop end
REF
1000
Detail > PO1 Loop > REF
Reference Information Route Number
OptionalMax use >1
—
Usage notes
—
Example
Variants (all may be used)
REFReference Information Tarrif NumberREF
1000
Detail > PO1 Loop > REF
Reference Information Tarrif Number
OptionalMax use >1
—
Usage notes
—
Example
Variants (all may be used)
REFReference Information Route NumberSAC Loop
OptionalMax >1
SAC
1300
Detail > PO1 Loop > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Example
SAC Loop end
SDQ
1900
Detail > PO1 Loop > SDQ
Destination Quantity
OptionalMax use 500
—
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
OptionalMax 10
N9 Loop end
N1 Loop
OptionalMax >1
N1 Loop end
SLN Loop
OptionalMax 1000
Usage notes
—
SLN
4700
Detail > PO1 Loop > SLN Loop > SLN
Subline Item Detail
RequiredMax use 1
—
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
RequiredMax use 1
To identify a composite unit of measure
(See Figures Appendix for examples of use)
RequiredMax use 1
To identify a composite unit of measure
(See Figures Appendix for examples of use)
N9 Loop
OptionalMax >1
N9
5230
Detail > PO1 Loop > SLN Loop > N9 Loop > N9
Extended Reference Information
RequiredMax use 1
—
Example
N9 Loop end
SAC Loop
OptionalMax >1
SAC
5260
Detail > PO1 Loop > SLN Loop > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Example
SAC Loop end
SLN Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
OptionalMax 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.