Stedi maintains this guide based on public documentation from Logic Broker. Contact Logic Broker 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
ITD
130
Terms of Sale/Deferred Terms of Sale
Max use 1
Optional
DTM
150
Customer Order
Max use 1
Optional
DTM
150
Delivery Requested
Max use 1
Optional
DTM
150
Requested Ship
Max use 1
Optional
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
SAC Loop
OptionalMax >1
SAC
120
Heading > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Usage notes
—
Example
SAC Loop end
TD5
240
Heading > TD5
Carrier Details (Routing Sequence/Transit Time)
RequiredMax use 12
—
Usage notes
—
Example
If Identification Code Qualifier (TD5-02) is present, then Identification Code (TD5-03) is required
N9 Loop
OptionalMax >1
N9 Loop end
N1 Bill-to-Party
OptionalMax 1
N1
310
Heading > Bill-to-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
PER
360
Heading > Bill-to-Party > 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
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
—
- BD
- Buyer Name or Department
- IC
- Information Contact
N1 Bill-to-Party end
N1 Ordered By
OptionalMax 1
N1
310
Heading > Ordered By > 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 > Ordered By > 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
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
—
- BD
- Buyer Name or Department
- IC
- Information Contact
N1 Ordered By end
N1 Ship To
RequiredMax 1
N1
310
Heading > 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 > Ship To > 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
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
—
- BD
- Buyer Name or Department
- IC
- Information Contact
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 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
—
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
CTP Loop
OptionalMax >1
CTP Loop end
PID Loop
OptionalMax >1
PID
050
Detail > PO1 Loop > PID Loop > PID
Product/Item Description
RequiredMax use 1
—
Usage notes
—
Example
PID Loop end
PO4
090
Detail > PO1 Loop > PO4
Item Physical Details
OptionalMax use >1
—
Usage notes
—
Example
If either Gross Weight per Pack (PO4-06) or Unit or Basis for Measurement Code (PO4-07) 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
—
Usage notes
—
Example
SAC Loop end
N9 Loop
OptionalMax >1
N9 Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
RequiredMax >1
CTT Loop end
Summary end
EDI Samples
Sample 850
ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *191216*1836*U*00401*000000123*0*T*>~
GS*PO*SENDER*RECEIVER*20191216*1836*124*X*004010~
ST*850*0001~
BEG*00*SA*1599999999**20131031~
REF*CO*002152252~
REF*IA*V12345~
REF*PD*0001883~
REF*ST*12345~
REF*X9*ORD555444~
REF*IT*444~
REF*ZZ*1~
SAC*A*C310***500~
SAC*N*C310***1313~
SAC*N*G821***500~
SAC*N*H850***500~
SAC*N*ZZZZ***999~
SAC*C*G821***15~
SAC*C*H850***300~
SAC*C*ZZZZ***1212~
ITD*14*ZZ*1**10**30~
DTM*010*20151106~
DTM*002*20151107~
DTM*806*20161114~
TD5**2*UPSN**UPSN_CG*******CG~
N9*L1*GFT~
MSG*Get well soon!~
N1*BT*Merchant Co*92*1234567890~
N2*Jerry*Only~
N3*111 Merchant Lane*Apt 1~
N4*Yonkers*NY*10704*US~
PER*BD*Merchant Co*EM*Merchant@co.com*TE*111-222-3333~
N1*ST*Merchant Co*92*1234567890~
N2*Jerry*Only~
N3*111 Merchant Lane*Apt 1~
N4*Yonkers*NY*10704*US~
PER*BD*Jerry Only*TE*111-222-3333~
N1*OB*Merchant Co*92*1234567890~
N2*Jerry*Only~
N3*111 Merchant Lane*Apt 1~
N4*Yonkers*NY*10704*US~
PER*BD**EM*Merchant@co.com*TE*111-222-3333~
PO1*1*5*EA*31.02*TE*VN*49-98760*IN*J07874*UP*123456789012~
CTP**RTL*47.98~
PID*F*08***BLOUSE~
PID*F*SIZ***SIZE 15~
PID*F*35***Blue~
PID*F*ZZ***SK000001~
PO4******11*LB~
REF*ZZ*1~
SAC*A*C310***5~
SAC*C*H850***320~
SAC*C*G821***3~
SAC*C*ZZZZ***1010~
SAC*N*C310***1190~
SAC*N*G821***291~
SAC*N*H850***345~
SAC*N*ZZZZ***100~
MSG*MONOGRAM = DAS~
N9*L1*GFT~
MSG*Get well soon!~
N9*ZZ*Special Instructions~
MSG*Mark as FRAGILE~
CTT*1~
SE*62*0001~
GE*1*124~
IEA*1*000000123~
GS*PO*SENDER*RECEIVER*20191216*1836*124*X*004010~
ST*850*0001~
BEG*00*SA*1599999999**20131031~
REF*CO*002152252~
REF*IA*V12345~
REF*PD*0001883~
REF*ST*12345~
REF*X9*ORD555444~
REF*IT*444~
REF*ZZ*1~
SAC*A*C310***500~
SAC*N*C310***1313~
SAC*N*G821***500~
SAC*N*H850***500~
SAC*N*ZZZZ***999~
SAC*C*G821***15~
SAC*C*H850***300~
SAC*C*ZZZZ***1212~
ITD*14*ZZ*1**10**30~
DTM*010*20151106~
DTM*002*20151107~
DTM*806*20161114~
TD5**2*UPSN**UPSN_CG*******CG~
N9*L1*GFT~
MSG*Get well soon!~
N1*BT*Merchant Co*92*1234567890~
N2*Jerry*Only~
N3*111 Merchant Lane*Apt 1~
N4*Yonkers*NY*10704*US~
PER*BD*Merchant Co*EM*Merchant@co.com*TE*111-222-3333~
N1*ST*Merchant Co*92*1234567890~
N2*Jerry*Only~
N3*111 Merchant Lane*Apt 1~
N4*Yonkers*NY*10704*US~
PER*BD*Jerry Only*TE*111-222-3333~
N1*OB*Merchant Co*92*1234567890~
N2*Jerry*Only~
N3*111 Merchant Lane*Apt 1~
N4*Yonkers*NY*10704*US~
PER*BD**EM*Merchant@co.com*TE*111-222-3333~
PO1*1*5*EA*31.02*TE*VN*49-98760*IN*J07874*UP*123456789012~
CTP**RTL*47.98~
PID*F*08***BLOUSE~
PID*F*SIZ***SIZE 15~
PID*F*35***Blue~
PID*F*ZZ***SK000001~
PO4******11*LB~
REF*ZZ*1~
SAC*A*C310***5~
SAC*C*H850***320~
SAC*C*G821***3~
SAC*C*ZZZZ***1010~
SAC*N*C310***1190~
SAC*N*G821***291~
SAC*N*H850***345~
SAC*N*ZZZZ***100~
MSG*MONOGRAM = DAS~
N9*L1*GFT~
MSG*Get well soon!~
N9*ZZ*Special Instructions~
MSG*Mark as FRAGILE~
CTT*1~
SE*62*0001~
GE*1*124~
IEA*1*000000123~
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.