Use
order_id to group outbound shipments and their returns under the same order. This gives you end-to-end visibility across the entire customer journey — from initial dispatch through to any return — in one place.Key Order Fields
How Orders Are Created
Orders cannot exist as standalone objects in Perform.AI — they are always created in the context of a shipment. When you create a shipment and include anorder_id, Perform.AI either:
- Creates a new order with that
order_idif no matching order exists, or - Assigns the shipment to an existing order if an order with that
order_idalready exists.
order_id in your first shipment creation request. Subsequent shipments that share the same order_id are automatically grouped under that order.
Assigning Shipments to an Existing Order
To add a new shipment to an order that already exists, provide either theorder_uuid or the order_id in your shipment creation or update request.
order_uuidis preferred when bothorder_uuidandorder_idare provided in the same request — Perform.AI usesorder_uuidto resolve the target order.order_idworks equally well and is more convenient if you don’t want to store UUIDs in your system.
The order_reference Field
order_reference is a secondary human-readable reference for the order (for example, a marketplace order number or ERP reference). It behaves differently from order_id:
- You can only set
order_referencewhen creating a new order — include it alongside a neworder_idin your shipment creation request. - If you provide an
order_referencefor an existing order and the value differs from the one already stored, the API will reject the input. - Multiple orders can share the same
order_referencevalue.