List stock history
smaregi_list_stock_changesThe stock change history of one product in one store: date, amount, division (sale, purchase, transfer, adjustment...). GET /stock/changes/{product_id}/{store_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, from 1 (default 1). Pass the previous reply's next_page. | |
| sort | No | Sort order: comma-separated field names, ':desc' for descending (e.g. updDateTime:desc). | |
| limit | No | Results per page, 1-500 (default 50). | |
| fields | No | Comma-separated top-level field names to return (e.g. productId,productName); fewer fields = smaller replies. | |
| store_id | Yes | Numeric Smaregi id (string or number). | |
| product_id | Yes | Numeric Smaregi id (string or number). | |
| target_date | No | Only changes of this target date, as Smaregi formats it (yyyy-mm-dd). | |
| stock_division | No | Only changes of this stock division code. |