create_order
Manually create an order in Shopline for phone orders, customer service orders, or offline transfers. Submit complete order data to generate the order, with optional inventory deduction and customer notifications.
Instructions
[WRITE] 建立新訂單。
【用途】 在 Shopline 商店中手動建立新訂單,適用於電話訂購、客服補單、線下訂單轉入等場景。 order_data 需包含 Shopline 建立訂單 API 所需的完整欄位。
【呼叫的 Shopline API】
POST /v1/orders
【回傳結構】 dict 含 success: bool, resource_id: str, message: str, order: dict。
【副作用】
在商店訂單列表中新增一筆訂單
可能觸發庫存扣減(取決於訂單內容與商店設定)
可能觸發客戶訂單確認通知(取決於商店設定)
建立後訂單立即生效,需確認資料正確再執行
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_data | Yes | 完整訂單資料,依 Shopline API 規格傳入所有必要欄位 |