cXML Order Integration - Change Orders
In Unimarket, change orders (edits to existing purchase orders) can be handled using two distinct logical configurations. The method chosen determines how integration messages are structured when they are sent to your ERP or supplier systems.
Comparison Summary
PO ID Status
Changes with every edit
Remains the same
cXML Type
delete followed by new
update
Traceability
Linked via order-source-identifier
Linked via orderID and orderVersion
Best For
ERPs that cannot modify existing POs
ERPs that support multi-versioning
Option 1: Using New Order Numbers
In this configuration, every time an order is edited, the system treats the change as a cancellation of the old record and the creation of a completely new one.
The Integration Sequence
Original Order: Sent as
type="new"with a unique ID (e.g.,1004891).Order Edit: Triggered when a user saves changes.
Cancellation Message: Sent with the original ID (
1004891) andtype="delete".
<OrderRequest>
<OrderRequestHeader orderDate="2023-04-06T14:33:37.680+12:00"
orderID="1004891"
orderType="regular"
type="delete">Replacement Message: Sent with a new ID (
1004892) andtype="new".
Key Extrinsics for Traceability
To help your ERP link these two separate records, the replacement order contains specific metadata:
order-source-type: Set toEDIT_ORDER.order-source-identifier: Contains the original order number (e.g.,1004891).
Option 2: Using Order Versions
In this configuration, the Purchase Order maintains its unique identifier throughout its lifecycle. Changes are tracked via an incrementing version number.
The Integration Sequence
Original Order: Sent as
type="new"with a unique ID (e.g.,100024).
Order Edit: Triggered when a user saves changes.
Update Message: Sent with the same ID (
100024) but the header changes totype="update".
XML Header Attributes
When an update is sent, the OrderRequestHeader includes:
type="update": Signals a change to an existing record.orderVersion="2": Indicates the revision level (starts at 2 and increases).isInternalVersion="no": Confirms this is an external change intended for the supplier/ERP.
Last updated