@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
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!
@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%.
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
@Byrne C I had tried this too. Tried again now, 5.6% difference in numbers. UI has larger number.
@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