Shopify-api-node icon indicating copy to clipboard operation
Shopify-api-node copied to clipboard

shopify.customer.search return empty array

Open sagarfitcircle opened this issue 3 years ago • 1 comments

I am using V3.6.12, I have scenario where I try to search customer by phone. Even though the customer exists in the shop it returns empty array.

Request: shopify.customer.search({ query: <phone_number> })

Response: { "customers": [] }

I tried same request using curl and it returns the customer just fine.

Am I missing anything here?

sagarfitcircle avatar Oct 24 '21 02:10 sagarfitcircle

I don't know. Try to find the difference between the request made by shopify-api-node and curl. You can use a proxy like Fiddler to do that.

lpinca avatar Mar 09 '22 19:03 lpinca

I'm closing this due to inactivity.

lpinca avatar Mar 15 '23 20:03 lpinca