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)