create_gift
Add a new gift record to the Shopline store for use with promotional campaigns. Specify gift name, SKU, and quantity to enable rule-based automatic distribution.
Instructions
[WRITE] 建立新贈品。
【用途】 在 Shopline 商店中建立一個新的贈品記錄,可搭配促銷活動使用。
【呼叫的 Shopline API】
POST /v1/gifts
【回傳結構】 dict 含 success: bool, resource_id: str, message: str, gift: dict。
【副作用】
在商店贈品列表中新增一筆記錄
贈品建立後可透過促銷規則設定觸發條件
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gift_data | Yes | 贈品資料,例如 {name, sku, quantity, ...} |