---
title: customerUpdate - Storefront API
description: >-
  Updates a [customer's](/docs/api/storefront/2026-10/objects/Customer)

  personal information such as name, password, and marketing preferences.

  Requires a valid
  [`CustomerAccessToken`](/docs/api/storefront/2026-10/objects/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.
api_version: 2026-10
source_url:
  html: 'https://shopify.dev/docs/api/storefront/latest/mutations/customerUpdate'
  md: 'https://shopify.dev/docs/api/storefront/latest/mutations/customerUpdate.md'
api_name: storefront
api_type: graphql
type: mutation
---

# customer​Update

mutation

Requires `unauthenticated_write_customers` access scope.

Updates a [customer's](https://shopify.dev/docs/api/storefront/2026-10/objects/Customer) personal information such as name, password, and marketing preferences. Requires a valid [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/2026-10/objects/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.

***

## Arguments

* customer

  [Customer​Update​Input!](https://shopify.dev/docs/api/storefront/latest/input-objects/CustomerUpdateInput)

  required

  The customer object input.

* customer​Access​Token

  [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  required

  The access token used to identify the customer.

***

## Customer​Update​Payload returns

* customer

  [Customer](https://shopify.dev/docs/api/storefront/latest/objects/Customer)

  The updated customer object.

* customer​Access​Token

  [Customer​Access​Token](https://shopify.dev/docs/api/storefront/latest/objects/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.

* customer​User​Errors

  [\[Customer​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CustomerUserError)

  non-null

  The list of errors that occurred from executing the mutation.

* user​Errors

  [\[User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/UserError)

  non-nullDeprecated

  The list of errors that occurred from executing the mutation.

***

## Examples

* ### customerUpdate reference
