Stedi maintains this guide based on public documentation from ECIA. Contact ECIA for official EDI specifications. To report any errors in this guide, please contact us.
ECIA
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
TAX
070
Tax Reference
Max use 1
Optional
Bill To
N1
310
Name
Max use 1
Required
N2
320
Additional Name Information
Max use 2
Optional
N3
330
Address Information
Max use 2
Optional
N4
340
Geographic Location
Max use 1
Optional
REF
350
Reference Identification
Max use 12
Optional
PER
360
Administrative Communications Contact
Max use 1
Optional
FOB
370
F.O.B. Related Instructions
Max use 1
Optional
TD5
390
Carrier Details (Routing Sequence/Transit Time)
Max use 12
Optional
Ship To
N1
310
Name
Max use 1
Required
N2
320
Additional Name Information
Max use 2
Optional
N3
330
Address Information
Max use 2
Optional
N4
340
Geographic Location
Max use 1
Optional
REF
350
Reference Identification
Max use 12
Optional
PER
360
Administrative Communications Contact
Max use 1
Optional
FOB
370
F.O.B. Related Instructions
Max use 1
Optional
TD5
390
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
N1
310
Heading > Bill To > N1
Name
RequiredMax use 1
—
Usage notes
—
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
—
- 91
- Assigned by Seller or Seller's Agent
- 92
- Assigned by Buyer or Buyer's Agent
PER
360
Heading > Bill To > PER
Administrative Communications Contact
OptionalMax use >1
—
Usage notes
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
FOB
370
Heading > Bill To > FOB
F.O.B. Related Instructions
OptionalMax use 1
—
Example
If Transportation Terms Qualifier Code (FOB-04) is present, then Transportation Terms Code (FOB-05) is required
TD5
390
Heading > Bill To > 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
—
- 2
- Standard Carrier Alpha Code (SCAC)
- 92
- Assigned by Buyer or Buyer's Agent
N1 Bill To end
N1
310
Heading > Buyer > N1
Name
RequiredMax use 1
—
Usage notes
—
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
—
- 91
- Assigned by Seller or Seller's Agent
- 92
- Assigned by Buyer or Buyer's Agent
PER
360
Heading > Buyer > PER
Administrative Communications Contact
OptionalMax use >1
—
Usage notes
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
N1 Buyer end
N1
310
Heading > End User > N1
Name
RequiredMax use 1
—
Usage notes
—
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
PER
360
Heading > End User > 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
TD5
390
Heading > End User > 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
—
- 2
- Standard Carrier Alpha Code (SCAC)
- 92
- Assigned by Buyer or Buyer's Agent
N1 End User end
N1
310
Heading > Ship To > N1
Name
RequiredMax use 1
—
Usage notes
—
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
—
- 91
- Assigned by Seller or Seller's Agent
- 92
- Assigned by Buyer or Buyer's Agent
PER
360
Heading > Ship To > PER
Administrative Communications Contact
OptionalMax use >1
—
Usage notes
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
FOB
370
Heading > Ship To > FOB
F.O.B. Related Instructions
OptionalMax use 1
—
Example
If Transportation Terms Qualifier Code (FOB-04) is present, then Transportation Terms Code (FOB-05) is required
TD5
390
Heading > Ship To > 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
—
- 2
- Standard Carrier Alpha Code (SCAC)
- 92
- Assigned by Buyer or Buyer's Agent
N1 Ship To end
Heading end
Detail
PO1 Loop
RequiredMax >1
PO1
010
Detail > PO1 Loop > PO1
Baseline Item Data
RequiredMax use 1
—
Example
If Unit or Basis for Measurement Code (PO1-03) is present, then Quantity Ordered (PO1-02) is required
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
—
- CM
- Centimeter
- EA
- Each
- FT
- Foot
- IN
- Inch
- MR
- Meter
—
- HP
- Price per Hundred
- PE
- Price per Each
- TP
- Price per Thousand
SCH Loop
RequiredMax >1
—
- CM
- Centimeter
- EA
- Each
- FT
- Foot
- IN
- Inch
- MR
- Meter
—
- 002
- Delivery Requested
- 010
- Requested Ship
- 037
- Ship Not Before
SCH Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
RequiredMax >1
CTT Loop end
Summary end
EDI Samples
Sample
ISA~00~ ~00~ ~ZZ~SENDER ~ZZ~RECEIVER ~231102~0327~U~00401~000000001~0~T~>
GS~PO~SENDERGS~RECEIVERGS~20231102~032706~000000001~X~004010
ST~850~48910001
BEG~00~DS~P7962206580~~20060717
N1~ST~ABC COMPANY
N2~PO #2640
N3~304 MAPLE ST
N4~ANYTOWN~AZ~867530901~US
N1~BY~AVNET
N1~EN~ABC COMPANY
N2~ACCOUNTS PAYABLE
N3~304 MAPLE ST
N4~ANYTOWN~AZ~867530901~US
PER~IC~CASS~TE~5554111212
PER~IC~CASS~EM~N/A
TD5~O~92~UPG
PO1~1~2~EA~14.25~PE~VP~636121
SCH~2~EA~~~010~20060717
CTT~1~2
AMT~TT~28.5
SE~19~48910001
GE~1~000000001
IEA~1~000000001
GS~PO~SENDERGS~RECEIVERGS~20231102~032706~000000001~X~004010
ST~850~48910001
BEG~00~DS~P7962206580~~20060717
N1~ST~ABC COMPANY
N2~PO #2640
N3~304 MAPLE ST
N4~ANYTOWN~AZ~867530901~US
N1~BY~AVNET
N1~EN~ABC COMPANY
N2~ACCOUNTS PAYABLE
N3~304 MAPLE ST
N4~ANYTOWN~AZ~867530901~US
PER~IC~CASS~TE~5554111212
PER~IC~CASS~EM~N/A
TD5~O~92~UPG
PO1~1~2~EA~14.25~PE~VP~636121
SCH~2~EA~~~010~20060717
CTT~1~2
AMT~TT~28.5
SE~19~48910001
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.