Skip to main content
Version: 5.7.0

RevokeCurrency

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

ServiceOperation
virtualCurrencyREVOKE_VC

Method Parameters

ParameterDescription
vcIdThe currency type to revoke.
vcAmountThe amount of currency to revoke.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"currencyMap": {
"bar": {
"consumed": 0,
"balance": 32,
"purchased": 0,
"awarded": 32,
"revoked": 0
},
"coins": {
"consumed": 0,
"balance": 101,
"purchased": 0,
"awarded": 120,
"revoked": 19
}
}
},
"status": 200
}