Stedi maintains this guide based on public documentation from AmerisourceBergen. Contact AmerisourceBergen 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
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
- NE
- New Order
- RO
- Rush Order
- US
- Urgent Service Request
N1 Loop Bill and ShipTo
RequiredMax 200
N1
310
Heading > N1 Loop Bill and ShipTo > 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
—
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 11
- Drug Enforcement Administration (DEA)
- 21
- Health Industry Number (HIN)
N1 Loop Bill and ShipTo end
N1 Ship To
OptionalMax 1
N1
310
Heading > Ship To > 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
—
- 1
- D-U-N-S Number, Dun & Bradstreet
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 11
- Drug Enforcement Administration (DEA)
- 21
- Health Industry Number (HIN)
- 91
- Assigned by Seller or Seller's Agent
- ZZ
- Mutually Defined
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
N1 Ship To end
N1 Supplier/Manufacturer
RequiredMax 1
—
- 1
- D-U-N-S Number, Dun & Bradstreet
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 11
- Drug Enforcement Administration (DEA)
- 21
- Health Industry Number (HIN)
- ZZ
- Mutually Defined
N1 Supplier/Manufacturer end
Heading end
Detail
PO1 Loop
RequiredMax 100000
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
—
- CA
- Case
- DE
- Deal
- DZ
- Dozen
- EA
- Each
- PK
- Package
—
- EN
- European Article Number (EAN) (2-5-5-1)
- LT
- Lot Number
- MF
- Manufacturer
- N1
- National Drug Code in 4-4-2 Format
- N2
- National Drug Code in 5-3-2 Format
- N3
- National Drug Code in 5-4-1 Format
- N4
- National Drug Code in 5-4-2 Format
- N5
- National Health Related Item Code in 5-5 Format
- N6
- National Health Related Item Code in 4-6 Format
- ND
- National Drug Code (NDC)
- NH
- National Health Related Item Code
- UA
- U.P.C./EAN Case Code (2-5-5)
- UK
- U.P.C./EAN Shipping Container Code (1-2-5-5-1)
- UP
- U.P.C. Consumer Package Code (1-5-5-1)
- UX
- Universal Product Number
- VX
- Vendor's Specification Number
PID Loop
OptionalMax 1000
Variants (all may be used)
Semi-structured (Code and Text)PID
050
Detail > PO1 Loop > PID Loop > PID
Structured (From Industry Code List)
RequiredMax use 1
—
Example
If Product Description Code (PID-04) is present, then Agency Qualifier Code (PID-03) is required
At least one of Product Description Code (PID-04) or Description (PID-05) is required
PID Loop end
PID Semi-structured (Code and Text)
OptionalMax 1000
Variants (all may be used)
PID LoopPID
050
Detail > PO1 Loop > Semi-structured (Code and Text) > PID
Product/Item Description
RequiredMax use 1
—
Example
PID Semi-structured (Code and Text) end
PO1 Loop end
Detail end
Summary
CTT Loop
RequiredMax 1
CTT Loop end
Summary end
EDI Samples
Sample from AmerisourceBergen 1
ISA|00| |00| |ZZ|SENDER |ZZ|RECEIVER |231117|0048|U|00401|000000001|0|T|>~
GS|PO|SENDERGS|RECEIVERGS|20231117|004823|000000001|X|004010~
ST|850|008123456~
BEG|00|NE|008123456||20120221~
ITD|01|3|2||10||14|||||2%10N14~
DTM|002|20120303~
N1|BS|ABC DC Sacramento|11|RA0310603~
N1|SU|MY PHARMACEUTICALS, INC|21|041GT4100~
PO1|1|24|EA|60||ND|4726195022~
PID|X||||ASPERIN MG 50 100~
PID|S|DF|DR|TAB~
CTT|1~
SE|11|008123456~
GE|1|000000001~
IEA|1|000000001~
GS|PO|SENDERGS|RECEIVERGS|20231117|004823|000000001|X|004010~
ST|850|008123456~
BEG|00|NE|008123456||20120221~
ITD|01|3|2||10||14|||||2%10N14~
DTM|002|20120303~
N1|BS|ABC DC Sacramento|11|RA0310603~
N1|SU|MY PHARMACEUTICALS, INC|21|041GT4100~
PO1|1|24|EA|60||ND|4726195022~
PID|X||||ASPERIN MG 50 100~
PID|S|DF|DR|TAB~
CTT|1~
SE|11|008123456~
GE|1|000000001~
IEA|1|000000001~
Sample from AmerisourceBergen 2
ISA|00| |00| |ZZ|SENDER |ZZ|RECEIVER |231117|0048|U|00401|000000001|0|T|>~
GS|PO|SENDERGS|RECEIVERGS|20231117|004838|000000001|X|004010~
ST|850|008123456~
BEG|00|DS|008123456||20120221~
REF|RQ|SUPPLIER-12345~
REF|0B|CP9300213~
REF|CO|SUPPLIER - IN~
ITD|05|3|||||14|||||NET 14~
DTM|002|20120303~
N1|BT|ABC DC Sacramento|11|RA0310603~
N1|SU|MY PHARMACEUTICALS, INC|21|041GT4100~
N1|ST|CUSTOMER FIRST STREET PHARMACY|91|010004444~
N3|1234 EAST FIRST STREET~
N4|LOS ANGELES|CA|90063~
PER|IC|Matt Baker|EM|dummy@firststreetpharma.com|TE|800-562-2526~
PO1|1|24|EA|60||ND|4726195022~
PID|X||||ASPERIN MG 50 100~
PID|S|DF|DR|TAB~
MSG|Line item text Dropship~
MSG|Test Shipping Instructions:~
CTT|1~
SE|20|008123456~
GE|1|000000001~
IEA|1|000000001~
GS|PO|SENDERGS|RECEIVERGS|20231117|004838|000000001|X|004010~
ST|850|008123456~
BEG|00|DS|008123456||20120221~
REF|RQ|SUPPLIER-12345~
REF|0B|CP9300213~
REF|CO|SUPPLIER - IN~
ITD|05|3|||||14|||||NET 14~
DTM|002|20120303~
N1|BT|ABC DC Sacramento|11|RA0310603~
N1|SU|MY PHARMACEUTICALS, INC|21|041GT4100~
N1|ST|CUSTOMER FIRST STREET PHARMACY|91|010004444~
N3|1234 EAST FIRST STREET~
N4|LOS ANGELES|CA|90063~
PER|IC|Matt Baker|EM|dummy@firststreetpharma.com|TE|800-562-2526~
PO1|1|24|EA|60||ND|4726195022~
PID|X||||ASPERIN MG 50 100~
PID|S|DF|DR|TAB~
MSG|Line item text Dropship~
MSG|Test Shipping Instructions:~
CTT|1~
SE|20|008123456~
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.