How to find a Customer with zipcode?

Solved
Tourist
12 2 0

I know if I use this link,

...admin/api/2019-10/customers/search.json?query=email:myemail@exemplo.com

I can find a costumer whose have the email I am searching.

How can I do that with the zipcode?

Is possible? 

 

0 Likes

Success.

Shopify Staff
Shopify Staff
223 28 28

Hi @DaviAmaral 


At this time zip is not a searchable field on the customer endpoint. This is something we are aware of and looking into adding for the future. I will update here when that has been released. 

 

In general, the search syntax can be found here: https://help.shopify.com/en/api/getting-started/search-syntax.You would do the same query like email, but with a different field. If you are unsure what fields are named, the best way to is to head to a customer in your Shopify Admin and type .json at the end of the URL. 

 

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


0 Likes
Highlighted
Tourist
12 2 0

Thank you! 

It could be a very good upgrade.

 

0 Likes