Documentation

MoveItemToUserFromCharacter

Moves an item from a character's inventory into the owning user's inventory.

Request Details

Transfers an item from a character to the owning user. This will remove the item from the character's inventory (until and unless it is moved back), and will enable the user to make use of the item instead.

MoveItemToUserFromCharacterRequest
Request Properties
CharacterId (required) 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/MoveItemToUserFromCharacter
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "PlayFabId": "234234897234",
  "CharacterId": "98092347523",
  "ItemInstanceId": "701231299999"
}
        

Response Details

MoveItemToUserFromCharacterResult
Result Properties

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {}
}

Authentication

SecretKey

Possible Error Codes

Name Code
AccountNotFound 1001
CharacterNotFound 1135
ItemNotOwned 1048