Skip to main content
Version: 5.7.0

ConsumeParentCurrency

Consumes currency in a parent app.

ServiceOperation
virtualCurrencyCONSUME_PARENT_VC

Method Parameters

ParameterDescription
vcIdThe currency type to consume.
vcAmountThe amount of currency to consume.
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": 90,
"consumed": 10,
"awarded": 100,
"revoked": 0
}
}

}
}