Anchor to section titled 'undefined'

customerActivateByUrl
mutation

Requires unauthenticated_write_customers access scope.

Activates a customer with the activation url received from customerCreate.


Anchor to activationUrl
activationUrl
required

The customer activation URL.

A new password set during activation.


Was this section helpful?

The customer that was activated.

A new customer access token for the customer.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation customerActivateByUrl($activationUrl: URL!, $password: String!) {
  customerActivateByUrl(activationUrl: $activationUrl, password: $password) {
    customer {
      # Customer fields
    }
    customerAccessToken {
      # CustomerAccessToken fields
    }
    customerUserErrors {
      # CustomerUserError fields
    }
  }
}
Hide code
Input
Copy
{
  "activationUrl": "https://example.myshopify.com",
  "password": "<your-password>"
}