Skip to main content
query

The customer associated with the given access token. Tokens are obtained by using the customerAccessTokenCreate mutation.

•String!
required

The customer access token.


Was this section helpful?

•Customer

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.

•Boolean!
non-null

Indicates whether the customer has consented to be sent marketing material via email.

•MailingAddressConnection!
non-null

A list of addresses for the customer.

Arguments

•Int

Returns up to the first n elements from the list.

•String

Returns the elements that come after the specified cursor.

•Int

Returns up to the last n elements from the list.

•String

Returns the elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.


•String

The URL of the customer's avatar image.

•DateTime!
non-null

The date and time when the customer was created.

•MailingAddress

The customer’s default address.

•String!
non-null

The customer’s name, email or phone number.

•String

The customer’s email address.

•String

The customer’s first name.

•ID!
non-null

A unique ID for the customer.

•String

The customer’s last name.

•Metafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

Arguments

•String

The container the metafield belongs to. If omitted, the app-reserved namespace will be used.

•String!
required

The identifier for the metafield.


•[Metafield]!
non-null

A list of custom fields that a merchant associates with a Shopify resource.

Arguments

•[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.

The input must not contain more than 250 values.


•UnsignedInt64!
non-null

The number of orders that the customer has made at the store in their lifetime.

•OrderConnection!
non-null

The orders associated with the customer.

Arguments

•Int

Returns up to the first n elements from the list.

•String

Returns the elements that come after the specified cursor.

•Int

Returns up to the last n elements from the list.

•String

Returns the elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.

•OrderSortKeys
Default:ID

Sort the underlying list by the given key.

•String

Apply one or multiple filters to the query. Refer to the detailed search syntax for more information about using filters.

Anchor to processed_at
•

•String

The customer’s phone number.

•SocialLoginProvider

The social login provider associated with the customer.

•[String!]!
non-null

A comma separated list of tags that have been added to the customer. Additional access scope required: unauthenticated_read_customer_tags.

•DateTime!
non-null

The date and time when the customer information was updated.


Was this section helpful?