For AI agents and LLMs: a structured documentation index is available at /llms.txt. Every page has a Markdown sibling — append .md to any URL.

Skip to content
Paddle Docs home

Invalid aggregation

The aggregation you requested isn't allowed for this measure field.

Example response
{
"error": {
"type": "request_error",
"code": "invalid_aggregation",
"detail": "The aggregation 'sum' is not allowed for field 'gross_revenue'.",
"documentation_url": "https://developer.paddle.com/errors/metrics/invalid_aggregation"
},
"meta": {
"request_id": "00000000-0000-0000-0000-000000000000"
}
}

Details

Status code
400
Error code
invalid_aggregation
Error message
The aggregation '%s' is not allowed for field '%s'.

Common causes

  • The agg for a measure isn't one of the aggregations allowed for that field.

Troubleshooting

Was this page helpful?