create_promotion
Creates a new promotion in your Shopline store, such as discount codes, buy-one-get-one, or tiered discounts. Define rules and activate by providing promotion data.
Instructions
[WRITE] 建立新促銷活動。
【用途】 在 Shopline 商店中建立新的促銷活動,例如折扣碼、買一送一、滿額折扣等。
【呼叫的 Shopline API】
POST /v1/promotions
【回傳結構】 dict 含 success: bool, resource_id: str, message: str, promotion: dict。
【副作用】
在商店促銷列表中新增一筆促銷活動,活動狀態依 promotion_data 設定而定
若活動設定為立即啟用,消費者即可使用該促銷
促銷規則設定後如需修改,請使用 update_promotion
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| promotion_data | Yes | 促銷活動資料(參考 Shopline promotion 物件結構) |