Hello,
Below is my payload for https://a.klaviyo.com/api/metric-aggregates/, however I do not get the data back broken down by campaign. However the same payload works for a different metric like “Clicked Email”
{
"data": {
"type": "metric-aggregate",
"attributes": {
"metric_id": "HnmbpY",
"measurements": ["count","unique","sum_value"],
"interval": "day",
"page_size": 1000,
"timezone": "America/New_York",
"by": ["Campaign Name"],
"filter": [
"greater-or-equal(datetime,2024-02-01)",
"less-than(datetime,2024-02-29)"
]
}
}
}
Below are payload results:

Goal is to retrieve sum_value (dollar amounts) for below metrics at campaign level for given dates.

Thanks,
Shikha