/
v3.0.11Get access

getBetHistory

Retrieves bet history data based on provided filters

Request parameters:

NameDescriptionTypeValuesDefault
from
Start timestamp (Unix) for the history rangenumber--
to
End timestamp (Unix) for the history rangenumber--
betId
Fetches a specific bet by its unique ID. Otherwise, if betId is not mentioned all bets will be returned.number--
outcome
Filters by the status of the bet (e.g., Won, Lost, Pending, Returned)string"won", "lost", "onHold", "returned", "unsettled", "cashedOut"-
betType
Filters by type (e.g., Single, Accumulator, System, Bet builder)string"none", "chain", "heinz", "single", "trixie", "system", "yankee", "patient", "goliath", "multiple", "lucky_31", "lucky_15", "lucky_63", "betBuilder", "superHeinz", "superYankee"-
onlyCounts
If true, returns the total count of bets rather than the full listbooleantrue / falsefalse
cashoutable
If true, returns only bets currently eligible for a Cashoutbooleantrue / falsefalse
isAllBetTypesAvailable
Parameter used in endpoint to fetch sport and bet builder typesbooleantrue / false-

Call example:

getBetHistory({
  to: 844451515,
  from: 121451854
})

Response examples:

{
  code: 0,
  rid: '9bcfaa77',
  data: {
    bets: [{
      id: 6598226104,
      type: 1,
      odd_type: 0,
      amount: 50,
      k: 2.92,
      currency: 'AMD',
      outcome: 0,
      client_id: 13760786,
      is_live: false,
      payout: 0,
      possible_win: 146,
      accept_type_id: 0,
      cash_out: 50,
      client_login: 'Agvan-404',
      barcode: 65982261047,
      date_time: 1787832592,
      events: [{
        bet_id: 6598226104,
        selection_id: 7050382747,
        coeficient: 2.92,
        outcome: 0,
        outcome_name: 'NotResulted',
        game_info: 'W1',
        event_name: 'W1',
        sport_id: 1,
        competition_id: 18275688,
        region_id: 2,
        game_start_date: 1787846400,
        team1: 'Iberia 1999',
        team2: 'Jagiellonia Bialystok',
        competition_name: 'UEFA Europa League Qualification',
        game_id: 30640857,
        is_live: false,
        sport_name: 'Football',
        sport_index: 'Soccer',
        region_name: 'Europe',
        region_alias: 'Europe',
        market_name: 'Match Result',
        match_display_id: 30640857,
        game_name: 'Iberia 1999 - Jagiellonia Bialystok',
        basis: 0,
        info: '0:4',
        selection_price: 2.92,
        order: 1,
        game_end_time: 1787853600,
        sport_type: 2,
        is_calculated: false
      }],
      bonus_bet_amount: 0,
      bonus: 0,
      is_super_bet: false,
      is_bonus_money: false,
      source: 42,
      remaining_stake: 50,
      tax_amount: 0,
      possible_tax_amount: 0,
      has_recalculation_reason: false,
      ip: '91.103.58.246',
      is_custom_cashout_allowed: false,
      borrow_state: 0,
      sports_book_borrow_state: -1,
      casino_borrow_state: 0,
      product_borrow_type: 0,
      child_bets: []
    }]
  }
}

Response parameters:

NameDescriptionTypeValues
bets
An array of objects containing detailed records of wagers placed by the user, including financial values, current statuses, and the specific event details associated with each betarray-
└─
object
└─ id
Unique identifier for the bet.number-
└─ type
The bet type (e.g., Single, Multiple)number-
└─ k
The total coefficient (odds) of the betnumber-
└─ outcome
The current status of the bet (e.g., 0 for Pending/Open)number-
└─ possible_win
The total amount the user will receive if the bet winsnumber-
└─ date_time
Unix timestamp of when the bet was placednumber-
└─ currency
The 3-letter ISO code or internal alias for the currency used for the stakestring"TUS", "USD", "EUR", etc.
└─ client_id
The unique partner id for the user who placed the betnumber-
└─ is_live
Indicates if the bet was placed during a live match (true) or as a pre-match wager (false)booleantrue / false
└─ is_bet_builder
Indicates if the bet has support to the Bet Builder featurebooleantrue / false
└─ payout
The actual amount paid out to the usernumber-
└─ date_time
The Unix Timestamp representing exactly when the bet was successfully registered in the systemnumber-
└─ remaining_stake
The portion of the original bet amount that is still active and at risknumber-
└─ ip
The IP address of the user at the moment the bet was placedstring-
└─ events
array-
└─
object
└─ selection_id
The ID of the specific market outcome chosennumber-
└─ bet_id
The unique identifier of the parent bet this event belongs tonumber-
└─ coeficient
The decimal odds (price) for this specific selection at the time the bet was placednumber-
└─ outcome
The numeric status of the individual selectionnumber-1, 0, 1, 2, 3, 5
└─ outcome_name
Status of the selectionstring-
└─ game_info
Brief technical descriptor of the chosen market outcomestring-
└─ event_name
The display name of the specific selection chosen by the playerstring-
└─ sport_name
The name of the sport categorystring-
└─ competition_name
The name of the league or tournamentstring-
└─ team1
The name of the first participant/home teamstring-
└─ team2
The name of the second participant/away teamstring-
└─ game_id
The unique identifier for the specific match or fixturenumber-
└─ is_live
Indicates if the bet was placed while the event was In-Play or Pre-matchbooleantrue / false
└─ market_name
The name of the betting marketstring-
└─ match_info
Live score and match state details at the time of the responsestring-
└─ is_calculated
Flag indicating if the specific event has been settled/resulted by the systembooleantrue / false
└─ sports_book_borrow_state
Contains borrow status as number: (1 = Fully borrowed, 0 = Borrowable, -1 = Not borrowable)number-
└─ product_borrow_type
Indicates which product a PowerBank bet is booked: (1 = SportsBook, 2 = Casino)number-
└─ casino_borrow_state
Contains borrow status as number: (1 = Already borrowed, 0 = Borrowable, -1 = Not borrowable)number-
└─ possible_tax_amount
Contains the maximum tax amount can benumber-