list_promotions
Fetch a list of promotions filtered by status. Use it to analyze active, scheduled, or ended promotions and retrieve promotion IDs for further details.
Instructions
取得促銷活動列表,支援依狀態篩選。
【用途】 瀏覽商店目前所有促銷活動,了解進行中、已排程或已結束的促銷。 可用於分析促銷策略,或取得 promotion_id 後進一步查詢詳情。
【呼叫的 Shopline API】
GET /v1/promotions
【回傳結構】 dict 含 total_found, returned, items[]。 每筆包含 id, title, status, discount_type, start_at, end_at。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | 促銷狀態篩選,例如 'active'、'inactive'、'scheduled' | |
| max_results | No | 最多回傳筆數 |