Pular para o conteúdo principal
POST
Grant Items To Character

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

This function directly adds inventory items to the character's inventories. As a result of this operations, the user will not be charged any transaction fee, regardless of the inventory item catalog definition. Please note that the processing time for inventory grants and purchases increases fractionally the more items are in the inventory, and the more items are in the grant/purchase operation.

This function directly adds inventory items to the character's inventories. As a result of this operations, the user will not be charged any transaction fee, regardless of the inventory item catalog definition. Please note that the processing time for inventory grants and purchases increases fractionally the more items are in the inventory, and the more items are in the grant/purchase operation.

CharacterId
string
obrigatório

Unique PlayFab assigned ID for a specific character owned by a user

PlayFabId
string
obrigatório

Unique PlayFab assigned ID of the user on whom the operation will be performed.

Annotation
string

String detailing any additional information concerning this operation.

CatalogVersion
string

Catalog version from which items are to be granted.

CustomTags
object

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

ItemIds
string[]

Array of itemIds to grant to the user.

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