Skip to main content
Solved

Flow Reporting API and UI discrepancy

  • April 22, 2025
  • 6 replies
  • 105 views

Forum|alt.badge.img

I am trying to use reporting API to get the same values as the dashboard.

I am getting 100% match for campaigns but not for flows.

API: https://a.klaviyo.com/api/flow-values-reports

{

"data": {

"type": "flow-values-report",

"attributes": {

"timeframe": {

"start": "2025-03-01T00:00:00-04:00",

"end": "2025-03-31T23:59:59-04:00"

},

"statistics": [

"conversion_value"

],

"conversion_metric_id": "VYi3ed",

}

}

}

 

I have tried lots of trial and error, it never matched 100%

Best answer by Byrne C

@pratik-choudhari,

Thanks for your patience while I investigated this with my team. At this point, the best way to solve this would be for a member of our support team to go into your account and take a look at the calls you’re making and also the dashboard you’re comparing it to. It’s a bit tricky to diagnose the issue on the community forum without access to your account. Feel free to reference this thread in your support ticket, so our support team can get caught up on what we’ve already tried. If needed, we can have a support agent with developer/engineer experience take a closer look as well. If you create a ticket at klaviyo.com/support, we’ll look into this!

-Byrne

6 replies

Byrne C
Community Manager
Forum|alt.badge.img+27
  • Community Manager
  • April 23, 2025

@pratik-choudhari,

How much of a difference are you seeing? The difference you’re seeing is in the value of the conversions in the UI vs the value returned by the API, correct?

-Byrne


Byrne C
Community Manager
Forum|alt.badge.img+27
  • Community Manager
  • April 23, 2025

Hey again ​@pratik-choudhari.  Can you confirm that the time frame in your API call is using the same timezone as the timezone in your account? That might be the issue!


Forum|alt.badge.img

@Byrne C That's right, the discrepancy is between UI dashboard data and API data.The timezone set in account is America/Montreal, I am using the same timezone in API requests. The difference I am seeing is 5-10%.


Byrne C
Community Manager
Forum|alt.badge.img+27
  • Community Manager
  • April 29, 2025

Thanks for your patience, ​@pratik-choudhari,

I spoke with our engineers and they recommended structuring the call like this:

"data": {
"type": "flow-values-report",
"attributes": {
"timeframe": {
"start": "2025-03-01T00:00:00-00:00",
"end": "2025-03-31T23:59:59-00:00"
},
"statistics": [
"conversion_value"
],
"conversion_metric_id": "VYi3ed",
}
}
}

This will make sure that the time zone of your call matches up exactly with the time zone in your account, and you shouldn’t see any more discrepancies.

-Byrne


Forum|alt.badge.img

@Byrne C I had tried this too. Tried again now, 5.6% difference in numbers. UI has larger number.


Byrne C
Community Manager
Forum|alt.badge.img+27
  • Community Manager
  • Answer
  • May 5, 2025

@pratik-choudhari,

Thanks for your patience while I investigated this with my team. At this point, the best way to solve this would be for a member of our support team to go into your account and take a look at the calls you’re making and also the dashboard you’re comparing it to. It’s a bit tricky to diagnose the issue on the community forum without access to your account. Feel free to reference this thread in your support ticket, so our support team can get caught up on what we’ve already tried. If needed, we can have a support agent with developer/engineer experience take a closer look as well. If you create a ticket at klaviyo.com/support, we’ll look into this!

-Byrne