split_order
Split an order into multiple sub-shipments for partial delivery or dispatch from different warehouses.
Instructions
[WRITE] 拆分訂單為多個子出貨單。
【用途】 將一筆訂單拆分為多個子單,適用於商品分批到貨或不同倉庫分開出貨的場景。 split_config 為字典,內容依 Shopline API 規格定義各子單。
【呼叫的 Shopline API】
POST /v1/orders/{order_id}/split
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
原訂單被拆分為多個子訂單,原訂單狀態可能變更
操作通常不可逆,請確認拆單設定正確後再執行
已出貨的訂單無法拆單
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | 訂單 ID | |
| split_config | Yes | 拆單設定,包含各子單的商品與配送資訊 |