Virtual Currency
Overview
The VirtualCurrency Service manages virtual currency balances for app users.
This service replaces the currency functions of the deprecated Product Service. The currency APIs of the two services are largely the same, with the following two changes:
- For security purposes, only the get methods are callable from the client -- use Cloud Code for the rest
- We have cleaned up the responses a bit, removing unnecessary fields like
createdAt,updatedAtandprofileId
API Summary
User Currency
- GetCurrency - get current currency balances
- AwardCurrency - call when currency is awarded. Note that
- ConsumeCurrency - call when currency is consumed
- ResetCurrency - resets the users currency balances to zero
- SysGetCurrencyTypes - retrieves the virtual currency types defined for the current app
Note that there are Parent and Peer versions of these APIs available as well.
📄️ AwardCurrency
Overview
📄️ AwardParentCurrency
Overview
📄️ AwardPeerCurrency
Overview
📄️ ConsumeCurrency
Overview
📄️ ConsumeParentCurrency
Overview
📄️ ConsumePeerCurrency
Overview
📄️ GetCurrency
Overview
📄️ GetParentCurrency
Overview
📄️ GetPeerCurrency
Overview
📄️ ResetCurrency
Overview
📄️ ResetParentCurrency
Overview
📄️ ResetPeerCurrency
Overview
📄️ SysGetCurrencyTypes
Overview
📄️ SysGetParentCurrencyTypes
Overview
📄️ SysGetPeerCurrencyTypes
Overview