Get wallet balance

Live
GET/api/v1/profile/balance

Fetch the member's credit balance — current balance, pending amount, and lifetime deposit/withdrawal totals.

Headers

FieldTypeRequiredDescription
AuthorizationstringYesUsed — send Bearer <member access_token>
X-Api-KeystringYesAgent API key (ak_…) from the bo screen
X-TimestampstringYesSigning time in unix milliseconds (±300s skew allowed)
X-NoncestringYesUnique per-request value (UUIDv4) for replay protection
X-SignaturestringYeshex(HMAC-SHA256(secret, canonical)) — see the Authentication page
X-Player-IPstring—The player's real IP (IPv4/IPv6) — recommended (used in login history)
X-Player-UAstring—The player's User-Agent (optional — recorded in login history)
X-Request-Idstring—Your correlation id — echoed back as request_uuid (recommended)
x-langstring—th (default) or en — the language of message

Response

Fields in data

FieldTypeRequiredDescription
balancestring—Available balance
pendingstring—Amount held by in-flight operations, e.g. a withdrawal awaiting approval
total_depositstring—Lifetime total deposits
total_withdrawalstring—Lifetime total withdrawals
Response example
{
  "success": true,
  "code": 0,
  "message": "สำเร็จ",
  "data": {
    "balance": "1250.50",
    "pending": "0.00",
    "total_deposit": "15000.00",
    "total_withdrawal": "8200.00"
  },
  "request_uuid": "f83a5c21-9d64-4b07-a2e9-5c1f8d3b6a90"
}

Possible error codes

codeNameHTTPMessage
1001UNAUTHORIZED401UnauthorizedMissing Authorization: Bearer header
1007TOKEN_INVALID401Token invalidInvalid/expired access token, or the session was revoked (logout)
2002WALLET_NOT_FOUND404Wallet not found