Product stock history
product_stock_historyRetrieve stock movement history for a single product in a specified warehouse, with pagination controls and optional cache refresh.
Instructions
Stock movements of one product in one warehouse.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"commodityId": "<commodityId>",
"warehouseId": "<warehouseId>"
},
"name": "product_stock_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, from 1 | |
| fresh | No | Skip the local cache | |
| per_page | No | Items per page, at most 100 | |
| commodityId | Yes | Product id | |
| warehouseId | Yes | Warehouse id |