Anchor to section titled 'undefined'

customerResetByUrl
mutation

Requires unauthenticated_write_customers access scope.

"Resets a customer’s password with the reset password URL received from a reset password email. You can send a reset password email with the customerRecover mutation."


New password that will be set as part of the reset password process.

Anchor to resetUrl
resetUrl
required

The customer's reset password url.


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 customerResetByUrl($password: String!, $resetUrl: URL!) {
  customerResetByUrl(password: $password, resetUrl: $resetUrl) {
    customer {
      # Customer fields
    }
    customerAccessToken {
      # CustomerAccessToken fields
    }
    customerUserErrors {
      # CustomerUserError fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "password": "<your-password>",
  "resetUrl": "https://example.myshopify.com"
}