/
v3.0.11Get access

getBonusHistory

Retrieves user bonus history filtered by date and optionally by source

Request parameters:

Name
DescriptionTypeValuesDefault
to
The beginning of the search range. Filters for records where the activity occurred on or after this timestampnumber--
from
The end of the search range. Unix timestampnumber--
bonusSource
Filters results by product sourcestring"sport" / "casino"-
maxRows
The maximum number of records to returnnumber--
This method is usually used with these methods:

Call example:

getBonusHistory({
  to: 55652620000,
  from: 1151510000,
  maxRows: 100,
  bonusSource: 'sport'
})

Response examples:

{
  code: 0,
  rid: '0',
  data: {
    result: 0,
    result_text: null,
    details: [{
      AcceptanceDate: 1689669226,
      Name: 'Test Manual Sport Bonus with 10x AA',
      Amount: 10,
      ResultType: 3,
      ResultDate: 1689669345,
      PaidAmount: 0
    }, {
      AcceptanceDate: 1687943736,
      Name: 'Test Manual Sport Bonus with 10x AA',
      Amount: 10,
      ResultType: 3,
      ResultDate: 1689669180,
      PaidAmount: 0
    }]
  }
}

Response parameters:

NameDescriptionTypeValues
AcceptanceDate
The timestamp representing when the player claimed or activated the bonus. Unix timestamp number-
Name
The marketing or technical name assigned to the bonus promotionstring-
Amount
The initial bonus value or stake granted to the player at the time of acceptancenumber-
ResultType
The settlement status of the bonus -1 - not available 0 - none 1 - paid 2 - lost 3 - canceled 4 - expired 5 - completed 6 - convertednumber-1, 0, 1, 2, 3, 4, 5, 6
ResultDate
The timestamp representing when the bonus reached its final state. Unix timestampnumber-
PaidAmount
The final real-money amount converted and transferred to the player's balance after meeting all requirementsnumber-