Stedi maintains this guide based on public documentation from Wayfair. Contact Wayfair 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 2P
Max use 1
Required
REF
050
Reference Identification Vendor
Max use 1
Required
PER
060
Administrative Communications Contact
Max use 3
Required
FOB
080
F.O.B. Related Instructions
Max use 1
Optional
CTP
090
Pricing Information
Max use 1
Required
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
Required
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
—
- CO
- Catalog Order
- DS
- Dropship
- OS
- Special Order
- PR
- Promotion
- RC
- Retailer Pre-commitment
REF
050
Heading > REF
Reference Identification 2P
RequiredMax use 1
—
Example
Variants (all may be used)
REFReference Identification VendorREF
050
Heading > REF
Reference Identification Vendor
RequiredMax use 1
—
Example
Variants (all may be used)
REFReference Identification 2PPER
060
Heading > PER
Administrative Communications Contact
RequiredMax use 3
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
SAC Loop
RequiredMax >1
SAC
120
Heading > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Example
—
Usage notes
—
SAC Loop end
N9 Loop Billing Information
RequiredMax 1
Variants (all may be used)
N9 Loop Transportation Account CodeN9 Loop Billing Information end
N9 Loop Transportation Account Code
RequiredMax 1
Variants (all may be used)
N9 Loop Billing InformationN9
295
Heading > N9 Loop Transportation Account Code > N9
Reference Identification
RequiredMax use 1
—
Example
N9 Loop Transportation Account Code end
N1 Loop Bill To
RequiredMax 1
PER
360
Heading > N1 Loop Bill To > PER
Administrative Communications Contact
RequiredMax use >1
—
Example
N1 Loop Bill To end
N1 Loop Customer
RequiredMax 1
N1 Loop Customer end
N1 Loop Mark-for Party
OptionalMax 1
N1
310
Heading > N1 Loop Mark-for Party > 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
N1 Loop Mark-for Party end
N1 Loop Ship To
RequiredMax 1
N1
310
Heading > N1 Loop Ship To > 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
PER
360
Heading > N1 Loop Ship To > PER
Administrative Communications Contact
RequiredMax use >1
—
Example
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
N1 Loop Ship To end
Heading end
Detail
PO1 Loop
RequiredMax 100000
PID Loop
RequiredMax >1
PID Loop end
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
SAC Loop
OptionalMax >1
SAC
130
Detail > PO1 Loop > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Example
SAC Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
RequiredMax >1
CTT Loop end
Summary end
EDI Samples
sample 2
BEG*00*CO*PO Number**20230101~
REF*VR*SuID*Supplier Warehouse ZIP~
REF*2P*Brand~
PER*IC*Supplier Name*FX*Supplier Fax*TE*Supplier Telephone~
FOB*PC~
CTP**WHL~
SAC*A*Code****4*0.02~
ITD*01***********Terms~
DTM*010*20230110~
TD5**2*SCAC*ZZ*Ship Speed~
N9*PSM**Billing Info~
N9*TH*Ship Account Number~
MSG*Custom Comments (may repeat for each block of 264 characters)~
N1*BT*Bill To Name~
N3*Bill To Addr1*Bill To Addr2~
N4*Bill To City*CA*Bill to Zip*USA~
PER*BJ*BT*TE*Bill To Phone Number*FX*Bill to Fax Number*EM*Bill To Email~
N1*ST*Ship To Name*54*Location Code~
N2*Ship To Company Name~
N3*Ship To Addr1*Ship To Addr2~
N4*Ship To City*CA*Ship To Zip*USA*ZN*R~
PER*DC*ST*TE*Ship To Phone Number*FX*Ship To Fax Number*EM*Ship To Email~
N1*Z7**54*ID~
N1*LW*Customer Name~
N3*Customer Addr1*Customer Addr2~
N4*Customer City*CA*Customer Zip*USA~
PO1*Product Number*100*EA*100*WH*VN*Part Number~
PID*F****Product Name~
REF*QK*Event Name*Event End Date~
SAC*N*I530~
MSG*Custom Comments (may repeat for each block of 264 characters)~
CTT*1~
AMT*GV*10000~
REF*VR*SuID*Supplier Warehouse ZIP~
REF*2P*Brand~
PER*IC*Supplier Name*FX*Supplier Fax*TE*Supplier Telephone~
FOB*PC~
CTP**WHL~
SAC*A*Code****4*0.02~
ITD*01***********Terms~
DTM*010*20230110~
TD5**2*SCAC*ZZ*Ship Speed~
N9*PSM**Billing Info~
N9*TH*Ship Account Number~
MSG*Custom Comments (may repeat for each block of 264 characters)~
N1*BT*Bill To Name~
N3*Bill To Addr1*Bill To Addr2~
N4*Bill To City*CA*Bill to Zip*USA~
PER*BJ*BT*TE*Bill To Phone Number*FX*Bill to Fax Number*EM*Bill To Email~
N1*ST*Ship To Name*54*Location Code~
N2*Ship To Company Name~
N3*Ship To Addr1*Ship To Addr2~
N4*Ship To City*CA*Ship To Zip*USA*ZN*R~
PER*DC*ST*TE*Ship To Phone Number*FX*Ship To Fax Number*EM*Ship To Email~
N1*Z7**54*ID~
N1*LW*Customer Name~
N3*Customer Addr1*Customer Addr2~
N4*Customer City*CA*Customer Zip*USA~
PO1*Product Number*100*EA*100*WH*VN*Part Number~
PID*F****Product Name~
REF*QK*Event Name*Event End Date~
SAC*N*I530~
MSG*Custom Comments (may repeat for each block of 264 characters)~
CTT*1~
AMT*GV*10000~
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.