/
v3.0.11Get access

getClientBonusBalanceHistory

Retrieves the client's bonus balance history for a specified product and date range

Request parameters:

NameDescriptionTypeValuesDefault
toDate
End date of the range (Unix timestamp)number--
fromDate
Start date of the range (Unix timestamp)number--
product
Product type for bonus balance historystring"Sport" / "Casino"-

Call example:

getClientBonusBalanceHistory({
  product: 'Casino',
  fromDate: 1715731200,
  toDate: 1718319600
})

Response examples:

{
  code: 0,
  rid: '474af03',
  data: {
    result: 0,
    result_text: null,
    details: [{
      Amount: 290,
      DocumentId: 183864077362,
      TransactionId: 255738672998,
      DocumentTypeId: 1,
      DocumentTypeName: 'Increasing the winning',
      Balance: 123,
      Created: 1765456602,
      Game: 'Hot Angels',
      GameId: 420016823,
      ProductCategoryId: 2,
      Product: 'Slots',
      ProductId: 6,
      HasChildren: true
    }]
  }
}

Response parameters:

NameDescriptionTypeValues
array-
└─
object
└─ Amount
The amount of the bonusnumber-
└─ DocumentId
The Id of the bonusnumber-
└─ TransactionId
The Id of the transactionnumber-
└─ DocumentTypeId
The Id of the bonus typenumber-
└─ DocumentTypeName
The name of the bonusstring-
└─ Balance
The balance of the usernumber-
└─ Created
The creation date of the bonusnumber-
└─ Game
The name of the game for which the bonus is givenstring-
└─ GameId
The Id of the game for which the bonus is givennumber-
└─ ProductCategoryId
The Id of the product categorynumber-
└─ Product
The name of the productstring-
└─ ProductId
The Id of the productnumber-
└─ HasChildren
true if the document has a detailed transaction and 'get_client_balance_details' request should be donestring-