delete_promotion
Permanently delete a promotion by its ID. Use to remove expired, test, or incorrectly created promotions. After deletion, related discount codes become invalid, while historical orders remain unaffected.
Instructions
[WRITE] 刪除促銷活動。
【用途】 永久刪除指定的促銷活動。通常用於清除過期、測試或錯誤建立的活動。
【呼叫的 Shopline API】
DELETE /v1/promotions/{promotion_id}
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
永久刪除該促銷活動,不可復原
刪除後消費者無法再使用與該活動相關的折扣碼或優惠
已套用該促銷的歷史訂單不受影響
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| promotion_id | Yes | 促銷活動 ID |