Docs
Dashboard

Customer

Object

Fields returned for customer.

#

Fields


addresses
CustomerAddressConnection!

The addresses associated with the customer.

createdAt
DateTime!

The date the customer was created.

customerGroups
CustomerGroupConnection!

Retrieves a paged list of customers associated with the customer group.

defaultBillingAddress
CustomerAddress

The default billing address associated with the customer.

defaultShippingAddress
CustomerAddress

The default shipping address associated with the customer.

email
String

The email address of the customer.

firstName
String

The first name of the customer.

id
ID!

The unique identifier for the customer.

lastName
String

The last name of the customer.

marketingConsent
Boolean!

Indicates whether the customer has consented to marketing.

metadata
[MetadataItem!]!

Gets the metadata associated with the customer.

metafields
[Metafield!]!

The metafields associated with this customer.

orders
OrderConnection!

A list of orders associated with the customer.

ordersCount
Long!

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.