Anchor to section titled 'undefined'

customerActivate
mutation

Requires unauthenticated_write_customers access scope.

Activates a customer.


Anchor to id
id
required

Specifies the customer to activate.

The fields used to activate a customer.


Was this section helpful?

The customer object.

A newly created customer access token object for the customer.

The list of errors that occurred from executing the mutation.

The list of errors that occurred from executing the mutation. Use customerUserErrors instead.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation customerActivate($id: ID!, $input: CustomerActivateInput!) {
  customerActivate(id: $id, input: $input) {
    customer {
      # Customer fields
    }
    customerAccessToken {
      # CustomerAccessToken fields
    }
    customerUserErrors {
      # CustomerUserError fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "id": "gid://shopify/<objectName>/10079785100",
  "input": {
    "activationToken": "<your-activationToken>",
    "password": "<your-password>"
  }
}
input CustomerActivateInput {
  activationToken: String!
  password: String!
}