Skip to main content
Vikaz
Participant
January 3, 2019
Answered

API 2.0 completely processed data

  • January 3, 2019
  • 1 reply
  • 410 views

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 ?

This topic has been closed for replies.
Correct answer Vikaz

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.

1 reply

Vikaz
VikazAuthorCorrect answer
Participant
June 28, 2019

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.