Unable to retrieve specific customer using /admin/api/2019-10/customers.json?ids={customer_id}

Highlighted
Shopify Partner
13 3 4

When I make a REST API request to customers.json there is a specific customer that is not returned. I receive a valid respond from the API, but the customers field in the response is an empty array.

 

For example, the following request returns a single record with the requested fields, as expected:

https://{shopname}.myshopify.com/admin/api/2019-10/customers.json?ids=2767457812524&fields=id,email,tags

 

However, the following request for customer 2800704716844 returns an empty array:

https://{shopname}.myshopify.com/admin/api/2019-10/customers.json?ids=2800704716844&fields=id,email,tags

 

I can retrieve the full records for both of these customers using the requests below, so I know that the customer record in question definitely exists.

https://{shopname}.myshopify.com/admin/api/2019-10/customers/2767457812524.json

https://{shopname}.myshopify.com/admin/api/2019-10/customers/2800704716844.json

 

Is there a reason why specific customers might not be returned by requests to /admin/api/2019-10/customers.json?ids={customer_id} ?

https://karere.com - Web Development
0 Likes
Highlighted
Shopify Staff
Shopify Staff
587 71 128

Hey @Toro_Hill,

 

Do you have any other examples of customer_ids that are experiencing this issue? I've been able to replicate the issue you described with 2800704716844, but so far I haven't been able to see the issue on any other customers. It seems like the customer record with id 2800704716844 has ended up in a bad state, since I'm also having issues querying this record with some of our internal tools. We're currently investigating what happened with this particular record, so please send over any other examples if you have them as this will help narrow down the search.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Shopify Partner
13 3 4

Hi @_JB, thanks for the reply. We haven't come across this issue with any other customer ids so far. If we do I'll let you know.

https://karere.com - Web Development
0 Likes