Conceder artículos al usuario
NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for version 2. Adds the specified items to the specified user’s inventory
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| AccountNotFound | 1001 |
| CatalogNotConfigured | 1218 |
| ProductDisabledForTitle | 1609 |
Autorizaciones
This API requires a title secret key, available to title admins, from PlayFab Game Manager.
Cuerpo
This function directly adds inventory items to the user'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 user'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.
Array of itemIds to grant to the user.
Unique PlayFab assigned ID of the user on whom the operation will be performed.
String detailing any additional information concerning this operation.
Catalog version from which items are to be granted.
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
Respuesta
Please note that the order of the items in the response may not match the order of items in the request.
Temas relacionados
Conceder artículos a usuariosConceder artículos al personajeConceder artículos a los usuariosConceder personaje al usuarioMover artículo al usuario desde un personaje