Cost Categories
Cost categories and cost reports
Authentication
Requires session cookie (web app) or API key (x-api-key header). All endpoints are tenant-scoped via entityId.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/cost-categories?entityId= | List cost categories |
| POST | /api/cost-categories | Create category |
| GET | /api/cost-reports?entityId= | Cost reports |
List cost categories
GET /api/cost-categories?entityId={entityId}
Returns cost categories for the entity.
Create category
POST /api/cost-categories
Body: { "entityId", "name", "code?", "parentId?", ... }
Cost reports
GET /api/cost-reports?entityId={entityId}
Returns cost reports. Supports period, categoryId, and other filters.