Hi,
I’m having an issue with the checkouts API returning inconsistent results.
For example, when I fetch the count of checkouts with created_at_min = 2019-09-03, at the time of writing this, the result is 1,100. The checkouts API with a limit of 50 per page should have 22 page of results, this is not the case.
If I execute a request to the checkout API to retrieve the results using the same params (created_at_min = 2019-09-03), there’s actually 25 pages of results!
This is an issue for our implementation because we are looping through each page, based on the result of the count.
Is anyone able to shed some light on why the count and checkouts API’s are not consistent and how we can fetch the counts accurately to loop through the correct number of pages?
For reference, the count API I’m using is:
/admin/checkouts/count.json?created_at_min=2019-09-03
The checkout API I’m using is:
/admin/checkouts.json?created_at_min=2019-09-03&limit=50&page=25
Thanks!