Stedi maintains this guide based on public documentation from AT&T. Contact AT&T 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
PO Type
Max use 1
Required
REF
050
Quote Number
Max use 1
Optional
REF
050
Supplier Number
Max use 1
Required
PER
060
Administrative Communications Contact
Max use 3
Required
FOB
080
F.O.B. Related Instructions
Max use 1
Optional
ITD
130
Terms of Sale/Deferred Terms of Sale
Max use 1
Optional
detail
PO1 Loop
PO1
010
Baseline Item Data
Max use 1
Required
PO3
030
Additional Item Detail
Max use 25
Optional
REF
100
Reference Identification
Max use 1
Required
MSG
289
Message Text
Max use 1
Optional
N1 Loop
N1
350
Name
Max use 1
Required
N3
370
Address Information
Max use 2
Optional
N4
380
Geographic Location
Max use 1
Optional
QTY
383
Quantity
Max use 1
Optional
REF
390
Distribution Number
Max use 1
Required
REF
390
Shipment Number
Max use 1
Required
PER
400
Delivery Contact
Max use 1
Optional
PER
400
Ship To Contact
Max use 1
Optional
DTM
406
Date/Time Reference
Max use 1
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
—
- BK
- Blanket Order (Quantity Firm)
- RL
- Release or Delivery Order—
- SA
- Stand-alone Order
PER
060
Heading > PER
Administrative Communications Contact
RequiredMax use 3
—
Usage notes
—
Example
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
AMT Loop
OptionalMax >1
Usage notes
—
AMT Loop end
N9 Loop
OptionalMax >1
N9 Loop end
N1
310
Heading > Bill To > N1
Name
RequiredMax use 1
—
Usage notes
—
Example
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
PER
360
Heading > Bill To > PER
Administrative Communications Contact
RequiredMax use >1
—
Usage notes
—
Example
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
N1 Bill To end
N1
310
Heading > Ship To > N1
Name
RequiredMax use 1
—
Usage notes
—
Example
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
PER
360
Heading > Ship To > PER
Administrative Communications Contact
RequiredMax use >1
—
Usage notes
—
Example
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
N1 Ship To end
PER
360
Heading > Vendor > PER
Administrative Communications Contact
RequiredMax use >1
—
Usage notes
—
Example
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
N1 Vendor end
Heading end
Detail
PO1 Loop
RequiredMax >1
—
- BG
- Bag
- BX
- Box
- CA
- Case
- CT
- Carton
- DA
- Days
- DZ
- Dozen
- EA
- Each
- FT
- Foot
- HR
- Hours
- HU
- Hundred
- LB
- Pound
- LO
- Lot
- MO
- Months
- PD
- Pad
- PF
- Pallet (Lift)
- PK
- Package
- Q1
- Quarter (Time)
- RL
- Roll
- RM
- Ream
- ST
- Set
- SY
- Square Yard
- TH
- Thousand
- YR
- Years
—
- BG
- Bag
- BX
- Box
- CA
- Case
- CT
- Carton
- DA
- Days
- DZ
- Dozen
- EA
- Each
- FT
- Foot
- HR
- Hours
- HU
- Hundred
- LB
- Pound
- LO
- Lot
- MO
- Months
- PD
- Pad
- PF
- Pallet (Lift)
- PK
- Package
- Q1
- Quarter (Time)
- RL
- Roll
- RM
- Ream
- ST
- Set
- SY
- Square Yard
- TH
- Thousand
- YR
- Years
PID Loop
RequiredMax >1
PID
050
Detail > PO1 Loop > PID Loop > PID
Product/Item Description
RequiredMax use 1
—
Usage notes
—
Example
PID Loop end
N9 Loop
OptionalMax >1
N9 Loop end
N1 Loop
RequiredMax >1
QTY
383
Detail > PO1 Loop > N1 Loop > QTY
Quantity
OptionalMax use >1
—
Usage notes
—
Example
Only one of Quantity (QTY-02) or Free-Form Message (QTY-04) may be present
RequiredMax use 1
To identify a composite unit of measure
(See Figures Appendix for examples of use)
Usage notes
—
REF
390
Detail > PO1 Loop > N1 Loop > REF
Distribution Number
RequiredMax use 1
—
Usage notes
—
Example
Variants (all may be used)
REFShipment NumberREF
390
Detail > PO1 Loop > N1 Loop > REF
Shipment Number
RequiredMax use 1
—
Usage notes
—
Example
Variants (all may be used)
REFDistribution NumberPER
400
Detail > PO1 Loop > N1 Loop > PER
Delivery Contact
OptionalMax use 1
—
Usage notes
—
Example
Variants (all may be used)
PERShip To ContactIf either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
PER
400
Detail > PO1 Loop > N1 Loop > PER
Ship To Contact
OptionalMax use 1
—
Usage notes
—
Example
Variants (all may be used)
PERDelivery ContactIf either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
N1 Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
RequiredMax >1
CTT Loop end
Summary end
EDI Samples
Sample
ST*850*0001~
BEG*00*SA*9999999*0*20070606~
CUR*BY*USD~
REF*Q1*999999999~
REF*ZZ*Handset Device Accessory~
REF*ZA*99999999~
PER*BD*FirstName LastName*TE*123-456-7890***EM*email.address@company.com~
FOB*PC~
ITD*01*3**********IMMEDIATE~
AMT*ACR*12200*D~
DTM*007*20070630~
N9*ZZ*AT&T MOBILITY MESSAGES~
MSG*FREE-FORM MESSAGE TEXT*SS~
N1*BT*BILL TO PARTY~
N3*STREET ADDRESS~
N4*CITY*ST*ZIPCO*US~
PER*BI*FirstName LastName*TE*123-456-7890***EM*email.address@company.com~
N1*ST*SHIP TO~
N3*STREET ADDRESS~
N4*CITY*ST*ZIPCO*US~
PER*ST*FirstName LastName*TE*123-456-7890***EM*email.address@company.com~
N1*VN*VENDOR NAME*92*VENDOR ID~
N3*STREET ADDRESS~
N4*CITY*ST*ZIPCO*US~
PER*SU*FirstName LastName*TE*123-456-7890***EM*email.address@company.com~
PO1*1*100*EA*424**SK*RTL.12345*VN*ITEM DESCRIPTION~
PO3*UP*20070606*EST*42400**100*EA~
PID*F****ITEM DESCRIPTION~
REF*ZZ*TAXABLE - YES~
MSG*FREE-FORM MESSAGE TEXT*SS~
N9*ZZ*AT&T MOBILITY MESSAGES~
MSG*FREE-FORM MESSAGE TEXT*SS~
N1*ST*MEMPHIS DISTRIBUTION CENTER*92*10107048~
N3*STREET ADDRESS~
N4*CITY*ST*ZIPCO*US~
QTY*B3*100*EA~
REF*KA*1~
REF*SI*1~
PER*DC*SHIP TO CONTACT*TE*123-456-7890~
PER*RQ*DELIVERY CONTACT*TE*123-456-7890~
DTM*017*20070630~
CTT*1~
AMT*BAP*42400*D~
SE*44*0001~
BEG*00*SA*9999999*0*20070606~
CUR*BY*USD~
REF*Q1*999999999~
REF*ZZ*Handset Device Accessory~
REF*ZA*99999999~
PER*BD*FirstName LastName*TE*123-456-7890***EM*email.address@company.com~
FOB*PC~
ITD*01*3**********IMMEDIATE~
AMT*ACR*12200*D~
DTM*007*20070630~
N9*ZZ*AT&T MOBILITY MESSAGES~
MSG*FREE-FORM MESSAGE TEXT*SS~
N1*BT*BILL TO PARTY~
N3*STREET ADDRESS~
N4*CITY*ST*ZIPCO*US~
PER*BI*FirstName LastName*TE*123-456-7890***EM*email.address@company.com~
N1*ST*SHIP TO~
N3*STREET ADDRESS~
N4*CITY*ST*ZIPCO*US~
PER*ST*FirstName LastName*TE*123-456-7890***EM*email.address@company.com~
N1*VN*VENDOR NAME*92*VENDOR ID~
N3*STREET ADDRESS~
N4*CITY*ST*ZIPCO*US~
PER*SU*FirstName LastName*TE*123-456-7890***EM*email.address@company.com~
PO1*1*100*EA*424**SK*RTL.12345*VN*ITEM DESCRIPTION~
PO3*UP*20070606*EST*42400**100*EA~
PID*F****ITEM DESCRIPTION~
REF*ZZ*TAXABLE - YES~
MSG*FREE-FORM MESSAGE TEXT*SS~
N9*ZZ*AT&T MOBILITY MESSAGES~
MSG*FREE-FORM MESSAGE TEXT*SS~
N1*ST*MEMPHIS DISTRIBUTION CENTER*92*10107048~
N3*STREET ADDRESS~
N4*CITY*ST*ZIPCO*US~
QTY*B3*100*EA~
REF*KA*1~
REF*SI*1~
PER*DC*SHIP TO CONTACT*TE*123-456-7890~
PER*RQ*DELIVERY CONTACT*TE*123-456-7890~
DTM*017*20070630~
CTT*1~
AMT*BAP*42400*D~
SE*44*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.