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

Refund

PreviousWinNextAddendum

Last updated 9 days ago

🎲
post

Request from the Supplier to The Bet Brothers Platform to refund a previously completed transaction.

Header parameters
X-REQUEST-SIGNstringRequired

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

Body
provider_namestringRequired

Provided by The Bet Brothers.

provider_idintegerRequired

Provided by The Bet Brothers.

amountintegerRequired

Amount 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.

game_symbolstringRequired

Game symbol.

tokenstringRequired

Session token generated for the play.

transaction_idstringRequired

Unique transaction ID for the refund from the Game Provider.

round_idstringRequired

Game Provider round ID.

refunded_transaction_idstringRequired

Original transaction ID to be refunded.

Responses
200
Successfully processed refund
application/json
406
Previous transaction not found.
application/json
post
POST /wallet/refund HTTP/1.1
Host: 
X-REQUEST-SIGN: text
Content-Type: application/json
Accept: */*
Content-Length: 272

{
  "provider_name": "test",
  "provider_id": 19,
  "game_symbol": "book_of",
  "player_id": "12345",
  "is_mobile": true,
  "round_id": "612233445",
  "currency_code": "SEK",
  "token": "801642c4-f4a7-446e-8b60-0421fd9bd45e",
  "transaction_id": "29912987",
  "refunded_transaction_id": "29912987",
  "amount": 100
}
{
  "transaction_id": "563214566",
  "balance": 54636,
  "token": "7848fc39-a0c3-4d56-98c2-a216f14b3fd8"
}