get_stock_transfer_suggestions
Analyzes product stock levels across warehouses and suggests transfers when stock differences exceed a set threshold to balance inventory.
Instructions
自動產生跨倉庫庫存調撥建議。
【用途】逐商品查詢各倉庫庫存,若同商品在不同倉庫之間的庫存差距過大 (差值 >= min_stock_diff),則建議從庫存多的倉庫調撥到庫存少的倉庫。 僅分析前 30 個商品以避免 API 速率限制。 【呼叫的 Shopline API】
GET /v1/products(商品列表)
GET /v1/products/{product_id}/stocks(各倉庫庫存)
GET /v1/warehouses(倉庫名稱對照) 【回傳結構】dict 含 products_analyzed、suggestions_count、suggestions 列表。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_stock_diff | No | 倉庫間庫存差距門檻,差距 >= 此值才建議調撥 |