Skip to main content

userCreateVerification Mutation

Description

Creates a verification request for a user account.

mutation userCreateVerification(
$email: String!
$withVerificationCode: Boolean
) {
userCreateVerification(
email: $email
withVerificationCode: $withVerificationCode
) {
_id
id
firstName
lastName
name
email
telephone
taxNumber
organisation
addresses {
_id
description
firstName
lastName
addressLine1
addressLine2
streetNumber
city
state
stateCode
postCode
country
alpha2
type
}
isSubscribed
preferences {
preferredLanguage
}
}
}

Variables

{
"email": "email@example.com",
"withVerificationCode": true
}

Response

{
"userCreateVerification": {
"_id": "d9679fc87c61b878c2d327dd",
"id": 1.23,
"firstName": "example",
"lastName": "example",
"name": "example",
"email": "email@example.com",
"telephone": "example",
"taxNumber": "example",
"organisation": "example",
"addresses": [
{
"_id": "47ab405623c64cd9f987adc4",
"description": "example",
"firstName": "example",
"lastName": "example",
"addressLine1": "example",
"addressLine2": "example",
"streetNumber": "example",
"city": "example",
"state": "example",
"stateCode": "example",
"postCode": "example",
"country": "example",
"alpha2": "example",
"type": "example"
}
],
"isSubscribed": true,
"preferences": {
"preferredLanguage": "example"
}
}
}

Arguments

NameTypeDescription
emailString!Email address to verify.
withVerificationCodeBooleanWhether to send a verification code via email.

Returns

User!