Copy link to clipboard
Copied
I am creating a dashboard using the API2.0. I found out that when you request hourly data eg orders.
The data refreshes in half hour chunks. The values for future time are always zero. So there is now way to know if the hour data is completely processed or not.
Is there anyway to get completely processed data for an hour ?
The only way to achieve this is to build segments with time of day e.g: 1:00 pm, 2:00pm etc. Use this segment ids while making the call depending on current time. If its less than 35 mins past the hour use previous hour segment.
E.g:
If current time is 14:10.
= Use segment id for 13:00
If current time is 14:40.
= Use segment id for 14:00.
Copy link to clipboard
Copied
The only way to achieve this is to build segments with time of day e.g: 1:00 pm, 2:00pm etc. Use this segment ids while making the call depending on current time. If its less than 35 mins past the hour use previous hour segment.
E.g:
If current time is 14:10.
= Use segment id for 13:00
If current time is 14:40.
= Use segment id for 14:00.