165a6d16a9a0
latestOpenAPI 3.1.02026-08-069158174.8 KBCRM Service Calls
CRM Aggregate
Aggregate Invoices
Aggregate invoices by group-by fields — ideal for dashboards, charts, and analytics.
Use this endpoint to build invoice status distributions, revenue charts by stage, or AR (accounts receivable) dashboards.
Request Body (AggregateRequest): Same as leads/aggregate.
Examples:
- Invoices by stage: {"group_by_fields": ["stage"]}
- Invoices by stage with amount: {"group_by_fields": ["stage"], "aggregate_field": "total_amount"}
post/crm/invoices/aggregate
Request body
Response
Successful Response