expiries_upcoming
Find items expiring within a set number of days, including already expired entries, and get counts for expired, due, and valid statuses.
Instructions
What expires in the next days days (default 60, max 730), already expired items included, as flat rows {id, kind, label, number, provider, validFrom, expiresAt, daysLeft, status, remindDaysBefore, vehicleId, vehicle, notes} with counts {total, expired, due, ok}. The dashboard card uses the same list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) |