ValidateRedemptionCode
Returns if a redemption code is valid, already redeemed, or expired. The results of this mutation can be affected by providing an authToken header to set a user for the operation.
ValidateRedemptionCode(
code: String!
): ValidateRedemptionCodeResult!
Arguments
ValidateRedemptionCode.code
● String!
non-null scalar
Type
ValidateRedemptionCodeResult
object
Examples
Query:
ValidateRedemptionCode($code: String!) {
ValidateRedemptionCode(code: $code) {
valid
alreadyRedeemed
codeExpired
}
}
Variables:
{
"code": "xyz789"
}
Response:
{
"data": {
"ValidateRedemptionCode": {
"valid": true,
"alreadyRedeemed": true,
"codeExpired": true
}
}
}