Documentation

MoveItemToCharacterFromCharacter

Moves an item from a character's inventory into another of the users's character's inventory.

Request Details

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

MoveItemToCharacterFromCharacterRequest
Request Properties
GivingCharacterId (required) String

Unique identifier of the character that currently has the item.

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.

ReceivingCharacterId (required) String

Unique identifier of the character that will be receiving the item.

POST https://{{TitleID}}.playfabapi.com/Server/MoveItemToCharacterFromCharacter
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "PlayFabId": "234234897234",
  "GivingCharacterId": "98092347523",
  "ReceivingCharacterId": "6323489712",
  "ItemInstanceId": "701231299999"
}
        

Response Details

MoveItemToCharacterFromCharacterResult
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