Lookup customer
GET
/ admin/ v1/ stores/ {store_id}/ customers/ lookup- customers:read
The customer with exactly this email or phone: send one. Unlike q on the list, which finds what's similar, this can be trusted to change a customer afterwards.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Query parameters
emailstringExactly this email, in any case.
phonestringExactly this number, in any format the store's country reads.
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Returns
200 The customer.
Errors
- 404
not_foundNo customer has it. - 422
validation_failedNeither, both, or not a phone number.