For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Feature
New Order Numbers
Order Versions

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

  1. Original Order: Sent as type="new" with a unique ID (e.g., 1004891).

  2. Order Edit: Triggered when a user saves changes.

  3. Cancellation Message: Sent with the original ID (1004891) and type="delete".

<OrderRequest>
    <OrderRequestHeader orderDate="2023-04-06T14:33:37.680+12:00"
                        orderID="1004891"
                        orderType="regular"
                        type="delete">
  1. Replacement Message: Sent with a new ID (1004892) and type="new".

Key Extrinsics for Traceability

To help your ERP link these two separate records, the replacement order contains specific metadata:

  • order-source-type: Set to EDIT_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

  1. Original Order: Sent as type="new" with a unique ID (e.g., 100024).

  1. Order Edit: Triggered when a user saves changes.

  2. Update Message: Sent with the same ID (100024) but the header changes to type="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