Transfer Inventory Items
Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer did not complete within the timeframe of the request. You can identify the pending operations by looking for OperationStatus = ‘InProgress’. You can check on the operation status at anytime within 1 day of the request by passing the TransactionToken to the GetInventoryOperationStatus API. More information about item transfer scenarios can be found here: https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items
Allowed entity token types: title, master_player_account, title_player_account
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| DatabaseThroughputExceeded | 1113 |
| InsufficientFunds | 1059 |
| ItemNotFound | 1047 |
| PreconditionFailed | 1610 |
Authorizations
This API requires an Entity Session Token, available from the Entity GetEntityToken method.
Body
Transfer the specified inventory items of an entity's container Id to another entity's container Id.
Transfer the specified inventory items of an entity's container Id to another entity's container Id.
Indicates whether stacks reduced to an amount of 0 during the request should be deleted from the inventory. (Default = false)
The amount to transfer .
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
The inventory collection id the request is transferring from. (Default="default")
The entity the request is transferring from. Set to the caller by default.
ETags are used for concurrency checking when updating resources (before transferring from). More information about using ETags can be found here: https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/catalog/etags
The inventory item the request is transferring from.
The idempotency id for the request.
The values to apply to a stack newly created by this request.
The inventory collection id the request is transferring to. (Default="default")
The entity the request is transferring to. Set to the caller by default.
The inventory item the request is transferring to.
