API returning wrong count

Replies 3 (3)
mayoub
New Member
6 0 0

Customers.json endpoint returns a different amount of customers than customer.json. Some customers are missing entirely. 

Example:

Customers.json missing:

https://ravinintl-dev.myshopify.com/admin/api/2021-10/customers.json?limit=250&ids=4528050962604

But exists in customer.json

https://ravinintl-dev.myshopify.com/admin/api/2021-10/customers/4528050962604.json

mayoub
New Member
6 0 0

Second link does not refer to the correct URL.

Customer not returned through customer IDs (incorrect behavior):

https://ravinintl-dev.myshopify.com/admin/api/2021-10/customers.json?limit=250&ids=4528050962604

 

Customer returned properly:

https://ravinintl-dev.myshopify.com/admin/api/2021-10/customers/4528050962604.json

mayoub
New Member
6 0 0

The customers issue was fixed by visiting the customer profile using the Admin Dashboard and updating the customer with the same existing data (refreshing the customer).

The issue with the count remains.