Subtract Character Virtual Currency
NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for version 2. Decrements the character’s balance of the specified virtual currency by the stated amount. It is possible to make a VC balance negative with this API.
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| InvalidVirtualCurrency | 1051 |
| ProductDisabledForTitle | 1609 |
Authorizations
This API requires a title secret key, available to title admins, from PlayFab Game Manager.
Body
Amount to be subtracted from the user balance of the specified virtual currency.
Unique PlayFab assigned ID for a specific character owned by a user
Unique PlayFab assigned ID of the user on whom the operation will be performed.
Name of the virtual currency which is to be decremented.
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
