Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Query parameters

  • emailstring

    Exactly this email, in any case.

  • phonestring

    Exactly this number, in any format the store's country reads.

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Returns

200 The customer.

Errors

  • 404not_foundNo customer has it.
  • 422validation_failedNeither, both, or not a phone number.