A customer represents a customer account with the shop. Customer accounts store contact information for the customer, saving logged-in customers the trouble of having to provide it at every checkout.
Access Scopes
`unauthenticated_read_customers` access scope.
Fields
acceptsMarketing:
Boolean! -
Indicates whether the customer has consented to be sent marketing material via email.
createdAt:
DateTime! -
The date and time when the customer was created.
defaultAddress:
MailingAddress -
The customer’s default address.
displayName:
String! -
The customer’s name, email or phone number.
metafield:
Metafield -
A [custom field](https://shopify.dev/docs/apps/build/custom-data), including its `namespace` and `key`, that's associated with a Shopify resource for the purposes of adding and storing additional information.
metafields:
Metafield! -
A list of [custom fields](/docs/apps/build/custom-data) that a merchant associates with a Shopify resource.
numberOfOrders:
UnsignedInt64! -
The number of orders that the customer has made at the store in their lifetime.
tags:
String! -
A comma separated list of tags that have been added to the customer.
Additional access scope required: unauthenticated_read_customer_tags.
updatedAt:
DateTime! -
The date and time when the customer information was updated.
customer
The customer associated with the given access token. Tokens are obtained by using the
[`customerAccessTokenCreate` mutation](https://shopify.dev/docs/api/storefront/latest/mutations/customerAccessTokenCreate).
customerResetByUrl
"Resets a customer’s password with the reset password URL received from a reset password email. You can send a reset password email with the [`customerRecover`](https://shopify.dev/api/storefront/latest/mutations/customerRecover) mutation."
customerReset
"Resets a customer’s password with the token received from a reset password email. You can send a reset password email with the [`customerRecover`](https://shopify.dev/api/storefront/latest/mutations/customerRecover) mutation."