Shopify Get Customer By Email

This action verifies whether a Shopify customer has historically used only a single first name across all of their saved addresses. It searches for the customer by email, retrieves their address list, extracts the first names, and confirms that they all match the customer’s primary first name.


Inputs

NameTypeDescription
EmailStringThe email address of the customer to search for.
DomainStringThe shop’s myshopify.com subdomain (e.g., your-store for your-store.myshopify.com).
TokenCredentialsShopify access credentials. Provide either a Basic auth header or a bearer token.

Outputs

NameTypeDescription
SuccessBooleantrue if the customer has used only one first name across all addresses; otherwise false.
First NameString(Success only) The normalized first name used by the customer when all addresses match.
CustomerObject(Success only) Full customer object returned by Shopify.
ErrorString(Failure only) Error reason: either multiple names used for shipping or could not retrieve any customers with this email.

Notes

  • Uses the Shopify Admin REST API version 2024-01.
  • If the customer has no addresses or multiple distinct first names, the action returns an error and success: false.
  • In case of network or API errors, the action returns success: false and includes the error message.