EDI 865 purchase order change acknowledgment: segments and codes
An EDI 865 is the seller’s message about a change to a purchase order. It can answer a buyer’s change request, accepting or rejecting it, or it can tell the buyer about a change the seller wants to make. It is transaction set 865 in the X12 standard, and it is the seller-side partner of the 860 purchase order change.
What is an EDI 865?
Stedi’s 865 reference titles it Purchase Order Change Acknowledgment/Request - Seller Initiated. It says the set “can be used to convey acceptance or rejection of changes to a previously submitted purchase order by the seller or to notify the buyer of changes initiated by the seller.”
So one set does two jobs:
- A reply. The buyer sent an 860. The seller sends an 865 to say which changes it accepts and which it rejects.
- A seller request. The seller needs to change the order on its own, for example a new ship date. The 865 tells the buyer.
It sits after the 850 purchase order and, when used, after the 860. It is different from the 855 purchase order acknowledgment, which answers the original order.
- 1Purchase order (850)
- 2Change request (860)
- 3Change acknowledgment (865)
- 4Ship notice (856)
A typical order flow. Which messages a partner actually uses varies.
Which segments does an 865 need?
Per Stedi’s X12 version 4010 reference page, these are mandatory:
| Segment | What it does |
|---|---|
| ST | Starts the transaction set |
| BCA | Beginning segment for the change acknowledgment |
| CTT | Transaction totals, inside an optional loop |
| SE | Ends the transaction set |
Line detail lives in the optional POC loop, which Stedi shows as repeating without a stated limit. Inside it, the POC segment is mandatory and an optional ACK loop can repeat up to 104 times. Optional header segments include REF, DTM, N1 loops for the parties, and others. Stedi lists many more optional segments, so your partner’s guide matters more than the base standard.
What does the BCA segment carry?
Per Stedi’s BCA page, the mandatory elements are:
- BCA01 is the transaction set purpose code.
- BCA03 is the purchase order number, assigned by the buyer.
- BCA06 is the date the purchaser assigned to the purchase order.
Useful optional elements:
- BCA02 is the acknowledgment type.
- BCA04 is the release number.
- BCA05 is the change order sequence number, which identifies a specific change or revision to a previously sent set.
- BCA09 is the seller’s order number.
- BCA10 is the date the sender assigned to the acknowledgment.
- BCA11 is the date of the purchase order change request.
Match on BCA03 and BCA05 first. If your system has several revisions of one PO, BCA05 tells you which change this message answers.
What does the POC segment say about each line?
The POC segment is the line item change. Per Stedi’s POC page, POC02, the change or response type code, is mandatory. The page says POC01 is the purchase order line identifier, POC03 is the quantity ordered, and POC06 is the unit price. It also notes that POC is used in both the 860 and the 865.
Some of the POC02 codes:
| Code | Meaning |
|---|---|
| PC | Price Change |
| QD | Quantity Decrease |
| QI | Quantity Increase |
| RS | Reschedule |
| RQ | Reschedule/Quantity Change |
| DI | Delete Item(s) |
| RC | Reject Item Change |
| CF | Cancel Previously Transmitted Purchase Order |
| NC | Concurrent Item (No Change) |
RC is the code that says a requested change was refused. NC says the line is unchanged. A message can mix these, so read every line.
What does the ACK segment add?
The ACK segment states what the seller did with the line. Per Stedi’s ACK page, ACK01 is the line item status code, which is the “action taken by the seller on a line item requested by the buyer.” It is mandatory within the ACK segment. ACK02 and ACK03 give a quantity and its unit, and ACK04 and ACK05 give a date qualifier and a date.
Per Stedi’s code list, ACK01 has 26 codes. Samples:
| Code | Meaning |
|---|---|
| IA | Item Accepted |
| IC | Item Accepted - Changes Made |
| IP | Item Accepted - Price Changed |
| IQ | Item Accepted - Quantity Changed |
| DR | Item Accepted - Date Rescheduled |
| BP | Item Accepted - Partial Shipment, Balance Backordered |
| IB | Item Backordered |
| IS | Item Accepted - Substitution Made |
| IH | Item on Hold |
| IR | Item Rejected |
| ID | Item Deleted |
Codes such as IP, IQ and IS mean the seller accepted the line but not exactly as asked. Those lines are worth a person’s review.
How can an order team handle an 865?
These steps are practical suggestions, not rules from the X12 standard.
- Find the order and the change. Use BCA03 and BCA05 to match the 865 to the PO and the 860 it answers.
- Sort by outcome. Lines that show only IA or NC usually need no follow-up. Lines with a changed price, quantity, date or item need a decision.
- Compare to what you asked. Illustrative example: you ask for a quantity decrease and the seller replies IQ (Item Accepted - Quantity Changed). Check whether the quantity matches your request before you treat the change as settled.
- Decide who owns it. One way to split it: price changes to purchasing or sales, date changes to the planner, and substitutions to whoever knows the customer.
- Answer back. If you do not accept the seller’s change, agree with your partner how you reply, whether by a new 860 or by contacting them.
- Record the result. Note what changed, who agreed, and when.
What goes wrong with 865 data?
These are practical risks, not rules from the standard:
- Reading the header only. A header that looks accepted can hide line rows with changed prices or dates.
- Unmatched change numbers. BCA05 does not match the revision you sent, so the 865 cannot be tied to a request.
- Code differences. Partners may use a smaller set of ACK01 and POC02 codes than the standard allows. Read their guide.
- Treating the 865 as shipment. A status such as “accepted” is not a ship notice. Wait for the 856.
- No file-level check. A 997 functional acknowledgment says the file was received. It does not say whether the changes were accepted.
Frequently asked questions
Is the 865 the same as the 855?
No. The 855 acknowledges the original purchase order. The 865 deals with changes to an order that already exists.
Who sends the 865?
The seller, to the buyer. Stedi’s title calls it seller initiated.
Do I need an 865 if I use 860?
Not always. In practice, partners differ in how they answer a change. Ask your trading partner which messages they send.
Where Dockmend fits
Dockmend is being built to help operations teams read seller change responses, compare them with the original request and flag price, quantity and date differences for a person to review. It is still being built, and we have not announced support for any specific EDI network or message. Start your free trial
This guide is general information, not legal or professional advice. EDI details vary by trading partner, version and implementation guide, so check your partner’s before you build or change anything.