customerUpdate

Required access

unauthenticated_write_customers access scope

Updates an existing customer.

Interactive Example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Type Default Description
customer required CustomerUpdateInput!

The customer object input.

customerAccessToken required String!

The access token used to identify the customer.

Return Fields

customer   (Customer)

The updated customer object.

customerAccessToken   (CustomerAccessToken)

The newly created customer access token. If the customer's password is updated, all previous access tokens (including the one used to perform this mutation) become invalid, and a new token is generated.

userErrors   ([UserError!]!)

List of errors that occurred executing the mutation.