Skip to main content

Player & Session Events

These events track player account lifecycle including registration, login/logout, and account changes.


OnUserLoggedIn

Triggered when a user logs into the system.

When it fires:

  • Player logs into poker client
  • Player logs into casino website
  • Player authenticates via any client application
FieldTypeDescription
playerIdintegerUser ID
externalIdstringExternal system player ID
externalSystemCodestringExternal system code
nickstringPlayer nickname
clientVersionstringClient version (e.g., "HTML5")
skinstringSkin key
skinIdintegerSkin ID
deviceIdintegerInternal device identifier
deviceUniqueIdstringUnique device identifier
platformstringPlatform identifier
osNamestringOperating system name
osVersionstringOperating system version
motherboardIdstringMotherboard identifier
cpuIdstringCPU identifier
appVersionstringClient application version
ipstringPlayer's IP address
macAddressstringPlayer's MAC address
latitudedecimalPlayer's latitude
longitudedecimalPlayer's longitude
isFirstLoginbooleantrue if this is the player's first login
externalSessionIdstringExternal session identifier

Example:

{
"params": {
"playerId": 81622,
"externalId": "83688319",
"externalSystemCode": "test",
"nick": "LOCALBOT_5822",
"clientVersion": "HTML5",
"skin": "base",
"skinId": 0,
"deviceId": 0,
"deviceUniqueId": "12321321",
"platform": "html5",
"osName": "Windows",
"osVersion": "10",
"appVersion": "23.1.1.7d9855c",
"ip": "8.8.8.8",
"latitude": 23.232,
"longitude": 23.3432,
"isFirstLogin": false
}
}

OnUserLoggedOut

Triggered when a user logs out of the system.

When it fires:

  • Player logs out of poker client
  • Player logs out of casino website
  • Session expires or is terminated
FieldTypeDescription
playerIdintegerUser ID
externalIdstringExternal system player ID
externalSystemCodestringExternal system code
nickstringPlayer nickname
clientVersionstringClient version
skinstringSkin key
skinIdintegerSkin ID
deviceIdintegerInternal device identifier
deviceUniqueIdstringUnique device identifier
platformstringPlatform identifier
osNamestringOperating system name
osVersionstringOperating system version
motherboardIdstringMotherboard identifier
cpuIdstringCPU identifier
appVersionstringClient application version
ipstringPlayer's IP address
latitudedecimalPlayer's latitude
longitudedecimalPlayer's longitude
externalSessionIdstringExternal session identifier

Example:

{
"params": {
"playerId": 6158,
"externalId": "78963",
"externalSystemCode": "",
"nick": "john",
"clientVersion": "HTML5",
"skin": "evenbet",
"skinId": 0,
"deviceId": 219,
"deviceUniqueId": "e742b6874741c1266b0539f9e89bb75d",
"platform": "H",
"osName": "W",
"osVersion": "10.0",
"appVersion": "23.1.1.7d9855c",
"ip": "192.168.3.56",
"latitude": 0,
"longitude": 0
}
}

OnPlayerRegistered

Triggered when a new player account is created.

When it fires:

  • New user registers via client application
  • New user created via Backoffice
  • New user created via API
FieldTypeDescription
playerIdintegerNew player's ID
activationCodestringAccount activation code
callbackParamstringCallback parameter
deviceIdintegerDevice identifier

Example:

{
"params": {
"playerId": 81623,
"activationCode": "ABC123",
"callbackParam": "",
"deviceId": 0
}
}

OnPlayerAccountChanged

Triggered when a player's account information is updated.

When it fires:

  • Player updates profile information
  • Administrator updates player account in Backoffice
  • Account attributes modified via API
FieldTypeDescription
playerIdintegerUser ID
skinIdintegerUser's skin ID
externalIdstringExternal system player ID
externalSystemCodestringExternal system code
accountChangedReasonTypeintegerReason code (see below)
changedFieldsarrayList of changed field names
changedAttributesobjectMap of changed attributes with new values

Account Change Reason Codes

CodeReasonDescription
0UnknownUnknown reason
1AvatarChangedByPlayerPlayer changed their avatar
2PasswordChangedByPlayerPlayer changed their password
3PasswordChangedByAdminPassword changed via Backoffice/API
4EmailChangedByPlayerPlayer changed their email
5AddressChangedByPlayerPlayer changed their address
6NotificationSettingsChangedPlayer updated notification preferences
7AccountChangedByAdminAccount modified via Backoffice/API (excluding password)
8RegistrationInfoChangedPlayer updated registration info (name, country, DOB, gender)

Example:

{
"playerId": 6158,
"skinId": 0,
"externalId": "EXT123",
"externalSystemCode": "default",
"accountChangedReasonType": 7,
"changedFields": [
"f_display_name"
],
"changedAttributes": {
"tagg": "value",
"GlobalFreeRabbitHuntingActionPerformed": ""
}
}
Attribute Values
  • A non-empty string indicates the new value for the attribute
  • An empty string "" indicates the attribute was deleted

OnUpdatePlayerBlockStatus

Triggered when a player is blocked or unblocked.

When it fires:

  • Player blocked by administrator
  • Player blocked automatically (policy violation, too many failed logins, etc.)
  • Block lifted
FieldTypeDescription
playerIdintegerInternal player ID
externalIdstringExternal system player ID
externalSystemCodestringExternal system code
skinIdintegerUser's skin ID
isBlockedbooleantrue = blocked, false = unblocked
blockingLimitstringBlock expiry timestamp
blockingReasonintegerReason code (see below)
objectIdnullNot used

Block Reason Codes

CodeReasonDescription
0UnknownUnknown reason
32NoneNo specific reason
71GeneralViolationBlocked by administrator
73ProhibitedIpIP address blocked
77MessageRestrictionAnti-DDoS protection (too many messages)
80PasswordPolicyViolationToo many incorrect password attempts

Example:

{
"playerId": 105,
"externalId": "EXT105",
"externalSystemCode": "default",
"skinId": 0,
"isBlocked": true,
"blockingLimit": "2023-10-09 10:57:21",
"blockingReason": 71,
"objectId": null
}