Skip to main content
curl --request POST \
  --url 'https://partner-platform-url/user/balance' \
  --header 'content-type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-signature: <x-signature>' \
  --header 'x-timestamp: <x-timestamp>' \
  --data '{
    "sessionId": "f1dfc865-584c-4cba-a175-06172b2a41141731504451691",
    "playerId": "18865671"
}'
{
  "status": "RS_OK",
  "sessionId": "f1dfc865-584c-4cba-a175-06172b2a41141731504451691",
  "balance": 50000000
}
  POST  /user/balance

Headers

x-api-key
string
required
A unique identifier associated with operator calling API.
x-signature
string
required
A SHA256 HMAC signature generated using the request body and timestamp. Format: HMAC_SHA256(JSON.stringify(data) + ’|’ + timestamp), signed using the provided secret key.
x-timestamp
string
required
An Unix timestamp (milliseconds) when the request was sent. Ensure the same value is used in signature generation.
content-type
string
required
Must be set to application/json

Request Body

sessionId
string
required
A unique identifier for the session you want to retrieve the balance for.
playerId
string
required
A unique identifier of the player placing the bet.

Response

status
string
required
Code indicates status of the request weather it is succeed or failed. We have listed error codes here
sessionId
string
required
The unique identifier for the session.
balance
number
required
The current balance of the player.
To maintain precision and avoid floating-point errors, the balance field is processed as an integer value by multiplying the actual amount by 100000.For example, a balance of 12.34567 will be represented as 1234567 in the API.
curl --request POST \
  --url 'https://partner-platform-url/user/balance' \
  --header 'content-type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-signature: <x-signature>' \
  --header 'x-timestamp: <x-timestamp>' \
  --data '{
    "sessionId": "f1dfc865-584c-4cba-a175-06172b2a41141731504451691",
    "playerId": "18865671"
}'
{
  "status": "RS_OK",
  "sessionId": "f1dfc865-584c-4cba-a175-06172b2a41141731504451691",
  "balance": 50000000
}