Skip to content
← Back to Index

Command: order.splitOrderLine ​

Splits an existing order line into two by moving a portion of its quantity onto a new order line. The new line inherits product, price, dynamic fields and per-unit SKU composition from the original. Discounts and totals are left to be recomputed by the order pipeline.

Body
orderLineIduuid The ID of the existing Order Line to split.
newOrderLineIduuid (optional) Optional. The ID to assign to the new Order Line. A new GUID is generated when omitted.
quantitynumber The quantity to move from the original Order Line onto the new one. Must be greater than 0 and less than the original line's quantity.
newDeliveryIduuid (optional) Deprecated: use newFulfillmentId. Optional. The ID of an existing Delivery to place the new Order Line in. The new line stays in the original line's Delivery when omitted.
newFulfillmentIduuid (optional) Optional. The ID of an existing Fulfillment to place the new Order Line in. The new line stays in the original line's Fulfillment when omitted.

At most one of. newDeliveryId and newFulfillmentId are alternatives — supply at most one of them. Supplying both is an INVALID_COMMAND error. Supplying neither keeps the new line in the original line's fulfillment.

© 2026 Hantera AB. Org. no.: 559242-9582