I'm trying to extract all the orders for last 5 days through Shopify REST API. I'm printing the total orders count in the first line of code using orders/count.json endpoint (which is 1146) . However, the total number of orders extracted via orders.json endpoint is 1137.
I've set status to 'any' and is paginating through the results using next_link in response header. I tried paginating with 'since_id' as well. The issue persists either way.