Documentation

MoveItemToCharacterFromUser

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

Request Details

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

MoveItemToCharacterFromUserRequest
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/MoveItemToCharacterFromUser
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "PlayFabId": "234234897234",
  "CharacterId": "98092347523",
  "ItemInstanceId": "701231299999"
}
        

Response Details

MoveItemToCharacterFromUserResult
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