Grant Items To Character
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 character’s inventory
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| CatalogNotConfigured | 1218 |
| CharacterNotFound | 1135 |
| ProductDisabledForTitle | 1609 |
Authorizations
This API requires a title secret key, available to title admins, from PlayFab Game Manager.
Body
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.
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.
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.).
Array of itemIds to grant to the user.
