I want to implement market functionality into my game where players can buy and sell their items. As far as I can see, PlayFab doesn't support that out of the box.
I would solve it like this currently:
When a player wants to sell an item, he issues a request to cloudscript. There I would remove the item from his iventory and then do a http call to a custom market rest api and add that item to the market.
When a player wants to list items on the market, he can set some filters and make a call to cloudscript. Here I would do some sanity checks again (like is he allowed to query that part of the market etc.). Then call the market api with the filters and return the result to the client.
When a player wants to buy an item, he issues a request to cloudscript. Cloudscript gets that item from the market api, checks the price against the players currency. If theres enough he removes the item from the market, substracts the currency and adds the item to his inventory. Then he adds the price to the sellers currency.
Is that a reasonable setup? And is that possible with the free tier?