Xsolla-logo
  • 문서화
  • 계정 생성

Move user's virtual item to game

post/web/backpack/virtual_items/move_to_game

Grants the user virtual item from Backpack in the game.

Securitybearer
Request
Request Body schema: application/json
project_id
required
integer <uint32>

The Publisher Account project ID associated with the item.

merchant_id
required
integer <uint32>

The Publisher Account ID associated with the item.

item_id
required
string

The unique identifier for the item. Specified when creating item via API call.

user_game_id
required
string

The external identifier uniquely assigned to the game. Refer to endpoints under the Game tag for additional details.

Responses
200

The user was successfully granted virtual item in the game.

400

Bad request.

404

Not found.

500

Internal server error

Request samples
application/json
{
  • "item_id": "string",
  • "user_game_id": "string",
  • "project_id": 0,
  • "merchant_id": 0
}
Response samples
application/json
{
  • "message_id": "string",
  • "message": "string"
}