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
orderLineId | uuid The ID of the existing Order Line to split. |
newOrderLineId | uuid (optional) Optional. The ID to assign to the new Order Line. A new GUID is generated when omitted. |
quantity | number 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. |
newDeliveryId | uuid (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. |