Get categories with optional filtering and transaction inclusion
Retrieve transaction categories for an entity with flexible filtering options. Categories correspond to accounts from the Chart of Accounts that can be used for transaction categorization (excluding bank accounts).
**Query Options:**
- Get all categories: `?entityId=xxx`
- Get specific category: `?entityId=xxx&categoryId=yyy`
- Include transactions: `?entityId=xxx&includeTransactions=true`
- Get specific category with transactions: `?entityId=xxx&categoryId=yyy&includeTransactions=true`
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Query parameters
entityId
The ID of the entity to get categories for
categoryId
Optional - Filter to a specific category by ID
type
Filter categories by account type
Allowed values:
includeTransactions
Include transaction data for each category
startDate
Filter transactions from this date (ISO 8601 format)
endDate
Filter transactions to this date (ISO 8601 format)
cursor
Cursor for transaction pagination (when includeTransactions=true)
pageSize
Number of transactions per category (when includeTransactions=true)
includeAllStates
Include transactions in all states (when includeTransactions=true)
Response
Categories retrieved successfully
categories
totalCount
Total number of categories returned
isSingleCategory
True if filtering to a specific categoryId