Customer
ObjectFields returned for customer.
Fields
- CustomerAddressConnection!
addresses The addresses associated with the customer.
- DateTime!
createdAt The date the customer was created.
- CustomerGroupConnection!
customerGroups Retrieves a paged list of customers associated with the customer group.
- CustomerAddress
defaultBillingAddress The default billing address associated with the customer.
- CustomerAddress
defaultShippingAddress The default shipping address associated with the customer.
- String
email The email address of the customer.
- String
firstName The first name of the customer.
- ID!
id The unique identifier for the customer.
- String
lastName The last name of the customer.
- Boolean!
marketingConsent Indicates whether the customer has consented to marketing.
- [MetadataItem!]!
metadata Gets the metadata associated with the customer.
- [Metafield!]!
metafields The metafields associated with this customer.
- OrderConnection!
orders A list of orders associated with the customer.
- Long!
ordersCount The number of orders that are associated with the customer.
Queries
The customer associated with the given access token given in the Authorization header.
Mutations
Activates a customer account using the provided token and sets the customer’s password.
Deletes a specific address for a customer.
Resets a customer’s password using a valid reset token. This mutation requires the customer to provide their email, the new password, and the reset token they received via email.
Updates an existing customer with the provided details.