get_slow_movers
Identify products with high inventory and low sales by comparing stock and sales data, calculating days of supply, and flagging items exceeding a threshold or with zero sales to support clearance decisions.
Instructions
找出庫存高但銷量低的滯銷商品。
【用途】交叉比對商品庫存與銷售數據,計算每個商品的日均銷量與可售天數(days_of_supply), 標記 days_of_supply 超過門檻或零銷售的商品為滯銷品,協助清倉決策。 【呼叫的 Shopline API】
GET /v1/products(商品列表含庫存)
GET /v1/orders/search(銷售數據) 【回傳結構】dict 含 period、period_days、total_products、slow_movers(滯銷商品列表)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_date | Yes | 分析區間起始 YYYY-MM-DD | |
| end_date | Yes | 分析區間結束 YYYY-MM-DD | |
| days_threshold | No | 可售天數門檻,超過此值視為滯銷 |