Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Admin REST api discrepancy on count vs returned orders

Admin REST api discrepancy on count vs returned orders

Adlogics
Shopify Partner
4 0 0

I am seeing a discrepancy between the below two endpoints - Anyone encountered this before? I would expect them to match exactly?

 

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

 

Replies 0 (0)