Requires unauthenticated_write_customers access scope.

"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."


Anchor to id
id
required

Specifies the customer to reset.

The fields used to reset a customer’s password.


Was this section helpful?

The customer object which was reset.

A newly created customer access token object for the customer.

The list of errors that occurred from executing the mutation.

The list of errors that occurred from executing the mutation. Use customerUserErrors instead.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation customerReset($id: ID!, $input: CustomerResetInput!) {
  customerReset(id: $id, input: $input) {
    customer {
      # Customer fields
    }
    customerAccessToken {
      # CustomerAccessToken fields
    }
    customerUserErrors {
      # CustomerUserError fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "id": "gid://shopify/<objectName>/10079785100",
  "input": {
    "password": "<your-password>",
    "resetToken": "<your-resetToken>"
  }
}
input CustomerResetInput {
  password: String!
  resetToken: String!
}