list_expenses_accounts
List expense accounts with pagination and field filtering. Retrieve only PGC group 6 accounts (e.g., 62900000) by page, optionally selecting specific fields to reduce response size.
Instructions
List expenses accounts with pagination support. Supports field filtering to reduce response size. 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 |
|---|---|---|---|
| page | No | Page number (starting from 1, default: 1) | |
| fields | No | Select specific fields to return (e.g., ["id", "name", "accountNum"]). Reduces response size. If not provided, returns default fields: id, name, accountNum. NOTE: the PGC number field is `accountNum` (not `code`). | |
| summary | No | Return only total count and page count without items (default: false) | |
| pageSize | No | Number of items per page (default: 50, max: 500) |