--- title: customerActivate - Storefront API description: Activates a customer. api_version: 2025-10 api_name: storefront type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/mutations/customerActivate md: https://shopify.dev/docs/api/storefront/latest/mutations/customerActivate.md --- # customer​Activate mutation Requires `unauthenticated_write_customers` access scope. Activates a customer. ## Arguments * id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) required Specifies the customer to activate. * input [Customer​Activate​Input!](https://shopify.dev/docs/api/storefront/latest/input-objects/CustomerActivateInput) required The fields used to activate a customer. *** ## Customer​Activate​Payload returns * customer [Customer](https://shopify.dev/docs/api/storefront/latest/objects/Customer) The customer object. * 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 * ### customerActivate reference ## Mutation Reference ```graphql mutation customerActivate($id: ID!, $input: CustomerActivateInput!) { customerActivate(id: $id, input: $input) { customer { # Customer fields } customerAccessToken { # CustomerAccessToken fields } customerUserErrors { # CustomerUserError fields } } } ``` ## Input ```json { "id": "gid://shopify//10079785100", "input": { "activationToken": "", "password": "" } } ```