Orders API count.json endpoint returns inconsistent values

Solved
PeterAnaniaHC
New Member
1 0 0

Using this request as an example...

https://faithgatewaystore.myshopify.com/admin/api/2020-01/orders/count.json?updated_at_max=2021-04-1...

If I call this endpoint several times throughout the day (say 1PM, 2PM, 3PM, etc.)

I will get a different answer (response) each time. (*Please note, it does not matter how you format the datetime values, the result is the same.)

Is this expected behavior?

Thanks in advance,

Peter Anania

0 Likes
HunkyBill
Shopify Expert
4488 45 485

This is an accepted solution.

Sounds like that makes sense. Your window of status any implies any order. Fine. Your other criteria of updated at seems to just be any orders from way back then, till now. So if you add an order, your count changes. What were you expecting?

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes