Searching customer by email does not return exact match

Shopify Partner
4 0 0

I am using the customer api with query option to search customer by email, something like the following.

GET /admin/customers/search.json?,id

however, the result comes back with users with emails like

Is there a way to force exact match?

3 0 0

Technically, those are all the same email address since mail sent to all three of those will arrive at via the "+" alias functionality in Gmail.

New Member
1 0 3

That is true, they are gmail aliases, but within Shopify they are different customers complete with unique customer IDs.

Is there a way to have the graphql query return only the exact match?


I know that I can loop through what is returned and find the exact match, then perform a subsequent query using that ID, but it would be nice (and more efficient) to do everything in one trip.

New Member
1 0 0

Running into this same issue now, where query for returns results for

and yet querying email with returns a single result. 

Some flag or regex format for email matching would be preferred, or advising on how we can do this search especially now that the api is paginated would be appreciated