EDI 850 purchase order

The buyer's purchase order in X12. The viewer opens with an example 850; paste your own to read it line by line.

The viewer reads the delimiters from the ISA segment. The text is read in this browser and never uploaded.

What an EDI 850 is

The 850 is the X12 purchase order. X12 describes it as the transaction set for placing orders for goods and services, and says it is not used for changes or acknowledgments. In X12's supply chain flow, a change to the order travels as an 860, and the supplier's answer as an 855.

The buyer's system sends the 850 to the supplier. The supplier's translator returns a 997 to confirm that it arrived and parsed. The order then goes into the supplier's ERP as a sales order.

The 850 segment by segment

This table follows the example in the viewer above. Each buyer publishes an implementation guide that says which segments and codes it uses, such as 3M's 850 specification. Check your customer's guide for the final word.

SegmentWhat it carriesIn the example
ISAThe interchange header: sender and receiver IDs, date and time, the control number, and the delimitersISA*00* *00* *ZZ*FERROVALE *ZZ*QUILLFI...
GSThe functional group header: the group code, the version, and the group control numberGS*PO*FERROVALE*QUILLFIELD*20261005*0930*101*X*004010~
STThe start of one transaction set, with its number and control numberST*850*0001~
BEGThe order itself: purpose, order type, purchase order number, and dateBEG*00*SA*4500012345**20261005~
CURThe currency of the pricesCUR*BY*USD~
REFA reference number, named by its qualifierREF*IA*V-20417~
PERA contact at the buyer, with phone and emailPER*BD*Dana Whitlock*TE*6145550147*EM*purchasing@ferrovale.ex...
ITDPayment terms: discount percent and days, net daysITD*01*3*2**10**30~
DTMA date, named by its qualifier, such as 002 for delivery requestedDTM*002*20261016~
N1, N3, N4A party, its address, and its city: buyer, ship-to, vendorN1*BY*Ferrovale Industrial Supply*92*FIS-PURCH~ and 2 more
PO1One order line: quantity, unit, unit price, and product IDsPO1*1*12*EA*412.50**BP*FIS-71402*VP*QE-1614-8-SS~ and 3 more
PIDThe description of the line above itPID*F****Stainless steel wall-mount enclosure, NEMA 4X, 16 x ... and 3 more
CTTThe number of lines and a hash total of the quantitiesCTT*4*94~
SEThe end of the set: the number of segments from ST to SE, and ST's control numberSE*22*0001~
GE and IEAThe ends of the group and the interchange, each with its count and control numberGE*1*101~

The example explained

The example is an order from Ferrovale Industrial Supply, a fictional distributor, to Quillfield Enclosures, a fictional manufacturer, for electrical enclosures and parts:

SE01 says the set has 22 segments, and the viewer's Checks tab confirms that the count matches from ST to SE.

Take the orders that arrive as PDFs

ThriveAI's order desk reads purchase orders that arrive by email and matches each line to your items and that customer's prices. It drafts the ERP order for a person to approve. Derik will tell you what a four-week build would cover.

See order desk automation

How an 850 maps to a sales order in your ERP

Taking an 850 means mapping it to a sales order field by field, and handling the lines that do not map cleanly:

Sales order fieldFrom the 850What to check
CustomerISA06 or GS02, the sender's IDEach trading partner ID maps to one customer account
Customer PO numberBEG03The same number arriving twice: BEG01 07 marks a duplicate
Order dateBEG05A real date, written CCYYMMDD
Ship-to addressN1*ST with N3 and N4, or the ID in N104The ID exists in the customer's ship-to list
Requested dateDTM*002Whether the plant can meet it
Payment termsITDThe same terms as the customer account
ItemPO1 vendor part (VP), or buyer part (BP) through a cross-referenceA buyer part with no cross-reference stops the line
Quantity and unitPO102 and PO103Cases against eaches: convert before you enter
Unit pricePO104The customer's price list or contract

The guide to the sales order covers what the order needs before it reaches the floor.

Common reasons an 850 fails

Where the 850 sits in order to cash

The 850 opens the cycle. Then come the supplier's 855 acknowledgment, the 856 ship notice when the goods leave, the 810 invoice, and the 820 payment. A 997 goes back after each document. The guide to the order to cash process shows where each step tends to break.

How AI reads the purchase orders that are not EDI

An 850 arrives already structured. A customer who emails a PDF purchase order sends the same fields in a layout of its own, and someone keys them into the ERP. ThriveAI's order desk reads those orders into the same fields: PO number, ship-to, and each line's part number, quantity, price, and date. It matches each line to your items and checks the price against that customer's, then drafts the ERP order for a person to approve.

Questions

What is an 850 in EDI?
An 850 is the X12 purchase order: the document a buyer's system sends a supplier to order goods or services. It carries the PO number and date in BEG and the parties in N1 loops. Each line is a PO1 segment with quantity, unit, price, and part numbers, and CTT carries the totals.
What is the difference between an 850 and an 855?
The buyer sends the 850 to place the order. The supplier sends the 855 back to acknowledge it, line by line: accepted, changed, backordered, or rejected. A change to the order after it was sent travels as an 860. The viewer on this page reads the 850 and the 855 as documents, and shows an 860 segment by segment.
What is EDI with an example?
A purchase order sent as an 850 is the classic example. Instead of a PDF, the buyer's system sends coded segments, one PO1 segment per line. Line 1 of the example orders 12 enclosures at 412.50 each, with the buyer's and the vendor's part numbers. The viewer on this page opens with the full order.
What does the BEG segment hold?
BEG opens the 850. BEG01 is the purpose, such as 00 for original. BEG02 is the order type, such as SA for stand-alone. BEG03 is the purchase order number, BEG04 a release number, and BEG05 the order date, written CCYYMMDD.
Why does a 997 come back after an 850?
The 997 is the functional acknowledgment. It tells the buyer that the 850 arrived and passed the syntax checks, or that it was rejected and why. It says nothing about whether the supplier accepts the order. That answer comes in the 855.
Can I convert an 850 to Excel?
Yes. Open or paste the 850 in the viewer on this page and select Download CSV. Each PO1 line becomes a row with its line number, quantity, unit, unit price, amount, buyer part, vendor part, and description. The file opens in Excel, and nothing is uploaded.

Contact

Take the purchase orders that arrive as PDFs

Tell Derik how many orders arrive by EDI and how many by email. He will tell you what a four-week build would cover for the emailed ones.

Prefer to talk? Book a meeting.

Your message goes to Derik Lawlis, the founder.