Skip to main content

Casino Codes

Reference tables for casino game integration. These codes appear in casino-related events.


Methods to Close Casino Rounds

These codes indicate how a casino game round was completed. Used in the closeMethod field of OnCasinoRoundClosed events.

CodeMethodDescription
0CasinoRoundCloseMethod_UnknownClose method is unknown
1CasinoRoundCloseMethod_ByPlayerRound closed normally by player action
2CasinoRoundCloseMethod_ByAdminRound closed by administrator
3CasinoRoundCloseMethod_ByTimeoutRound closed due to timeout
4CasinoRoundCloseMethod_SalePlayer sold bet before completion (sports bets)
5CasinoRoundCloseMethod_CancelRound cancelled by provider
6CasinoRoundCloseMethod_ReopenRound reopened for correction

Close Method Details

ByPlayer (Code 1)

The normal completion path. Player completes the game round through regular gameplay.

ByAdmin (Code 2)

An administrator manually closed the round. This typically happens when:

  • Player reports a technical issue
  • Round stuck in incomplete state
  • Manual intervention required

ByTimeout (Code 3)

The round was automatically closed because:

  • Player inactivity exceeded timeout threshold
  • Connection lost and not restored in time
  • Session expired during active round

Sale (Code 4)

Specific to sports betting integration. The player cashed out their bet before the event completed.

Cancel (Code 5)

The casino provider cancelled the round. Common reasons:

  • Technical error during gameplay
  • Invalid game state detected
  • Provider-side system issue

Reopen (Code 6)

The round was reopened for correction. This happens when:

  • Provider determines bet was calculated incorrectly
  • Original transaction is rolled back
  • New corrected transaction is applied
Reopened Rounds

When a round is reopened (code 6), the oldRoundCloseMethod field contains the previous close method before reopening.


Bet Types (Sports)

For sports betting integration, the betType field indicates the bet structure:

CodeTypeDescription
0BET_TYPE_UNKNOWNUnknown bet type
1BET_TYPE_ORDINARYSingle/ordinary bet
2BET_TYPE_EXPRESSAccumulator/parlay bet