Skip to main content
object

Represents an error that happens during execution of a customer mutation.

•CustomerErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!
non-null

The error message.


Was this section helpful?

•mutation

Creates a customer access token. The customer access token is required to modify the customer object in any way.

Arguments

•CustomerAccessTokenCreateInput!
required

The fields used to create a customer access token.


•mutation

Creates a customer access token using a multipass token instead of email and password. A customer record is created if the customer doesn't exist. If a customer record already exists but the record is disabled, then the customer record is enabled.

Arguments

•String!
required

A valid multipass token to be authenticated.


•mutation

Activates a customer.

Arguments

•ID!
required

Specifies the customer to activate.

•CustomerActivateInput!
required

The fields used to activate a customer.


•mutation

Activates a customer with the activation url received from customerCreate.

Arguments

•URL!
required

The customer activation URL.

•String!
required

A new password set during activation.


•mutation

Creates a new address for a customer.

Arguments

•String!
required

The access token used to identify the customer.

•MailingAddressInput!
required

The customer mailing address to create.


•mutation

Permanently deletes the address of an existing customer.

Arguments

•ID!
required

Specifies the address to delete.

•String!
required

The access token used to identify the customer.


•mutation

Updates the address of an existing customer.

Arguments

•String!
required

The access token used to identify the customer.

•ID!
required

Specifies the customer address to update.

•MailingAddressInput!
required

The customer’s mailing address.


•mutation

Creates a new customer.

Arguments

•CustomerCreateInput!
required

The fields used to create a new customer.


•mutation

Updates the default address of an existing customer.

Arguments

•String!
required

The access token used to identify the customer.

•ID!
required

ID of the address to set as the new default for the customer.


•mutation

Sends a reset password email to the customer. The reset password email contains a reset password URL and token that you can pass to the customerResetByUrl or customerReset mutation to reset the customer password.

This mutation is throttled by IP. With private access, you can provide a Shopify-Storefront-Buyer-IP instead of the request IP. The header is case-sensitive and must be sent as Shopify-Storefront-Buyer-IP.

Make sure that the value provided to Shopify-Storefront-Buyer-IP is trusted. Unthrottled access to this mutation presents a security risk.

Arguments

•String!
required

The email address of the customer to recover.


•mutation

"Resets a customer’s password with the token received from a reset password email. You can send a reset password email with the customerRecover mutation."

Arguments

•ID!
required

Specifies the customer to reset.

•CustomerResetInput!
required

The fields used to reset a customer’s password.


•mutation

"Resets a customer’s password with the reset password URL received from a reset password email. You can send a reset password email with the customerRecover mutation."

Arguments

•URL!
required

The customer's reset password url.

•String!
required

New password that will be set as part of the reset password process.


•mutation

Updates an existing customer.

Arguments

•String!
required

The access token used to identify the customer.

•CustomerUpdateInput!
required

The customer object input.



Was this section helpful?


Was this section helpful?