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. Game Events

Bet

PreviousBalanceNextWin

Last updated 9 days ago

๐ŸŽฒ
post

Request from the Supplier to The Bet Brothers Platform to process a bet by deducting an amount from the playerโ€™s balance.

Header parameters
X-REQUEST-SIGNstringRequired

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

Body
tokenstringRequired

Session token - must be present in every callback.

provider_namestringRequired

Provided by The Bet Brothers.

provider_idintegerRequired

Provided by The Bet Brothers.

amountintegerRequired

Amount to bet, in subunits (ISO 4217).

currency_codestringRequired

Currency code in upper case (ISO 4217).

is_mobilebooleanRequired

True if the player is on a mobile device.

player_idstringRequired

Unique identifier of the player on the Operator side.

round_idstringRequired

Game Provider round ID.

game_symbolstringRequired

Game symbol.

transaction_idstringRequired

Unique transaction ID from the Game Provider.

Responses
200
Successfully processed bet
application/json
402
Payment Required - The player does not have enough money for the action.
application/json
post
POST /wallet/bet HTTP/1.1
Host: 
X-REQUEST-SIGN: text
Content-Type: application/json
Accept: */*
Content-Length: 240

{
  "provider_name": "test",
  "provider_id": 19,
  "token": "7848fc39-a0c3-4d56-98c2-a216f14b3fd8",
  "transaction_id": "299121981517131",
  "amount": 1000,
  "currency_code": "SEK",
  "game_symbol": "book_of",
  "is_mobile": true,
  "player_id": "6",
  "round_id": "6122334451"
}
{
  "transaction_id": "563214566",
  "balance": 54636,
  "token": "7848fc39-a0c3-4d56-98c2-a216f14b3fd8"
}