getAll
Retrieve all categories, optionally filtered by group and transaction type.Parameters
Optional group ID to filter categories
Optional transaction type to filter by:
INCOME, EXPENSE, or TRANSFERResponse
Returns an array of category objects.Category ID
Category name
Category icon identifier
Transaction type:
INCOME, EXPENSE, or TRANSFERParent category ID if this is a subcategory
Group ID if category is group-specific
User ID if category is user-specific (custom category)
Creation timestamp
Last update timestamp
getAllSubCategories
Retrieve all subcategories, optionally filtered by group and transaction type.Parameters
Optional group ID to filter subcategories
Optional transaction type to filter by:
INCOME, EXPENSE, or TRANSFERResponse
Returns an array of subcategory objects (categories that have a non-nullparentId).
The structure is the same as the getAll endpoint response.
Category Hierarchy
Categories support a parent-child relationship:- Parent categories: Categories with
parentId: null - Subcategories: Categories with a non-null
parentIdthat references a parent category
TypeScript Types
Constraints
- Category name, type, group, and user combination must be unique
- Categories can be:
- System categories: Available to all users (
userId: null,groupId: null) - Group categories: Shared within a group (
groupId: set,userId: null) - User categories: Private to a specific user (
userId: set)
- System categories: Available to all users (
- Deleting a parent category cascades to all its subcategories