Skip to main content
Version: 5.7.0

AwardParentCurrency

Award parent user the passed-in amount of currency. Returns an object representing the new currency values.

ServiceOperation
virtualCurrencyAWARD_PARENT_VC

Method Parameters

ParameterDescription
vcIdThe currency type to award.
vcAmountThe amount of currency to award.
levelNameName of the parent level.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status" : 200,
"data" :
{
"currencyMap": {
"gems": {
"purchased": 0,
"balance": 0,
"consumed": 0,
"awarded": 0,
"revoked": 0
},
"gold": {
"purchased": 0,
"balance": 100,
"consumed": 0,
"awarded": 100,
"revoked": 0
}
}
}
}