Split Order
Split items from an order into a new or existing order.
PATCH
/order-split
Request Body
{
"order": "789",
"items": ["345", "346", "347"]
}
Response
{
"data": {
"new_order_id": "890",
"original_order_id": "789",
"moved_items": ["345", "346", "347"]
}
}
Note: If there's an existing open order for the same client in the same sale, items will be merged into that order instead of creating a new one.