Skip to main content
Version: 5.7.0

ActivateCode

Activate a redemption code for a personal ('single-use') code type. Optional parameters: customCodeInfo.

ServiceOperation
redemptionCodeACTIVATE_CODE

Method Parameters

ParameterDescription
scanCodeThe scan code. Also referred to as a Promo Code in the Design Portal.
codeTypeThe single-use ('personal') code type. Corresponds to the Campaign Name in the Design Portal.
customCodeInfoOptional custom information.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"gameId": "23782",
"scanCode": "a-scan-code",
"codeType": "ct",
"redemptionCodeId": "7379b058-8669-4199-b4bb-712f1e77ea8e",
"version": 2,
"codeState": "Available",
"customCodeInfo": {},
"customRedemptionInfo": {},
"redeemedByProfileId": null,
"redeemedByProfileName": null,
"invalidationReason": null,
"createdAt": 1655483646387,
"activatedAt": 1655483664964,
"redeemedAt": null,
"invalidatedAt": null,
"updatedAt": 1655483646387
},
"status": 200
}
Common Error Code

Status Codes

CodeNameDescription
40399REDEMPTION_CODE_TYPE_NOT_FOUNDThe specified code type was not found
40395REDEMPTION_CODE_NOT_FOUNDThe specified code was not found
40397REDEMPTION_CODE_ACTIVERedemption code already activated
40400REDEMPTION_CODE_INVALIDRedemption code invalid
40753REDEMPTION_CODE_TYPE_DISABLEDInvalid code. Redemption code type has been disabled