Pular para o conteúdo principal
POST
Subtract User Virtual Currency

Autorizações

X-SecretKey
string
header
obrigatório

This API requires a title secret key, available to title admins, from PlayFab Game Manager.

Corpo

application/json
Amount
number
obrigatório

Amount to be subtracted from the user balance of the specified virtual currency.

PlayFabId
string
obrigatório

PlayFab unique identifier of the user whose virtual currency balance is to be decreased.

VirtualCurrency
string
obrigatório

Name of the virtual currency which is to be decremented.

CustomTags
object

The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

Resposta

code
integer

The Http status code. If X-ReportErrorAsSuccess header is set to true, this will report the actual http error code.

status
string

The Http status code as a string.

data
object
Exemplo:
Última modificação em 6 de outubro de 2026