execute_order_shipment
Updates an order's status to shipped and triggers the Shopline shipment flow. Use this after warehouse confirms dispatch.
Instructions
[WRITE] 執行訂單出貨。
【用途】 將指定訂單標記為已出貨,觸發 Shopline 出貨流程,適用於倉庫確認出貨後的狀態更新。
【呼叫的 Shopline API】
POST /v1/orders/{order_id}/shipment
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
訂單出貨狀態更新為已出貨
可能觸發客戶出貨通知(取決於商店設定)
訂單需處於可出貨狀態,否則 API 會回傳錯誤
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | 訂單 ID |