App reviews, troubleshooting, and recommendations
I am seeing a discrepancy between these two endpoints - Anyone encountered this before?
order_url = f"https://{shop_name}.myshopify.com/admin/api/2024-07/orders.json"
order_response = requests.get(order_url + "?status=any&financial_status=refunded", headers=headers)
# returns 1 order
count_url = f"https://{shop_name}.myshopify.com/admin/api/2024-07/orders/count.json"
count_response = requests.get(count_url + "?status=any&financial_status=refunded", headers=headers)
# returns 96 count
I would expect them to match exactly?
Hi @Adlogics,
The order endpoint might return a limited number of results per page. That's why make sure you're handling pagination correctly and retrieving all pages of results. Then check if the query parameters you use in both the orders and count endpoints are identical and correctly formatted. Make sure you’re not hitting Shopify API limits, as it can affect the data you receive.
But the easiest way is to contact Shopify support, as I did.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024