Xsolla-logo

Get current user's virtual balance

get/v2/project/{project_id}/user/virtual_currency_balance

Client endpoint. Retrieves the current user’s virtual balance.

SecurityXsollaLoginUserJWT
Request
path Parameters
project_id
required
integer
Default: 44056

Project ID.

query Parameters
platform
string
Default: "playstation_network"

Publishing platform the user plays on.

Enum: "playstation_network" "xbox_live" "xsolla" "pc_standalone" "nintendo_shop" "google_play" "app_store_ios" "android_standalone" "ios_standalone" "android_other" "ios_other" "pc_other"
Responses
200

The user’s virtual balance was successfully retrieved.

Request samples
curl -i -X GET \
  'https://store.xsolla.com/api/v2/project/{project_id}/user/virtual_currency_balance?platform=playstation_network' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'
Response samples
application/json
{
  • "items": [
    ]
}