Aggregate fields
Aggregate is returned as the aggregate entry of the Insights bundle. Check the entry's status before reading its data; the fields below describe that data payload. For what Aggregate summarises, see Aggregate in the Overview.
Using the fields
- Use
hierarchyto see where a node sits in the structure: top-level sections, nested subtables, individual rows and totals - Use
typeto decide how to parsevalues- as an array of child nodes, a time series object or a key-value object - Read Aggregate alongside the Completeness entry in the same bundle - low coverage can distort aggregated totals
Response fields
The data payload contains a tables array of aggregation nodes. Each node contains:
| Field | Description |
|---|---|
id | Unique identifier for the aggregation node |
name | Human-readable label for the aggregation category, when available |
hierarchy | Structural role of the node in the aggregation output: table, subtable, row, or total |
type | Data shape of the node's values field: objectArray, timeseries, or keyValue |
values | Aggregated values for the node. The structure depends on the node type (see below) |
The shape of values depends on type:
objectArray-valuesis an array of child nodes (recursive nesting)timeseries-valuesis an object keyed by"yyyy-MM"month with numeric amounts (ornullwhere no value exists), plus a total keykeyValue-valuesis an object of key/value pairs; values are mixed types (strings, numbers, dates, nulls)
Related
- Insights - Refresh and retrieve the bundle, and read each entry's status
- Completeness fields and Risk Score fields - The other entries in the bundle
- Get customer reports - Full response schema