Hi,
If we wanted to award a player virtual currency through our backend or game servers, what is the API we should be using? The Quickstart, under "Granting Currencies" suggests to use *AddInventoryItems*.
This API expects an "ItemId". I have tried supplying:
- The id of the virtual currency
- The id of a bundle that awards currency (which works when purchasing via Steam and then redeeming)
- Another item, to test, that has nothing to do with currency.
In all cases, my JSON body for the call looks like:
{ "Item": { "Id": "id-of-item" }, "Entity": { "Id": "playfab-id-of-player", "Type": "master_player_account" }, "Amount": 3, "ReturnInventory": false }
And in all cases I'm getting a response of
{ "code": 400, "status": "BadRequest", "error": "InvalidRequest", "errorCode": 1071, "errorMessage": "Asset (id-of-item) was not found." }
Can you advise on what I'm doing wrong here?