There’s a couple of potential reasons why you might not be seeing the most recent day’s data being returned:
Data Processing Delay: Depending on the volume of data, it could take some time to process and make it available for querying. It’s not too unusual to see analytics data being delayed up to 48 hours, especially if it is a large store with a lot of orders.
Time Zone Differences: If the time zone of your store is different from the timezone of Shopify’s servers, there could be a discrepancy in the dates. Shopify servers operate in UTC, so if your store’s timezone is behind UTC, it could still be processing the data for the most recent day.
Query Time: The data might not have been available at the time the query was run. If you run the query early in the morning, the data for the previous day might still be processing.
Unfortunately, ShopifyQL doesn’t provide an option for specifying the time zone or processing status in the queries. You can try running the query later in the day to see if the data for the previous day is available.
Today 29/08/2023, I am still calling the same API. The latest data retrieved today is from 23/08/2023.
This API is flaky and does not provide fresh data. Is there something to do to get the latest data from this API? If it were at least consistent to retrieve data max two days old, it would be acceptable, but it’s not even doing that. Please advise.