--- title: customerResetByUrl - Storefront API description: | "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`](https://shopify.dev/api/storefront/latest/mutations/customerRecover) mutation." api_version: 2025-10 api_name: storefront type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/mutations/customerResetByUrl md: https://shopify.dev/docs/api/storefront/latest/mutations/customerResetByUrl.md --- # customer​Reset​By​Url 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`](https://shopify.dev/api/storefront/latest/mutations/customerRecover) mutation." ## Arguments * password [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String) required New password that will be set as part of the reset password process. * reset​Url [URL!](https://shopify.dev/docs/api/storefront/latest/scalars/URL) required The customer's reset password url. *** ## Customer​Reset​By​Url​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 * ### customerResetByUrl reference ## Mutation Reference ```graphql mutation customerResetByUrl($resetUrl: URL!, $password: String!) { customerResetByUrl(resetUrl: $resetUrl, password: $password) { customer { # Customer fields } customerAccessToken { # CustomerAccessToken fields } customerUserErrors { # CustomerUserError fields } } } ``` ## Input ```json { "resetUrl": "https://example.myshopify.com", "password": "" } ```