Skip to main content
object

Represents the personal information of a customer. Apps using the Customer Account API must meet the protected customer data requirements.

Anchor to Fields and connectionsFields and connections

•CustomerAddressConnection!non-null

The addresses associated with the customer.

•CompanyContactConnection!non-null

The list of contacts the customer is associated with.

•DateTime!non-null

The date and time when the customer was created.

•CustomerAddress

The default address of the customer.

•String!non-null

The full name of the customer, based on the first_name and last_name values. If these aren't available, it falls back to the customer's email address, and if that isn't available, the customer's phone number.

•DraftOrderConnection!non-null

The Draft Orders associated with the customer.

•CustomerEmailAddressPre-auth accessible

The email address of the customer.

•String

The first name of the customer.

•ID!non-nullPre-auth accessible

A globally-unique ID.

•URL!non-null

The URL to the avatar image of the customer.

Anchor to lastIncompleteCheckoutlastIncompleteCheckout
•Checkout

The customer's most recently updated, incomplete checkout.

•String

The last name of the customer.

•MetafieldPre-auth accessible

A metafield found by namespace and key.

•[Metafield]!non-nullPre-auth accessible

The metafields associated with the resource matching the supplied list of namespaces and keys.

•OrderConnection!non-null

The orders associated with the customer.

•CustomerPhoneNumberPre-auth accessible

The phone number of the customer.

•StoreCreditAccountConnection!non-nullPre-auth accessible

A list of the owner resource's store credit accounts. Store credit accounts are not shown for shops with store credit disabled at checkout.

Anchor to subscriptionContractsubscriptionContract
•SubscriptionContract

A Subscription Contract resource identified by ID.

Anchor to subscriptionContractssubscriptionContracts
•SubscriptionContractConnection!non-null

The Subscription Contracts associated with the customer.

•[String!]!non-null

A comma-separated list of tags that have been added to the customer.


Was this section helpful?

•query

Returns the Customer resource. Apps using the Customer Account API must meet the protected customer data requirements.


Was this section helpful?

•mutation

Updates the customer's personal information.

Arguments

•CustomerUpdateInput!required

Specifies the input fields for the customer update.


Fields

•Customer

The customer's personal information that has been updated.

•[UserErrorsCustomerUserErrors!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?