The Bet Brothers
HomeNewsLinkedIn
  • The Bet Brothers APIS
    • ๐ŸงฉCore Concepts
    • ๐Ÿ”API Flow
  • OPERATOR API
    • ๐Ÿ”—Operator Integration Service
    • ๐Ÿ”‘Protocol API
      • Create api-token
      • Revoke api-token
  • ๐Ÿš€Game Launcher API
    • Get Game Providers
    • Get Games
    • Launch Game in Demo Mode
    • Launch game in Real Mode
  • ๐Ÿ’ฐWallet API
    • Balance
    • Bet
    • Win
    • Refund
    • Rollback Win
  • โšกFree Spin API
    • Add Free Spin
    • Cancel Free Spin
  • ๐ŸŽฎGame Insights
    • Get Game Bet Levels
    • Get Round Info
  • ๐Ÿ“–Addendum
    • TBB Error Codes
    • Wallet Error Response
  • SUPPLIER API
    • ๐Ÿ”—Supplier Integration Service
    • ๐Ÿ”‘Supplier Protocol API
    • ๐Ÿš€Game Launcher API
      • Launch Game in Demo Mode
      • Launch Game in Real Mode
  • ๐ŸŽฒGame Events
    • Balance
    • Bet
    • Win
    • Refund
  • ๐Ÿ“–Addendum
    • TBB Error Codes
Powered by GitBook
On this page
  1. Wallet API

Balance

PreviousWallet APINextBet

Last updated 12 days ago

๐Ÿ’ฐ
post

Retrieves the player's balance in subunits.

Header parameters
X-REQUEST-SIGNstringRequired

HMAC-SHA256 signature of the request body using the shared password.

Body
player_idstringRequired

Unique identifier of the user on the Operator side.

referencestringRequired

Game reference.

currency_codestringRequired

Identifier of currency.

actionstring ยท enumRequired

Must be set to "balance".

Possible values:
is_mobilebooleanRequired

True if the request is from a mobile device.

session_tokenstringRequired

Session ID generated when the game is launched.

Responses
200
Player balance successfully retrieved.
application/json
403
Forbidden - signature does not match.
application/json
post
POST /operator/wallet HTTP/1.1
Host: 
X-REQUEST-SIGN: text
Content-Type: application/json
Accept: */*
Content-Length: 134

{
  "player_id": "6",
  "reference": "Monkey",
  "currency_code": "EUR",
  "action": "balance",
  "is_mobile": false,
  "session_token": "session_token_here"
}
{
  "player_id": "6",
  "balance": 10000,
  "currency_code": "EUR"
}