list_expenses_accounts
Retrieve expense and purchase accounts (PGC group 6) from Holded with cursor-based pagination and optional field filtering to fetch account IDs, names, and account numbers.
Instructions
List expenses accounts (Holded API v2). Cursor-paginated: pass the previous response nextCursor as cursor. Response fields are snake_case; amounts are strings with decimal comma. Each account has id (Holded internal id), name, and accountNum (the PGC account number, e.g. 62900000). NOTE: this endpoint only returns expense/purchase accounts (PGC group 6). Income accounts (group 7, e.g. 700/705/759) are NOT listed here — fetch the full chart via get_chart_of_accounts, or read a known account by id via get_expenses_account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max items per page (server-paginated; use limit to control page size) | |
| cursor | No | Cursor from a previous response nextCursor | |
| fields | No | Project only these fields per item (e.g. ["id", "name", "accountNum"]). Reduces response size. NOTE: the PGC number field is `accountNum` (not `code`). | |
| summary | No | Return only count and pagination metadata without items (default: false) |