Menu
customerActivateByUrl
Activates a customer account using the full activation URL from the customerCreate mutation.
Use it in a workflow
- Add a step and choose the Shopify Storefront connector.
- Pick the customerActivateByUrl action (under Customer).
- Fill in the fields below, then reference the result from later steps as
{{customeractivatebyurl.response.data}}.
Query
This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.
mutation CustomerActivateByUrl($activationUrl: URL!, $password: String!) {
customerActivateByUrl(activationUrl: $activationUrl, password: $password) {
customer {
acceptsMarketing
avatarUrl
createdAt
defaultAddress {
address1
address2
city
company
country
countryCode
countryCodeV2
firstName
formattedArea
id
lastName
latitude
longitude
name
phone
province
provinceCode
zip
}
displayName
email
firstName
id
lastName
numberOfOrders
phone
socialLoginProvider {
handle
}
tags
updatedAt
}
customerAccessToken {
accessToken
expiresAt
}
customerUserErrors {
code
field
message
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"activationUrl": "string",
"password": "string"
}
Response
Read the result with {{customeractivatebyurl.response.data.data.customerActivateByUrl}}. If the API returns errors, the step fails and they are at {{customeractivatebyurl.response.data.errors}}.
Need more? See the Shopify Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?