stock_history
Retrieve recent stock journal entries for purchases, usage, openings, and corrections. Filter by product and time range to verify amounts or locate transaction IDs for reversal.
Instructions
What has been bought, used, opened or corrected recently.
Grocy's stock journal, newest first. Use it to answer "what did we get through this week", to check a suspicious amount, or to find the transaction_id of something that needs undoing.
Args: days: How far back to look. Defaults to a month. product: Optional — restrict to one product. limit: Maximum rows returned, newest first. Defaults to 100.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| limit | No | ||
| product | No |