Stedi maintains this guide based on public documentation from Erico. Contact Erico 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
Max use 1
Optional
PER
060
Administrative Communications Contact
Max use 3
Optional
DTM
150
Delivery Requested
Max use 10
Optional
DTM
150
Ship No Later
Max use 10
Optional
DTM
150
Ship Not Before
Max use 10
Optional
TD5
240
Carrier Details (Routing Sequence/Transit Time)
Max use 12
Optional
MAN
270
Marks and Numbers
Max use 10
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
—
- DS
- Dropship
- EO
- Emergency Order
- NE
- New Order
- RO
- Rush Order
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
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
N9 Loop
OptionalMax >1
N9 Loop end
N1 Loop
OptionalMax >1
N1
310
Heading > N1 Loop > 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
—
- BS
- Bill and Ship To
- BT
- Bill-to-Party
- BY
- Buying Party (Purchaser)
- EN
- End User
- SE
- Selling Party
- ST
- Ship To
N1 Loop end
Heading end
Detail
PO1 Loop
RequiredMax >1
PO1
010
Detail > PO1 Loop > PO1
Baseline Item Data
RequiredMax use 1
—
Example
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-12) or Product/Service ID (PO1-13) is present, then the other is required
—
- HP
- Price per Hundred
- NC
- No Charge
- PE
- Price per Each
- PF
- Price Per Foot
- PP
- Price per Pound
—
- BP
- Buyer's Part Number
- UI
- U.P.C. Consumer Package Code (1-5-5)
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
- VC
- Vendor's (Seller's) Catalog Number
- VP
- Vendor's (Seller's) Part Number
PID Loop
OptionalMax >1
PID Loop end
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
SAC Loop end
SCH Loop
OptionalMax >1
SCH
295
Detail > PO1 Loop > SCH Loop > SCH
Line Item Schedule
RequiredMax use 1
—
Example
If Entity Identifier Code (SCH-03) is present, then Name (SCH-04) is required
SCH Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
OptionalMax >1
CTT Loop end
Summary end
EDI Samples
Drop Ship Example
ST*850*0001~
BEG*00*DS*123456789**20080828~
REF*VR*2116159~
PER*BD*GWEN STACEY*TE*800-555-1452*FX*800-555-7269~
MAN*ZZ*EDDIE BROCK 8/27/08~
N9*ZZ*HEADER MESSAGE TEXT~
MSG*1. CONFIRM RECEIPT OF ORDER.~
MSG*2. MATERIAL STOCK AT FACTORY.~
MSG*3. PLEASE HAVE SHIPPED IMMEDIATELY.~
MSG*4. ADVISE OF ANY ISSUES OR DELAYS.~
MSG*THANKS, HARRY OSBORN~
N1*BT*MARVEL STUDIOS~
N3*9242 BEVERLY BOULEVARD~
N4*BEVERLY HILLS*CA*90210~
N1*ST*THE DAILY BUGLE~
N2*ATTN: J. JONAH JAMISON / 800-555-6451~
N3*123 MAIN ST~
N4*NEW YORK*NY*10019~
N1*BY* MARVEL STUDIOS *92*SPIDL~
PO1*00010*3*EA*15.39*PE*VC*MC25X3KIT*UI*78285656654~
PID*F****KIT BAFFLE COVER 2.5X3~
DTM*106*20080829~
PO1*00020*3*EA*17.06*PE*VC*MC3X3KIT*UI*78285656655~
PID*F****KIT BAFFLE COVER 3X3~
DTM*106*20080829~
PO1*00030*3*EA*27.64*PE*VC*MC4X4KIT*UI*78285656656~
PID*F****KIT BAFFLE COVER 4X4~
DTM*106*20080829~
CTT*3*9~
SE*30*0001~
BEG*00*DS*123456789**20080828~
REF*VR*2116159~
PER*BD*GWEN STACEY*TE*800-555-1452*FX*800-555-7269~
MAN*ZZ*EDDIE BROCK 8/27/08~
N9*ZZ*HEADER MESSAGE TEXT~
MSG*1. CONFIRM RECEIPT OF ORDER.~
MSG*2. MATERIAL STOCK AT FACTORY.~
MSG*3. PLEASE HAVE SHIPPED IMMEDIATELY.~
MSG*4. ADVISE OF ANY ISSUES OR DELAYS.~
MSG*THANKS, HARRY OSBORN~
N1*BT*MARVEL STUDIOS~
N3*9242 BEVERLY BOULEVARD~
N4*BEVERLY HILLS*CA*90210~
N1*ST*THE DAILY BUGLE~
N2*ATTN: J. JONAH JAMISON / 800-555-6451~
N3*123 MAIN ST~
N4*NEW YORK*NY*10019~
N1*BY* MARVEL STUDIOS *92*SPIDL~
PO1*00010*3*EA*15.39*PE*VC*MC25X3KIT*UI*78285656654~
PID*F****KIT BAFFLE COVER 2.5X3~
DTM*106*20080829~
PO1*00020*3*EA*17.06*PE*VC*MC3X3KIT*UI*78285656655~
PID*F****KIT BAFFLE COVER 3X3~
DTM*106*20080829~
PO1*00030*3*EA*27.64*PE*VC*MC4X4KIT*UI*78285656656~
PID*F****KIT BAFFLE COVER 4X4~
DTM*106*20080829~
CTT*3*9~
SE*30*0001~
New Order Example
ST*850*0001~
BEG*00*NE*1234567890**20080827~
REF*VR*2046159~
PER*BD*MARY JANE WATSON*TE*800-555-1234*FX*800-555-5678~
N1*ST*MARVEL STUDIOS*92*SPID~
PO1*00010*50*EA*47.06*HP*VC*CATCR50*UI*78285659766~
PID*F****CABLE RETAINER CLIP PLASTIC~
DTM*106*20080903~
PO1*00020*200*EA*427.01*HP*VC*512*UI*78285667751~
PID*F****T-BAR BOX HANGER~
DTM*106*20080903~
PO1*00030*200*EA*102.17*HP*VC*MPLS*UI*78285648635~
PID*F****DRYWALL BRACKET~
DTM*106*20080903~
PO1*00040*560*EA*244.18*HP*VC*CAT324Z34*UI*78285630260~
PID*F****PRE-RIV ASSMBY~
DTM*106*20080903~
PO1*00050*50*EA*360.04*HP*VC*CAT64*UI*78285638353~
PID*F****4IN J-HOOK~
DTM*106*20080903~
CTT*5*1060~
SE*22*0001~
BEG*00*NE*1234567890**20080827~
REF*VR*2046159~
PER*BD*MARY JANE WATSON*TE*800-555-1234*FX*800-555-5678~
N1*ST*MARVEL STUDIOS*92*SPID~
PO1*00010*50*EA*47.06*HP*VC*CATCR50*UI*78285659766~
PID*F****CABLE RETAINER CLIP PLASTIC~
DTM*106*20080903~
PO1*00020*200*EA*427.01*HP*VC*512*UI*78285667751~
PID*F****T-BAR BOX HANGER~
DTM*106*20080903~
PO1*00030*200*EA*102.17*HP*VC*MPLS*UI*78285648635~
PID*F****DRYWALL BRACKET~
DTM*106*20080903~
PO1*00040*560*EA*244.18*HP*VC*CAT324Z34*UI*78285630260~
PID*F****PRE-RIV ASSMBY~
DTM*106*20080903~
PO1*00050*50*EA*360.04*HP*VC*CAT64*UI*78285638353~
PID*F****4IN J-HOOK~
DTM*106*20080903~
CTT*5*1060~
SE*22*0001~
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.