I am trying to export data from orders dataset using ShopifyQL API. However, the result does not match the data I have in ShopifyWeb. The latest orders are missing (Now, it is “Apr 17, 2024 03:00 PM” and the last order I get from API was made at “Apr 15, 2024 09:00 PM”) and some “returns” and “net_sales” values are outdated. Any suggestion?
Here is a query example:
FROM
orders
SHOW
additional_fees,
discounts_adjustments,
gross_sales_adjustments,
returns,
additional_fees,
discounts,
duties,
gross_sales,
net_sales,
shipping,
taxes,
tips,
ordered_product_quantity,
returned_product_quantity,
net_product_quantity,
orders
GROUP BY
hour,
billing_city,
billing_country,
billing_region,
order_id,
sales_channel,
shipping_city,
shipping_country,
shipping_region
SINCE
-30d
UNTIL
today
ORDER BY
hour