Skip to main content
Anchor to CustomerUpdatePayload

CustomerUpdatePayload

payload

Return type for customerUpdate mutation.

•Customer

The updated customer object.

Show fields
•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.

Show fields
•[CustomerUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields
•[UserError!]!
non-nullDeprecated
Show fields

Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Updates a customer's personal information such as name, password, and marketing preferences. Requires a valid CustomerAccessToken to authenticate the customer making the update.

If the customer's password is updated, then all previous access tokens become invalid. The mutation returns a new access token in the payload to maintain the customer's session.


Caution

Password changes invalidate all existing access tokens. Ensure your app handles the new token returned in the response to avoid logging the customer out.


Show payload

Arguments

•CustomerUpdateInput!
required

The customer object input.

Show input fields
•String!
required

The access token used to identify the customer.



Was this section helpful?