Skip to main content
mutation

Requires unauthenticated_write_customers access scope.

Activates a customer account using an activation token received from the customerCreate mutation. The customer sets their password during activation and receives a CustomerAccessToken for authenticated access.

For a simpler approach that doesn't require parsing the activation URL, use customerActivateByUrl instead.


Caution

This mutation handles customer credentials. Always use HTTPS and never log or expose the password or access token.


•ID!
required

Specifies the customer to activate.

•CustomerActivateInput!
required

The fields used to activate a customer.


Was this section helpful?

Anchor to CustomerActivatePayload returnsCustomerActivatePayload returns

•Customer

The customer object.

•CustomerAccessToken

A newly created customer access token object for the customer.

•[CustomerUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•[UserError!]!
non-nullDeprecated

The list of errors that occurred from executing the mutation.


Was this section helpful?