What the 850 is
The ANSI X12 850 is the electronic purchase order. A buyer sends it to a seller to request goods or services, and it carries the items, quantities, prices, ship-to locations and dates. It is normally the first document a new trading relationship implements, and the one everything else references.
Structure
An 850 has a header, one or more detail loops, and a summary. These are the segments that most often matter in practice.
| Set | Document | Direction | Notes |
|---|---|---|---|
| BEG | Beginning Segment | Header | PO number, PO type, date. BEG02 tells you if this is new, a change or a cancellation |
| REF | Reference Identification | Header | Department, vendor and contract numbers. Partner-specific and frequently mandatory |
| DTM | Date/Time Reference | Header | Requested ship and delivery dates. Qualifier decides which is which |
| N1 | Name / Party | Header | Ship-to, bill-to, buying party. Loops repeat per party |
| PO1 | Baseline Item Data | Detail | Quantity, unit of measure, price, item identifiers. The line-item workhorse |
| PID | Product Description | Detail | Free-form or structured item description |
| CTT | Transaction Totals | Summary | Line count for validation. Mismatch here rejects the document |
Common 850 segments. Which are mandatory varies by trading partner. Their specification governs.
A worked example
Two line items, simplified for readability:
ST*850*0001~
BEG*00*SA*4500098234**20260728~
REF*DP*0072~
DTM*002*20260812~
N1*ST*CENTRAL DISTRIBUTION CENTER*92*0451~
PO1*1*48*CA*14.25**UP*007800012345*VN*ABC-1180~
PID*F****ORGANIC TOMATO SAUCE 24OZ~
PO1*2*24*CA*18.90**UP*007800012352*VN*ABC-1182~
PID*F****ORGANIC MARINARA 24OZ~
CTT*2~
SE*11*0001~ Reading the important lines:
BEG*00*SA: 00 means original (not a change or cancellation); SA is a stand-alone orderREF*DP*0072: department 0072, mandatory for many retailersDTM*002*20260812: qualifier 002 is the requested delivery datePO1*1*48*CA*14.25: line 1, 48 cases at $14.25 per caseUPandVN: the partner's UPC and your vendor part number. This pair is where cross-referencing livesCTT*2: two line items. If this disagrees with the actual count the document rejects
Why 850s get rejected
- Item cross-reference gaps: a UPC or vendor part number with no match in your system. Comfortably the most common cause
- Unit-of-measure mismatch: they order cases, you stock eaches, nothing converts
- Missing mandatory REF segments: partner-specific and easy to overlook
- Unknown ship-to: a location code not in your master data
- CTT mismatch: declared line count disagrees with actual
- Price disagreement: accepted at 850 stage, then surfaces as a deduction after invoicing
Turning an 850 into a clean order
The document arriving is the easy part. What determines whether it becomes an order without human intervention is the mapping underneath: a maintained item cross-reference, unit-of-measure conversion, ship-to location matching, and pricing that agrees with the contract.
When companies say EDI is "not really automated" it is almost always this. The 850 lands correctly and then a person has to touch it, because a SKU was added last month and nobody updated the cross-reference.
Frequently asked
+ What is an EDI 850?
The 850 is the ANSI X12 purchase order, the electronic equivalent of a PO a buyer sends a seller. It carries what is being ordered, how much, at what price, where it ships and when it is needed. In most trading relationships it is the document that starts everything, and it is usually the first one implemented.
+ What is the difference between an 850 and an 875?
The 875 is the grocery industry equivalent, used under UCS rather than standard X12 retail conventions. If you are being set up with a grocery retailer, confirm which one they expect before mapping. Assuming 850 when the partner wants 875 is a common and costly mistake.
+ How does an 850 become an order in our ERP?
The 850 is translated and written into your ERP as a sales order. The step that decides whether this is clean is item cross-referencing: the partner orders using their SKU, and something has to map that to yours, including unit-of-measure conversion where they order cases and you stock eaches. Most 850 processing failures are cross-reference failures, not EDI failures.
+ What causes an 850 to be rejected?
Most commonly: missing partner-mandated REF segments, an item identifier that does not match the cross-reference, a unit-of-measure mismatch, a CTT line count that disagrees with the actual lines, or an unrecognized ship-to location. Almost all of these surface in the 997 or 855, which is why ignoring acknowledgments is expensive.
+ Do we have to acknowledge an 850?
Always send a 997 functional acknowledgment. Many partners also require an 855 purchase order acknowledgment confirming, rejecting or proposing changes at line level, and some measure you on how quickly it arrives.
Getting 850s that will not process cleanly?
If orders are arriving but somebody still has to touch them, the problem is usually cross-referencing rather than EDI. Send us a rejected document and a note about what your ERP did with it. We will tell you where it is failing.
No charge, no mailing list. We do this because it is usually a ten-minute answer and people remember who gave it to them.