After a cart is returned, a requester or approver may want to change it (edit) or just look at it on the supplier's site (inspect). cXML supports both through the same PunchOutSetupRequest, with operation="edit" or operation="inspect".
How it works
- In the original PunchOutOrderMessage, the supplier sets
operationAllowedin the header (create,inspectoredit) to say what it will accept later, and puts an identifier in each item's SupplierPartAuxiliaryID (often a cart or configuration reference). - Later, the procurement system sends a PunchOutSetupRequest with
operation="edit"(orinspect) and includes the items as ItemOut elements, each with its SupplierPartID and SupplierPartAuxiliaryID. - The supplier rebuilds the cart from those items and opens it: editable for
edit, read-only forinspect. - For
edit, the user returns an updated cart with a new PunchOutOrderMessage as usual.
Platform support varies
Not every procurement system uses every operation. Coupa's supplier documentation, for example, states it supports create and inspect only. Check each platform's notes in our directory.
Implementation tips
- Rebuild the cart from ItemOut, not from your own memory of the session: the buyer may have removed lines or changed quantities in their system.
- Re-price on edit: contract prices may have changed since.
- Keep auxiliary IDs stable and unguessable; never put prices or secrets in them.
- If you do not support an operation, answer with a clear error status rather than opening an empty store.