List Expenses
list_expensesRetrieve expenses with filters like date range, vendor, or category. Supports pagination and returns results sorted newest first.
Instructions
List all expenses with optional pagination and date range filters. Returns expenses sorted by date (newest first). Example: from='2026-01-01', to='2026-03-31', limit=50 / Lista todos los gastos con paginacion y filtros de fecha opcionales.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date filter (YYYY-MM-DD) / Fecha fin | |
| from | No | Start date filter (YYYY-MM-DD) / Fecha inicio | |
| after | No | Cursor for cursor-based pagination (document ID) / Cursor para paginacion basada en cursor | |
| limit | No | Max results (1-100) / Resultados maximos | |
| fields | No | Comma-separated field names to return (e.g. 'id,description,amount') / Campos a devolver | |
| offset | No | Offset / Desplazamiento | |
| category | No | Filter by expense category (e.g. 'office', 'travel') / Filtrar por categoria | |
| vendorId | No | Filter by vendor ID / Filtrar por ID de proveedor |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| limit | Yes | ||
| total | Yes | ||
| offset | Yes | ||
| nextCursor | No |