/
v3.0.11Get access

calculateCashbackCashout

Calculates the player’s eligible cashback cashout amount based on the selected promotional bonus configuration

Request parameters:

NameDescriptionTypeValuesDefaultSource
bonusDefinitionId
The unique identifier of the bonus definition for which the system should calculate the eligible cashback cashout amount.number--
Key from responseBonusDefinitionId

Call example:

calculateCashbackCashout({
  bonusDefinitionId: 636
})

Response examples:

{
  code: 0,
  rid: 1808660568,
  data: {
    result: 0,
    details: {
      '$id': '1',
      Amount: 0,
      HasError: false,
      ErrorId: 0,
      ErrorDescription: null,
      PartnerError: null,
      ErrorValue: null
    }
  }
}

Response parameters:

NameDescriptionTypeValues
$id
the unique id of current cashbackstring-
Amount
Cashback amountnumber-
HasError
When something goes wrong, backend sending in response params hasError. To handle error's casebooleantrue / false
ErrorId
Unique error idnumber-
ErrorDescription
Error descriptionstring-
PartnerError
Partner's error detailsstring-
ErrorValue
Error valuestring-