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

Move user's virtual currency to game

post/web/backpack/virtual_currency/move_to_game

Grants the user virtual currency from Backpack in the game.

Securitybearer
Request
Request Body schema: application/json
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 currency in the game.

400

Bad request.

404

Not found.

500

Internal server error.

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