Accorder des articles à l'utilisateur
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 |
Autorisations
This API requires a title secret key, available to title admins, from PlayFab Game Manager.
Corps
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.).
Réponse
Please note that the order of the items in the response may not match the order of items in the request.
Sujets connexes
Accorder des articles aux utilisateursAccorder un personnage à l'utilisateurAccorder des articles au personnageDéplacer un article de l'utilisateur vers un personnageDéplacer un article d'un personnage vers l'utilisateur