Searching for an address within a customer based on ZIP

workato
New Member
3 0 0

I'm trying to search for an address within the customer's address based on their ZIP. I'm looking at the Admin API docs, https://shopify.dev/docs/admin-api/rest/reference/customers/customer-address, and the only way available to search is using the address ID. The reason to search for an address using ZIP is that I'm trying to integrate Shopify and Revel systems customer data together. 

Appreciate your help! Thanks!

0 Likes
ldz
Excursionist
18 1 4

Can you just get a list of all addresses for the customer with this endpoint, and then return the addresses match that address based on the ZIP with a simple substring search on each address?

0 Likes
workato
New Member
3 0 0
Thank you for the reply. Yes this is definitely possible. It is not
efficient but I guess this the workaround for now. Hopefully Shopify
enhance their API to add query/searchfilters in the CustomerAddress object.

Cheers
0 Likes