How may I initiate the POST request to "https://titleid.playfabapi.com/Inventory/AddInventoryItems" utilizing a server entity token? Additionally, where should the PlayFab ID be specified or positioned?
How may I initiate the POST request to "https://titleid.playfabapi.com/Inventory/AddInventoryItems" utilizing a server entity token? Additionally, where should the PlayFab ID be specified or positioned?
If you are using the API in your project, in the AddInventoryItems API’s request body, you may set the AuthenticationContext property of AddInventotyItems API with the Title Entity and Title Entity Token, then, you may need to specify the Entity property with the title_player_account entity (which is different from the PlayFabId). You may refer to Available Built-In Entity Types - PlayFab | Microsoft Learn to have more information about Entity.
If you are testing the API with Postman, you can specify the “X-EntityToken” property in the header with Title Entity Token, then specify the Entity property in the AddInventoryItems API’s request body with the title_player_account entity.
2 People are following this question.