Skip to content

Player Balance

Query a player's wallet balance for a specific currency.

Endpoint

PropertyValue
PathPOST /papi/v1/player/balance
AuthAgent Token (Bearer)
Content-Typeapplication/x-www-form-urlencoded

Request Parameters

ParameterTypeRequiredDescription
member_idstringYesPlayer unique identifier (Agent-side ID). Automatically converted to uppercase
currencystringYesCurrency code (e.g. MYR, USD). Must be a platform-supported currency. Automatically converted to uppercase

Request Example

bash
curl -X POST https://api.example.com/papi/v1/player/balance \
  -H "Authorization: Bearer {agent_token}" \
  -d "member_id=PLAYER_001&currency=MYR"

Response Fields

FieldTypeDescription
member_idstringPlayer identifier (uppercased)
currencystringCurrency code
balancedecimalBalance (4 decimal places)

Response Example

json
{
  "status": true,
  "code": 0,
  "data": {
    "member_id": "PLAYER_001",
    "currency": "MYR",
    "balance": 0.0000
  },
  "msg": "success"
}

Error Codes

CodeMessageDescription
1001err.param.invalidmember_id or currency is missing
1002err.signature.invalidAgent Token verification failed
2001err.player.not_foundPlayer not found (must call register first)
3005err.fund.currency_not_supportedCurrency not supported

VCT Gaming Integration Platform