update_order
Modify order fields like notes or shipping address — only send the fields you want to change, leaving others untouched.
Instructions
[WRITE] 更新訂單欄位。
【用途】 修改訂單的可編輯欄位(如備註、配送地址等)。僅傳入要修改的欄位,未傳入欄位不受影響。
【呼叫的 Shopline API】
PATCH /v1/orders/{order_id}
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
訂單資料立即變更,不可復原(可再次呼叫此工具覆蓋)
部分欄位(如金額)可能受限於訂單狀態而無法修改
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | 訂單 ID | |
| fields | Yes | 要更新的欄位與值,以字典形式傳入 |