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.
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).
Related mutations
customerActivateByUrl
Activates a customer with the activation url received from `customerCreate`.
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."