Xsolla-logo

Update user balance

post/projects/{project_id}/users/{user_id}/recharge

Updates the balance of a user.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

Project ID.

user_id
required
string

User ID.

Request Body schema: application/json
amount
integer <float>

Virtual currency quantity.

comment
string

Reason for changing the balance.

Responses
200

OK.

Request samples
application/json
{
  • "amount": 100,
  • "comment": "Updated balance"
}