Skip to main content
Version: 5.7.0

RevokeParentCurrency

Revoke the specified amount of currency from the parent user. Parent user's balance can go negative

ServiceOperation
virtualCurrencyREVOKE_PARENT_VC

Method Parameters

ParameterDescription
vcIdThe currency type to revoke.
vcAmountThe amount of currency to revoke.
levelNameThe name of the parent level.

Usage

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