---
title: customerReset - Storefront API
description: >
  Resets a customer's password using the reset token from a password recovery
  email. On success, returns the updated
  [`Customer`](/docs/api/storefront/2026-04/objects/Customer) and a new
  [`CustomerAccessToken`](/docs/api/storefront/2026-04/objects/CustomerAccessToken)
  for immediate authentication.


  Use the
  [`customerRecover`](/docs/api/storefront/2026-04/mutations/customerRecover)
  mutation to send the password recovery email that provides the reset token.
  Alternatively, use
  [`customerResetByUrl`](/docs/api/storefront/2026-04/mutations/customerResetByUrl)
  if you have the full reset URL instead of the customer ID and token.


  > Caution:

  > This mutation handles sensitive customer credentials. Validate password
  requirements on the client before submission.
api_version: 2026-04
api_name: storefront
type: mutation
api_type: graphql
source_url:
  html: 'https://shopify.dev/docs/api/storefront/latest/mutations/customerReset'
  md: 'https://shopify.dev/docs/api/storefront/latest/mutations/customerReset.md'
---

# customer​Reset

mutation

Requires `unauthenticated_write_customers` access scope.

Resets a customer's password using the reset token from a password recovery email. On success, returns the updated [`Customer`](https://shopify.dev/docs/api/storefront/2026-04/objects/Customer) and a new [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/2026-04/objects/CustomerAccessToken) for immediate authentication.

Use the [`customerRecover`](https://shopify.dev/docs/api/storefront/2026-04/mutations/customerRecover) mutation to send the password recovery email that provides the reset token. Alternatively, use [`customerResetByUrl`](https://shopify.dev/docs/api/storefront/2026-04/mutations/customerResetByUrl) if you have the full reset URL instead of the customer ID and token.

***

**Caution:** This mutation handles sensitive customer credentials. Validate password requirements on the client before submission.

***

## Arguments

* id

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

  required

  Specifies the customer to reset.

* input

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

  required

  The fields used to reset a customer’s password.

***

## Customer​Reset​Payload returns

* customer

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

  The customer object which was reset.

* customer​Access​Token

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

  A newly created customer access token object for the customer.

* 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

* ### customerReset reference
