Order count is returning incorrect value today

New Member
3 0 0

Using orders/count.json today, along with parameters for created_at_min, created_at_max, and status,  it is always returning a count of 2 when there are no orders.  Retrieving orders using the orders.json with the exact same parameters returns no orders.  I've confirmed that there are no orders matching the parameters, so apparently the orders/count.json is incorrect.  This is using api version 2019-04.  Is there a known problem with this today, since the same logic has been working for over a year!

0 Likes
New Member
3 0 0
Here is an example that I just ran, showing a count of 3 orders, but then returning nothing.

First, request the count, using parameters:
 
REQUEST:
GET https://MYSHOPIFYSTORE.myshopify.com/admin/orders/count.json?status=open&created_at_min=2019-09-18T1... HTTP/1.1
Host: MYSHOPIFYSTORE.myshopify.com:443
Authorization: Basic ****
Connection: Close
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Content-Length: 0
 
RESPONSE:
{"count":3}

Since there is a count value, request the orders using the same parameters, plus limit and page:
 
REQUEST:
GET https://MYSHOPIFYSTORE.myshopify.com/admin/orders.json?status=open&created_at_min=2019-09-18T12:59:5... HTTP/1.1
Host: MYSHOPIFYSTORE.myshopify.com:443
Authorization: Basic ****
Connection: Close
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Content-Length: 0
 
RESPONSE:
{"orders":[]}
 
0 Likes
New Member
5 0 0

Our endpoint broke the same day too.    I'm calling it and passing in a "since ID" parameter.    It should be passing back the number of orders created SINCE that ID, but it is passing back the entire order count since go-live.

0 Likes