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) 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.

© 2024 Hantera AB. All rights reserved.