Skip to main content
Version: 5.7.0

UpdateCustomInfo

Update the custom information for a redemption code for a personal ('single-use') code type.

ServiceOperation
redemptionCodeUPDATE_CUSTOM_INFO

Method Parameters

ParameterDescription
scanCodeThe scan code.
codeTypeThe personal ('single-use') code type. Corresponds to the Campaign Name in the Design Portal.
versionCurrent version of the redemption code (for concurrency checking.)
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": "hif4x-xgxgb-p7hei-x2jqy-jzrrk",
"codeType": "ct",
"redemptionCodeId": "1e73d56d-f043-4875-a347-1f06003bc7fd",
"version": 2,
"codeState": "Invalidated",
"customCodeInfo": {
"new_key": "new_value"
},
"customRedemptionInfo": {},
"redeemedByProfileId": null,
"redeemedByProfileName": null,
"invalidationReason": "Redemption code no longer valid.",
"createdAt": 1655498615494,
"activatedAt": 1655498615494,
"redeemedAt": null,
"invalidatedAt": 1655499571944,
"updatedAt": 1655498615494
},
"status": 200
}
Common Error Code

Status Codes

CodeNameDescription
40395REDEMPTION_CODE_NOT_FOUNDThe specified code was not found
40396REDEMPTION_CODE_VERSION_MISMATCHVersion mismatch
40399REDEMPTION_CODE_TYPE_NOT_FOUNDThe specified code type was not found
40753REDEMPTION_CODE_TYPE_DISABLEDInvalid code. Redemption code type has been disabled
40755REDEMPTION_CODE_TYPE_MISMATCHRedemption code's code type does not match specified code type