Documentation

RevokeInventoryItem

Revokes access to an item in a user's inventory

Request Details

In cases where the inventory item in question is a "crate", and the items it contained have already been dispensed, this will not revoke access or otherwise remove the items which were dispensed.

RevokeInventoryItemRequest
Request Properties
CharacterId String

Unique PlayFab assigned ID for a specific character owned by a user

ItemInstanceId (required) String

Unique PlayFab assigned instance identifier of the item

PlayFabId (required) String

Unique PlayFab assigned ID of the user on whom the operation will be performed.

POST https://{{TitleID}}.playfabapi.com/Server/RevokeInventoryItem
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "PlayFabId": "203945882",
  "ItemInstanceId": "2048583045"
}
        

Response Details

RevokeInventoryResult
Result Properties

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8


Authentication

SecretKey

Possible Error Codes

Name Code
ItemNotFound 1047