--- title: customerActivate - Storefront API description: > Activates a customer account using an activation token received from the [`customerCreate`](/docs/api/storefront/unstable/mutations/customerCreate) mutation. The customer sets their password during activation and receives a [`CustomerAccessToken`](/docs/api/storefront/unstable/objects/CustomerAccessToken) for authenticated access. For a simpler approach that doesn't require parsing the activation URL, use [`customerActivateByUrl`](/docs/api/storefront/unstable/mutations/customerActivateByUrl) instead. > Caution: > This mutation handles customer credentials. Always use HTTPS and never log or expose the password or access token. api_version: unstable api_name: storefront source_url: html: 'https://shopify.dev/docs/api/storefront/unstable/mutations/customerActivate' md: >- https://shopify.dev/docs/api/storefront/unstable/mutations/customerActivate.md --- # customer​Activate mutation Requires `unauthenticated_write_customers` access scope. Activates a customer account using an activation token received from the [`customerCreate`](https://shopify.dev/docs/api/storefront/unstable/mutations/customerCreate) mutation. The customer sets their password during activation and receives a [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/unstable/objects/CustomerAccessToken) for authenticated access. For a simpler approach that doesn't require parsing the activation URL, use [`customerActivateByUrl`](https://shopify.dev/docs/api/storefront/unstable/mutations/customerActivateByUrl) instead. *** **Caution:** This mutation handles customer credentials. Always use HTTPS and never log or expose the password or access token. *** ## Arguments * id [ID!](https://shopify.dev/docs/api/storefront/unstable/scalars/ID) required Specifies the customer to activate. * input [Customer​Activate​Input!](https://shopify.dev/docs/api/storefront/unstable/input-objects/CustomerActivateInput) required The fields used to activate a customer. *** ## Customer​Activate​Payload returns * customer [Customer](https://shopify.dev/docs/api/storefront/unstable/objects/Customer) The customer object. * customer​Access​Token [Customer​Access​Token](https://shopify.dev/docs/api/storefront/unstable/objects/CustomerAccessToken) A newly created customer access token object for the customer. * customer​User​Errors [\[Customer​User​Error!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/CustomerUserError) non-null The list of errors that occurred from executing the mutation. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/storefront/unstable/objects/UserError) non-nullDeprecated The list of errors that occurred from executing the mutation. *** ## Examples * ### customerActivate reference