[REST Admin API] Bug? - customer/count.json and and customer.json having different results

Solved
Highlighted
New Member
1 0 0

We are currently using the API to import data into our system. everything has been going fine until a couple of days ago where our task failed because there was a mismatch on how many contacts we counted to import and how many were imported.

 

Upon investigation we found the two endpoints we used, one to get the count and one to get the customers, are showing different numbers.

 

I.E
/admin/customers/count.json?created_at_min=2019-08-16T14:00:03.000Z
returns a resoponse of 
{
"count": 5
}

/admin/customers.json?created_at_min=2019-08-16T14:00:03.000Z 
however returns 6 customers

 

This is replicable 100% of the time.

0 Likes
Shopify Staff
Shopify Staff
998 66 130

Hello @petre-r , 

 

Thanks for the report! I believe that this is related to an issue that has arisen recently where customers.json isn't respecting the timestamp portion of the supplied created_at_min date. However, /customers/count.json does appear to respect the timestamp. 

 

I reported this to our customers team earlier today, so hopefully we'll be able to get a fix in place soon. I'll keep you posted once I have more information to share!

 

 

1 Like

Success.

Shopify Staff
Shopify Staff
998 66 130

Hello again @petre-r , 

 

The problem has been identified now. There should be a fix in place by early next week!

0 Likes