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
productAWARD_PARENT_VC

Method Parameters

ParameterDescription
currencyTypeThe currency type to award.
amountThe amount of currency to award.
levelNameName of the parent level.

Usage

http://localhost:3000
// Cloud Code Only
JSON Response
{
"status" : 200,
"data" :
{
"updatedAt": 1395693913234,
"currencyMap": {
"gems": {
"purchased": 0,
"balance": 0,
"consumed": 0,
"awarded": 0
},
"gold": {
"purchased": 0,
"balance": 123,
"consumed": 0,
"awarded": 123
}
},
"playerId": "acf11847-055f-470d-abb7-b93052201491",
"createdAt": 1395693907421
}
}