Skip to main content
Version: 5.7.0

GetParentCurrency

Gets the parent player's currency for the given currency type or all currency types if null passed in.

ServiceOperation
productGET_PARENT_VC

Method Parameters

ParameterDescription
currencyTypeThe currency type to retrieve or null if all currency types are being requested.
levelNameName of the parent level.

Usage

http://localhost:3000
// Cloud Code Only
JSON Response
{
"status":200,
"data":{
"createdAt":1507311971256,
"currencyMap":{
"credits":{
"consumed":20,
"balance":180,
"purchased":0,
"awarded":200
}
},
"playerId":"dc129e18-af4c-439b-9b1d-e4b567fab38b",
"updatedAt":1521049401784
}
}