/
v3.0.11Get access

setClientSelfExclusion

This command triggers a Self-Exclusion (SX) event. Command is a legal and regulatory requirement that locks the user's account entirely

Request parameters:

Name
DescriptionTypeValuesDefault
password
User password to verify that the person requesting the exclusion is the actual account ownerstring--
excType
Defines the type of exclusionstring"timeout", "bettingBlock", "selfExclusion", "accountClosure", "availabilityPeriod", "sportsBookTemporaryBlock", "sportBookBlockForAccountClosure"-
days
Number of days for temporary exclusionnumber--
months
Number of months for temporary exclusionnumber--
years
Number of years for temporary exclusionnumber--
reasonText
If the system uses TwoReason for the self-exclusion provided by the userstring--
confirmationCode
Confirmation code sent to the user via email or smsnumber--
minutes
Number of minutes for temporary exclusionnumber--
hours
Number of hours for temporary exclusionnumber--
reason
Soonnumber--
isInfinitive
Soonbooleantrue / false-
schedules
A collection of specific time-slots during which the user is prohibitedarray--
└─
object-
└─ scheduleType
The frequency of the schedulestring-"week"
└─ weekDayFrom
Start the days of the week for the restrictionstring"monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"-
└─ weekDayTo
End the days of the week for the restrictionstring"monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"-
└─ timeFrom
The exact clock time (HH:MM:SS) the restriction starts within those specific daysstring--
└─ timeTo
The exact clock time (HH:MM:SS) the restriction ends within those specific daysstring--

Call example:

setClientSelfExclusion({
  excType: 'availabilityPeriod',
  hours: 1,
  password: 1,
  reason: 1,
  reasonText: 'reason text',
  schedules: [{
    scheduleType: 'week',
    weekDayFrom: 'sunday',
    weekDayTo: 'sunday',
    timeFrom: '13:00:00',
    timeTo: '14:00:00'
  }, {
    scheduleType: 'week',
    weekDayFrom: 'saturday',
    weekDayTo: 'saturday',
    timeFrom: '16:00:00',
    timeTo: '17:00:00'
  }]
})

Response examples:

{
  code: 0,
  rid: 'command527167704059894',
  data: {
    result: 0,
    result_text: null,
    details: {
      ClientId: 88736727,
      ExcludeTypeId: 8,
      Excluded: 1767606444,
      ExcludedFrom: 1767001644,
      Status: 2,
      BeforeBalance: 302.29,
      AfterBalance: 302.29,
      IBAN: null,
      Created: 1718786241
    }
  }
}

Response parameters:

NameDescriptionTypeValues
ClientId
The unique internal ID of the player being excludednumber-
ExcludeTypeId
Soonnumber-
ExcludedFrom
The Start Timestamp (Unix epoch). This is the exact moment the restriction became activenumber-
Excluded
The End Timestamp (Unix epoch). This represents the date and time the restriction will automatically liftnumber-
Status
Soonnumber-
BeforeBalance
Soonnumber-
AfterBalance
Soonnumber-
Created
The audit timestamp for when this specific exclusion record was creatednumber-
IBAN
The IBAN field is used to identify the designated bank account for the mandatory withdrawal of remaining fundsnumber-