/
v3.0.11Get access

getClientBonusRequests

This command queries the bonus management system to return a list of bonus requests submitted by the client within a specific timeframe

Request parameters:

Name
DescriptionTypeValuesDefault
to
The end point of the date range. Only requests made on or before this date/time will be returnednumber--
from
The starting point of the date range. Only requests made on or after this date/time will be returnednumber--
isAutomatic
Soonbooleantrue / false-

Call example:

getClientBonusRequests({
  from: 1715731200,
  to: 1718319600
})

Response examples:

{
  code: 0,
  rid: 1865962478,
  data: {
    result: 0,
    result_text: null,
    details: [{
      Id: 2,
      Type: 6,
      State: 1,
      Created: 1623234052,
      Modified: 1623236236,
      UserNote: "You'll get a FreeBet"
    }, {
      Id: 3,
      Type: 2,
      State: 2,
      Created: 1623234151,
      Modified: 1623236203,
      UserNote: 'Not Enough Sports Activity'
    }, {
      Id: 4,
      Type: 3,
      State: 0,
      Created: 1623236289,
      Modified: 1623236289,
      UserNote: null
    }]
  },
  hasError: false,
  error: {
    message: ''
  }
}

Response parameters:

NameDescriptionTypeValues
Id
The unique primary key of the specific bonus requestnumber-
Type
Represents the type of bonus 1 - Sport bonus 2 - Wagering bonus 3 - Manual bonus 4 - Cash bonus 5 - FreeSpin 6 - FreeBet 7 - Bonus money 8 - Skill game bonus 9 - Profit boostnumber1, 2 , 3, 4, 5, 6, 7, 8, 9
State
Represents the current status 0 - pending 1 - approved 2 - rejectednumber0, 1, 2
Created
The exact second the player requested the bonus(Unix date format)number-
Modified
The last time the request status was changed by the system or admin(Unix date format)number-
UserNote
Admin feedback or system explanation regarding the bonus statusstring-
RuleError
object
└─ RuleId
Identifier of the evaluated rulenumber21
└─ Condition
Condition expression or status flag evaluatedstring1
└─ Period
Time window or period applicable to the rule conditionnumber1
└─ Value
Target or threshold value associated with the rule errorstring0
BonusSource
Unique identifier of the associated bonus sourcenumber1
BonusRuleSetId
Unique identifier of the associated bonus rule setstring1
HasError
A flag indicating if the request failedbooleantrue / false
Name
Specifies product namestring-
Description
Additional description about bonus requeststring-
UserNote
Client notes, used for createClientBonus requeststring-