Customer
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
- Anchor to addressesaddresses•Customer
Address Connection!non-null The addresses associated with the customer.
- Anchor to companyContactscompany•Company
Contacts Contact Connection!non-null The list of contacts the customer is associated with.
- Anchor to creationDatecreation•Date
Date Time!non-null The date and time when the customer was created.
- Anchor to defaultAddressdefault•Customer
Address Address The default address of the customer.
- Anchor to displayNamedisplay•String!non-null
Name 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.
- Anchor to draftOrdersdraft•Draft
Orders Order Connection!non-null The Draft Orders associated with the customer.
- Anchor to emailAddressemail•Customer
Address Email AddressPre-auth accessible The email address of the customer.
- Anchor to firstNamefirst•String
Name The first name of the customer.
- •ID!non-nullPre-auth accessible
A globally-unique ID.
- Anchor to imageUrlimage•URL!non-null
Url The URL to the avatar image of the customer.
- Anchor to lastIncompleteCheckoutlast•Checkout
Incomplete Checkout The customer's most recently updated, incomplete checkout.
- Anchor to lastNamelast•String
Name The last name of the customer.
- Anchor to metafieldmetafield•MetafieldPre-auth accessible
A metafield found by namespace and key.
- Anchor to metafieldsmetafields•[Metafield]!non-nullPre-auth accessible
The metafields associated with the resource matching the supplied list of namespaces and keys.
- Anchor to ordersorders•Order
Connection!non-null The orders associated with the customer.
- Anchor to phoneNumberphone•Customer
Number Phone NumberPre-auth accessible The phone number of the customer.
- Anchor to storeCreditAccountsstore•Store
Credit Accounts Credit Account Connection!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 subscriptionContractsubscription•Subscription
Contract Contract A Subscription Contract resource identified by ID.
- Anchor to subscriptionContractssubscription•Subscription
Contracts Contract Connection!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.
Anchor to QueriesQueries
- •query
Returns the Customer resource. Apps using the Customer Account API must meet the protected customer data requirements.
Anchor to MutationsMutations
- •mutation
Updates the customer's personal information.
- Anchor to inputinput•Customer
Update Input!required Specifies the input fields for the customer update.
Arguments
- Anchor to customercustomer•Customer
The customer's personal information that has been updated.
- Anchor to userErrorsuser•[User
Errors Errors Customer User Errors!]!non-null The list of errors that occurred from executing the mutation.
Fields