Collections
Economy v2 is now Generally Available. For support and feedback, go to the PlayFab Forum.
CollectionId parameter that specifies the collection/inventory to perform the action in. Creating a new collection is done by adding an item/stack to an unused CollectionId.
Managing Inventory Collections
GetInventoryCollectionIds
Using theGetInventoryCollectionIds API, you can get a list of CollectionIds for a given player. Players are limited to only accessing their own list of IDs. Title Entities can pass in an Entity parameter to indicate which player’s inventory they wish to access.
An example GetInventoryCollectionIds request:
Continuation Tokens
TheContinuationToken field that is returned from a search response can be passed into an inventory request to paginate through multiple counts of results.
Adding a New Inventory Collection
Creating a new collection for a player is done by performing any write request with a new CollectionId. For example, the followingAddInventoryItems request uses the collectionId main_character
main_character inventory collection if it already existed.
DeleteInventoryCollection
In theDeleteInventoryCollectionId API, you can define the CollectionId
you wish to delete. Deleting is an asynchronous operation and may take longer for collections that are large. The collection won’t be able to be remade until the delete operation is complete.
An example DeleteInventoryCollectionIds request:
Currently, APIs are the only way to delete Inventory Collections. Game Manager can currently only be used to view and add items to new and existing collections. Additional functionality will be added in the future.
ExecuteInventoryOperations API
You can set aCollectionId parameter in the ExecuteInventoryOperations API. This parameter allows you to define the collection where you want the operations to be performed in.
An example ExecuteInventoryOperations request with stacks:
