Troubleshooting

Order changes and cancellations are not reaching fulfilment

The buyer amended a quantity or cancelled an order, their system shows it as sent, and your warehouse still shipped the original.

Short answer

Changes and cancellations arrive as ordinary OrderRequest documents. The difference is in OrderRequestHeader: type="update" for a change and type="delete" for a cancellation, with orderVersion counting up from 1. An update carries the whole order and replaces the previous version; it is not a list of differences. If your handler reads only the lines, every change looks like a new order or is thrown away.

Causes, most likely first

Ordered by how often each one turns out to be the culprit, not by how interesting it is. Work down the list.

  1. The header type is ignored

    How to confirm: Your handler has no code path that reads OrderRequestHeader type. Updates either create a second order or are rejected as duplicates of the orderID.

    Fix: Branch on type. New creates, update replaces the existing order with the same orderID, delete cancels it.

  2. An update is applied as a delta

    How to confirm: After a change, the order has the new lines plus the old ones, or a removed line is still there. Your code merged the update into the original.

    Fix: Replace the whole order with the update. A line missing from the update has been removed.

  3. Versions arrive or are processed out of order

    How to confirm: Version 3 was applied, then version 2 arrived late and overwrote it. Usually a queue that does not preserve order, or a retry of an older version.

    Fix: Store the orderVersion and ignore any document with a lower version than the one you hold.

  4. The change arrived after the goods left

    How to confirm: The update or delete is timestamped after dispatch. There was nothing to stop.

    Fix: Reply with a cXML Status that says the order has shipped, and tell the buyer through your normal channel. Accepting the change silently is worse than refusing it.

If it is not on your side

Ask the buyer how their system issues changes: as updates with an incremented version, or as a cancellation followed by a new order under a new number. Both patterns are in use and your handler needs to know which to expect.

Check the document itself

Before chasing “Order changes and cancellations are not reaching fulfilment” further, paste the cXML or OCI payload into our free tester. It runs in your browser and reports the structural problems buyers reject on. The interactive demo plays the whole round trip from the buyer's seat.

Open the tester Play the demo

Related questions

Can we refuse a change order?

Yes. Return a Status that says so with a reason, and follow up with the buyer. What you cannot do is accept it with a 200 and then not act on it — their system will treat the change as agreed.

Does a cancelled order need a confirmation?

Ask the buyer. Some expect an order confirmation for the cancellation as well as the 200 response; others treat the response as enough.

Rather not be the one debugging this?

A free PunchOut shop runs the PunchOut round trip for you: upload from Excel, test it, invite your buyer.

Start free Send us the error