Stedi maintains this guide based on public documentation from GCommerce Super Spec. Contact GCommerce Super Spec 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
CUR
040
Currency
Max use 1
Optional
REF
050
Reference Identification
Max use 1
Optional
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
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
—
- BK
- Blanket Order (Quantity Firm)
- CF
- Confirmation
- DS
- Dropship
- EO
- Emergency Order
- KN
- Purchase Order
- NE
- New Order
- OS
- Special Order
- PR
- Promotion
- RA
- Release Against Assortment
- SA
- Stand-alone Order
REF
050
Heading > REF
Reference Identification
OptionalMax use >1
—
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
—
- EU
- End User's Purchase Order Number
- PD
- Promotion/Deal Number
- PG
- Product Group—
- PHC
- Process Handling Code
- ST
- Store Number
- VN
- Vendor Order Number
- VR
- Vendor ID Number
- ZZ
- Mutually Defined
PER
060
Heading > PER
Administrative Communications Contact
OptionalMax use 3
—
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
If either Communication Number Qualifier (PER-07) or Communication Number (PER-08) is present, then the other is required
—
- AP
- Accounts Payable Department
- BD
- Buyer Name or Department
- IC
- Information Contact
FOB
080
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
If Description (FOB-07) is present, then Location Qualifier (FOB-06) is required
If Risk of Loss Code (FOB-08) is present, then Description (FOB-09) is required
—
- CC
- Collect
- DF
- Defined by Buyer and Seller
- PC
- Prepaid but Charged to Customer
- PP
- Prepaid (by Seller)
- PU
- Pickup
—
- DE
- Destination (Shipping)
- OR
- Origin (Shipping Point)
- WH
- Warehouse
- ZZ
- Mutually Defined
SAC Loop
OptionalMax >1
SAC
120
Heading > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Example
At least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Qualifier Code (SAC-03) is required
If either Agency Qualifier Code (SAC-03) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is present, then the other is required
If either Allowance/Charge Percent Qualifier (SAC-06) or Percent (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
If Quantity (SAC-11) is present, then Quantity (SAC-10) is required
If Reference Identification (SAC-13) is present, then at least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is required
If Option Number (SAC-14) is present, then Reference Identification (SAC-13) is required
If Language Code (SAC-16) is present, then Description (SAC-15) is required
SAC Loop end
ITD
130
Heading > ITD
Terms of Sale/Deferred Terms of Sale
OptionalMax use >1
—
Example
If Terms Deferred Due Date (ITD-09) is present, then at least one of Deferred Amount Due (ITD-10) or Percent of Invoice Payable (ITD-11) is required
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
If Terms Discount Amount (ITD-08) 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
- 03
- Fixed Date
- 04
- Deferred or Installment
- 05
- Discount Not Applicable
- 08
- Basic Discount Offered
- ZZ
- Mutually Defined
—
- 001
- Cancel After
- 002
- Delivery Requested
- 004
- Purchase Order
- 007
- Effective
- 010
- Requested Ship
- 037
- Ship Not Before
- 038
- Ship No Later
- 061
- Cancel if Not Delivered by
- 066
- 1st Schedule Ship
- 069
- Promised for Delivery
- 074
- Requested for Delivery (Prior to and Including)
- 076
- Scheduled for Delivery (Week of)
- 079
- Promised for Shipment
- 097
- Transaction Creation
- 938
- Order
TD5
240
Heading > TD5
Carrier Details (Routing Sequence/Transit Time)
OptionalMax use 12
—
Example
If Identification Code Qualifier (TD5-02) is present, then Identification Code (TD5-03) is required
If Service Level Code (TD5-13) is present, then Service Level Code (TD5-12) is required
If Service Level Code (TD5-14) is present, then Service Level Code (TD5-13) is required
If Country Code (TD5-15) is present, then Service Level Code (TD5-12) is required
—
- 3D
- Three Day Service
- 9A
- 9 A.M.
- ND
- Next Day Air
- ON
- Overnight
- SC
- Second Day Air
- SD
- Saturday
- SE
- Second Day
- SG
- Standard Ground
- SI
- Standard Ground Hundred Weight
N9 Letters or Notes
OptionalMax >1
Variants (all may be used)
Mutually DefinedN9
295
Heading > Letters or Notes > N9
Reference Identification
RequiredMax use 1
—
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
N9 Letters or Notes end
N9 Mutually Defined
OptionalMax >1
Variants (all may be used)
Letters or NotesN9
295
Heading > Mutually Defined > N9
Reference Identification
RequiredMax use 1
—
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
N9 Mutually Defined end
N1 Loop
OptionalMax >1
N1
310
Heading > N1 Loop > N1
Name
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
—
- BT
- Bill-to-Party
- BY
- Buying Party (Purchaser)
- SN
- Store
- ST
- Ship To
- VN
- Vendor
—
- 54
- Warehouse
- 91
- Assigned by Seller or Seller's Agent
- 92
- Assigned by Buyer or Buyer's Agent
- ZZ
- Mutually Defined
N4
340
Heading > N1 Loop > N4
Geographic Location
OptionalMax use >1
—
Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
PER
360
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
—
- BD
- Buyer Name or Department
- DC
- Delivery Contact
- IC
- Information Contact
- RD
- Receiving Dock
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-24) or Product/Service ID (PO1-25) 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-20) or Product/Service ID (PO1-21) 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-16) or Product/Service ID (PO1-17) 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-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
If Basis of Unit Price Code (PO1-05) is present, then Unit Price (PO1-04) is required
If Unit or Basis for Measurement Code (PO1-03) is present, then Quantity Ordered (PO1-02) is required
—
- CP
- Current Price (Subject to Change)
- NT
- Net
- PE
- Price per Each
- PR
- Promotion
—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
PID Loop
OptionalMax >1
PID
050
Detail > PO1 Loop > PID Loop > PID
Product/Item Description
RequiredMax use 1
—
Example
If Source Subqualifier (PID-07) is present, then Agency Qualifier Code (PID-03) is required
PID Loop end
PO4
090
Detail > PO1 Loop > PO4
Item Physical Details
OptionalMax use >1
—
Example
If Number (PO4-18) is present, then Packaging Code (PO4-04) is required
If Assigned Identification (PO4-17) is present, then Assigned Identification (PO4-16) is required
If Length (PO4-10) is present, then Unit or Basis for Measurement Code (PO4-13) is required
If Width (PO4-11) is present, then Unit or Basis for Measurement Code (PO4-13) is required
If Height (PO4-12) is present, then Unit or Basis for Measurement Code (PO4-13) is required
If Unit or Basis for Measurement Code (PO4-13) is present, then at least one of Length (PO4-10), Width (PO4-11) or Height (PO4-12) is required
If either Gross Volume per Pack (PO4-08) or Unit or Basis for Measurement Code (PO4-09) is present, then the other is required
If either Gross Weight per Pack (PO4-06) or Unit or Basis for Measurement Code (PO4-07) is present, then the other is required
If Weight Qualifier (PO4-05) is present, then Gross Weight per Pack (PO4-06) is required
If either Size (PO4-02) or Unit or Basis for Measurement Code (PO4-03) is present, then the other is required
SAC Loop
OptionalMax >1
SAC
130
Detail > PO1 Loop > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Example
At least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Qualifier Code (SAC-03) is required
If either Agency Qualifier Code (SAC-03) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is present, then the other is required
If either Allowance/Charge Percent Qualifier (SAC-06) or Percent (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
If Quantity (SAC-11) is present, then Quantity (SAC-10) is required
If Reference Identification (SAC-13) is present, then at least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is required
If Option Number (SAC-14) is present, then Reference Identification (SAC-13) is required
If Language Code (SAC-16) is present, then Description (SAC-15) is required
SAC Loop end
SCH Loop
OptionalMax >1
—
- 002
- Delivery Requested
- 010
- Requested Ship
- 017
- Estimated Delivery
- 037
- Ship Not Before
- 038
- Ship No Later
- 074
- Requested for Delivery (Prior to and Including)
- 075
- Promised for Delivery (Prior to and Including)
SCH Loop end
N9 Letters or Notes
OptionalMax >1
Variants (all may be used)
Mutually DefinedN9
330
Detail > PO1 Loop > Letters or Notes > N9
Reference Identification
RequiredMax use 1
—
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
N9 Letters or Notes end
N9 Mutually Defined
OptionalMax >1
Variants (all may be used)
Letters or NotesN9
330
Detail > PO1 Loop > Mutually Defined > N9
Reference Identification
RequiredMax use 1
—
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
N9 Mutually Defined end
PO1 Loop end
Detail end
Summary
CTT Loop
OptionalMax >1
CTT
010
Summary > CTT Loop > CTT
Transaction Totals
RequiredMax use 1
—
Example
If either Weight (CTT-03) or Unit or Basis for Measurement Code (CTT-04) is present, then the other is required
If either Volume (CTT-05) or Unit or Basis for Measurement Code (CTT-06) is present, then the other is required
CTT Loop end
Summary end
EDI Samples
Sample
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231030*0258*U*00401*000000001*0*T*>~
GS*PO*SENDERGS*RECEIVERGS*20231030*025801*000000001*X*004010~
ST*850*0001~
BEG*00*SA*12345*00*20090602*4444*ZZ**FD~
CUR*ZZ*USD~
REF*VR*123456*VENDOR NUMBER~
REF*PG*ABC~
PER*BD*BUYER NAME*TE*5555555555*FX*4444444444*EM*NAME*EMAIL.COM~
FOB*PP*OR*ORIGIN*ZZ*ZZZ*OR*ORIGIN*ZZ*ORIGIN~
CSH*N~
SAC*A*F800***12525**********PROMO ALLOWANCE~
SAC*A*A260*ZZ*AGENCY**Z*1*1*EA*1*10*02*123456*654321*ADVERTISING ALLOWANCE*EN~
ITD*01*3*2.00*20100131*15*20100228*30*5*20100315*5*100*2% 2ND 15TH*15*E*10~
DTM*010*20090901*1200~
TD5*Z*2*FEDX*M*FED EX*******ND*ND*ND*US~
N9*ZZ*SPECIAL INSTRUCTIONS*INSTRUCTIONS~
MSG*PURCHASE ORDER NOTES HERE~
MSG*PURCHASE ORDER NOTES HERE TOO~
N1*VN*VENDOR NAME*92*VENDOR CODE~
N1*BT*BILL TO NAME*92*BILL TO CODE~
N2*BILL TO NAME 2*BILL TO NAME 3~
N3*123 MAIN ST*FLOOR 2~
N3*SUITE A*ROOM 1~
N4*ANYTOWN*FL*33333*US~
N1*ST*SHIP TO NAME*92*SHIP TO CODE~
N3*456 FIRST AVE~
N4*ANYWHERE*CA*99999*US*94*0001~
REF*ST*0001~
PER*DC*DELIVERY CONTACT*TE*8888888888~
PO1*1*8*EA*2.22*PE*BP*BUYER PART 1*VP*VENDOR PART 1*UP*987654321123*MF*XYZ~
PID*F**ZZ**PART 1 DESCRIPTION**PROMO~
PO4*12*4*EA*CTN*G*5*LB*1*CF*1*1*1*FT*1*AL*123*321*987~
SAC*A*A260*ZZ*AGENCY**Z*1*1*EA*1*10*02*123456*654321*ADVERTISING ALLOWANCE*EN~
IT8*N~
DIS*ZZZ*ZZ*5*DAT*10*100~
DTM*002*20100118~
SCH*8*EA***002*20100118~
N9*ZZ*LINE ITEM INSTRUCTIONS*INSTRUCTIONS~
MSG*LINE ITEM NOTES HERE~
PO1*2*4*EA*9.99*PE*BP*BUYER PART 2*VP*VENDOR PART 2*UP*987654321987*MF*XYZ~
PID*F****PART 2 DESCRIPTION~
CTT*1*12*10*LB*1*CF*DESCRIPTION~
SE*41*0001~
GE*1*000000001~
IEA*1*000000001~
GS*PO*SENDERGS*RECEIVERGS*20231030*025801*000000001*X*004010~
ST*850*0001~
BEG*00*SA*12345*00*20090602*4444*ZZ**FD~
CUR*ZZ*USD~
REF*VR*123456*VENDOR NUMBER~
REF*PG*ABC~
PER*BD*BUYER NAME*TE*5555555555*FX*4444444444*EM*NAME*EMAIL.COM~
FOB*PP*OR*ORIGIN*ZZ*ZZZ*OR*ORIGIN*ZZ*ORIGIN~
CSH*N~
SAC*A*F800***12525**********PROMO ALLOWANCE~
SAC*A*A260*ZZ*AGENCY**Z*1*1*EA*1*10*02*123456*654321*ADVERTISING ALLOWANCE*EN~
ITD*01*3*2.00*20100131*15*20100228*30*5*20100315*5*100*2% 2ND 15TH*15*E*10~
DTM*010*20090901*1200~
TD5*Z*2*FEDX*M*FED EX*******ND*ND*ND*US~
N9*ZZ*SPECIAL INSTRUCTIONS*INSTRUCTIONS~
MSG*PURCHASE ORDER NOTES HERE~
MSG*PURCHASE ORDER NOTES HERE TOO~
N1*VN*VENDOR NAME*92*VENDOR CODE~
N1*BT*BILL TO NAME*92*BILL TO CODE~
N2*BILL TO NAME 2*BILL TO NAME 3~
N3*123 MAIN ST*FLOOR 2~
N3*SUITE A*ROOM 1~
N4*ANYTOWN*FL*33333*US~
N1*ST*SHIP TO NAME*92*SHIP TO CODE~
N3*456 FIRST AVE~
N4*ANYWHERE*CA*99999*US*94*0001~
REF*ST*0001~
PER*DC*DELIVERY CONTACT*TE*8888888888~
PO1*1*8*EA*2.22*PE*BP*BUYER PART 1*VP*VENDOR PART 1*UP*987654321123*MF*XYZ~
PID*F**ZZ**PART 1 DESCRIPTION**PROMO~
PO4*12*4*EA*CTN*G*5*LB*1*CF*1*1*1*FT*1*AL*123*321*987~
SAC*A*A260*ZZ*AGENCY**Z*1*1*EA*1*10*02*123456*654321*ADVERTISING ALLOWANCE*EN~
IT8*N~
DIS*ZZZ*ZZ*5*DAT*10*100~
DTM*002*20100118~
SCH*8*EA***002*20100118~
N9*ZZ*LINE ITEM INSTRUCTIONS*INSTRUCTIONS~
MSG*LINE ITEM NOTES HERE~
PO1*2*4*EA*9.99*PE*BP*BUYER PART 2*VP*VENDOR PART 2*UP*987654321987*MF*XYZ~
PID*F****PART 2 DESCRIPTION~
CTT*1*12*10*LB*1*CF*DESCRIPTION~
SE*41*0001~
GE*1*000000001~
IEA*1*000000001~
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.