Skip to main content
Version: 5.7.0

InvalidateCode

This operation invalidates the specified redemption code.

Results

NameDescription
responseNewly updated redemption code object
ServiceOperation
redemptionCodeINVALIDATE_CODE

Method Parameters

ParameterDescription
scanCodeThe scan code.
codeTypeThe code type.
invalidationReasonOptional custom information.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"packetId": 1,
"messageResponses": [
{
"status": 200,
"data": {
"response": {
"gameId": "102938475647382910",
"scanCode": "999999",
"codeType": "typeOfCode",
"version": 2,
"codeState": "Available",
"customCodeInfo": {
"param1": 2235
},
"customRedemptionInfo": {},
"redeemedByProfileId": null,
"redeemedByProfileName": null,
"invalidationReason": "reason",
"createdAt": 0,
"activatedAt": null,
"redeemedAt": null,
"invalidatedAt": 1445456503428
}
}
}
]
}