Skip to main content

ValidateRegistrationCode

Returns if a registation code is valid or already redeemed. The results of this mutation can be affected by providing an authToken header to set a user for the operation.

ValidateRegistrationCode(
code: String!
): ValidateRegistrationCodeResult!

Arguments

ValidateRegistrationCode.code ● String! non-null scalar

Type

ValidateRegistrationCodeResult object

Examples

Run in Postman

Query:

ValidateRegistrationCode($code: String!) {
ValidateRegistrationCode(code: $code) {
valid
alreadyRedeemed
}
}

Variables:

{
"code": "abc123"
}

Response:

{
"data": {
"ValidateRegistrationCode": {
"valid": false,
"alreadyRedeemed": false
}
}
}