---
title: customerActivate - Storefront API
description: >
  Activates a customer account using an activation token received from the
  [`customerCreate`](/docs/api/storefront/2025-07/mutations/customerCreate)
  mutation. The customer sets their password during activation and receives a
  [`CustomerAccessToken`](/docs/api/storefront/2025-07/objects/CustomerAccessToken)
  for authenticated access.


  For a simpler approach that doesn't require parsing the activation URL, use
  [`customerActivateByUrl`](/docs/api/storefront/2025-07/mutations/customerActivateByUrl)
  instead.


  > Caution:

  > This mutation handles customer credentials. Always use HTTPS and never log
  or expose the password or access token.
api_version: 2025-07
api_name: storefront
type: mutation
api_type: graphql
source_url:
  html: 'https://shopify.dev/docs/api/storefront/2025-07/mutations/customerActivate'
  md: >-
    https://shopify.dev/docs/api/storefront/2025-07/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/2025-07/mutations/customerCreate) mutation. The customer sets their password during activation and receives a [`CustomerAccessToken`](https://shopify.dev/docs/api/storefront/2025-07/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/2025-07/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/2025-07/scalars/ID)

  required

  Specifies the customer to activate.

* input

  [Customer​Activate​Input!](https://shopify.dev/docs/api/storefront/2025-07/input-objects/CustomerActivateInput)

  required

  The fields used to activate a customer.

***

## Customer​Activate​Payload returns

* customer

  [Customer](https://shopify.dev/docs/api/storefront/2025-07/objects/Customer)

  The customer object.

* customer​Access​Token

  [Customer​Access​Token](https://shopify.dev/docs/api/storefront/2025-07/objects/CustomerAccessToken)

  A newly created customer access token object for the customer.

* customer​User​Errors

  [\[Customer​User​Error!\]!](https://shopify.dev/docs/api/storefront/2025-07/objects/CustomerUserError)

  non-null

  The list of errors that occurred from executing the mutation.

* user​Errors

  [\[User​Error!\]!](https://shopify.dev/docs/api/storefront/2025-07/objects/UserError)

  non-nullDeprecated

  The list of errors that occurred from executing the mutation.

***

## Examples

* ### customerActivate reference
