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

Win

PreviousBetNextRefund

Last updated 9 days ago

๐ŸŽฒ
post

Request from the Supplier to The Bet Brothers Platform to register a win and update 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 won, in subunits (ISO 4217). Use 0 for a lost result.

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.

round_closebooleanRequired

Whether the round is closed.

Responses
200
Successfully processed win
application/json
403
Forbidden - Invalid or missing token.
application/json
post
POST /wallet/win HTTP/1.1
Host: 
X-REQUEST-SIGN: text
Content-Type: application/json
Accept: */*
Content-Length: 382

{
  "provider_name": "test",
  "provider_id": 19,
  "token": "7848fc39-a0c3-4d56-98c2-a216f14b3fd8",
  "transaction_id": "2991129817",
  "amount": 100,
  "currency_code": "SEK",
  "game_symbol": "book_of",
  "is_mobile": true,
  "player_id": "12345",
  "round_id": "612233445",
  "round_close": true,
  "tournament": {
    "id": "12345",
    "score": "12345",
    "place": "12345"
  },
  "jackpot": {
    "id": "12345",
    "contribution": "12345",
    "details": "12345"
  }
}
{
  "transaction_id": "563214566",
  "balance": 54636,
  "token": "7848fc39-a0c3-4d56-98c2-a216f14b3fd8"
}