Lucky Minute API (1)

Download OpenAPI specification:

Bookmaker

Bookmaker_ListBets

Authorizations:
Bearer
query Parameters
userId
string
gameSessionId
string
includeProcessed
boolean
createdBefore
string <date-time>
createdAfter
string <date-time>
limit
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "bets": [
    ]
}

Bookmaker_PlaceBets

Authorizations:
Bearer
Request Body schema: application/json
required
required
Array of objects (Bet)

Responses

Request samples

Content type
application/json
{
  • "bets": [
    ]
}

Response samples

Content type
application/json
{
  • "failedBets": [
    ],
  • "error": [
    ]
}

Bookmaker_CreateCreditAccount

Authorizations:
Bearer
Request Body schema: application/json
required
userId
required
string

Responses

Request samples

Content type
application/json
{
  • "userId": "string"
}

Response samples

Content type
application/json
{
  • "accountId": "string"
}

Bookmaker_GetCreditBalance

Authorizations:
Bearer
query Parameters
userId
string

Responses

Response samples

Content type
application/json
{
  • "accountId": "string",
  • "userId": "string",
  • "amount": "string"
}

Bookmaker_GetCreditTransactions

Authorizations:
Bearer
query Parameters
userIds
Array of strings
labels
Array of strings
beforeTxId
string
createdBefore
string <date-time>
createdAfter
string <date-time>
limit
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "creditTransactions": [
    ]
}

Bookmaker_TransferCredits

Authorizations:
Bearer
Request Body schema: application/json
required
fromUserId
required
string
toUserId
required
string
amount
required
string
reference
string

Responses

Request samples

Content type
application/json
{
  • "fromUserId": "string",
  • "toUserId": "string",
  • "amount": "string",
  • "reference": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string"
}

Bookmaker_ListGames

query Parameters
sessionIds
Array of strings
createdAfter
string <date-time>
createdBefore
string <date-time>
limit
integer <int32>
excludeSettled
boolean
excludeUnsettled
boolean

Responses

Response samples

Content type
application/json
{
  • "sessions": [
    ],
  • "serverTime": "2019-08-24T14:15:22Z"
}

SettleGames starts the settlement process which checks which bet won / lost The necessary credit transfers are created in the ledger and the bet statuses updated.

Authorizations:
ApiKey

Responses

Response samples

Content type
application/json
{
  • "failedBets": [
    ],
  • "sessionsProcessed": [
    ]
}

Bookmaker_GetGamesStats

Responses

Response samples

Content type
application/json
{
  • "baccarat": {
    },
  • "sicbo": {
    },
  • "roulette": {
    }
}

Bookmaker_ListGameTopPlayers

Authorizations:
Bearer
path Parameters
sessionId
required
string
query Parameters
gameType
string
Default: "unknown_game"
Enum: "unknown_game" "baccarat_1" "roulette_1" "sicbo_1"

Responses

Response samples

Content type
application/json
{
  • "players": [
    ]
}

Bookmaker_ListGameWinnings

Authorizations:
Bearer
path Parameters
sessionId
required
string
query Parameters
gameType
string
Default: "unknown_game"
Enum: "unknown_game" "baccarat_1" "roulette_1" "sicbo_1"

Responses

Response samples

Content type
application/json
{
  • "results": [
    ]
}

Messaging

Messaging_ListMessages

Authorizations:
Bearer
query Parameters
recipientId
required
string
senderId
required
string
createdBefore
string <date-time>
createdAfter
string <date-time>
maxItems
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "messages": [
    ]
}

Messaging_SendMessage

Authorizations:
Bearer
Request Body schema: application/json
required
messageId
string
senderId
required
string
recipientId
required
string
subject
string
body
required
string
createdAt
string <date-time>
readAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "messageId": "string",
  • "senderId": "string",
  • "recipientId": "string",
  • "subject": "string",
  • "body": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "readAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{ }

Messaging_DeleteMessages

Authorizations:
Bearer
Request Body schema: application/json
required
messageIds
required
Array of strings

Responses

Request samples

Content type
application/json
{
  • "messageIds": [
    ]
}

Response samples

Content type
application/json
{ }

Messaging_ReadMessages

Authorizations:
Bearer
Request Body schema: application/json
required
messageIds
required
Array of strings

Responses

Request samples

Content type
application/json
{
  • "messageIds": [
    ]
}

Response samples

Content type
application/json
{ }

Operator

Operator_GetOperator

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "details": "string"
}

User

User_Getuser

Authorizations:
Bearer

Responses

Response samples

Content type
application/json
{
  • "user": {
    }
}

CreateUser creates a new user in the system. The role of the new user is defined by the role of the user sending the request.

Authorizations:
Bearer
Request Body schema: application/json
required
name
required
string
details
string
password
string
displayName
string
labels
Array of strings

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "details": "string",
  • "password": "string",
  • "displayName": "string",
  • "labels": [
    ]
}

Response samples

Content type
application/json
{
  • "user": {
    }
}

FindUserBalances retrieves a list of users with their balances.

Authorizations:
Bearer
query Parameters
filter.role
integer <int32>
filter.name
string
filter.labels
Array of strings
filter.createdBefore
string <date-time>
filter.createdAfter
string <date-time>
filter.limit
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "users": [
    ]
}

Bootstrap can only be run once to create the required accounts and balances to run the service.

Authorizations:
ApiKey
Request Body schema: application/json
required
bookmakerBalance
string
managerBalance
string
managerName
string
managerPassword
string

Responses

Request samples

Content type
application/json
{
  • "bookmakerBalance": "string",
  • "managerBalance": "string",
  • "managerName": "string",
  • "managerPassword": "string"
}

Response samples

Content type
application/json
{ }

FindUsers retrieves a list of users which are visible to the logged in user.

Authorizations:
Bearer
query Parameters
filter.role
integer <int32>
filter.name
string
filter.labels
Array of strings
filter.createdBefore
string <date-time>
filter.createdAfter
string <date-time>
filter.limit
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "users": [
    ]
}

LoginUser with credentials (returns access token).

Request Body schema: application/json
required
name
required
string
password
required
string

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "accessToken": "string"
}

LogoutUser deletes the access token(s) for the logged in user.

Authorizations:
Bearer
Request Body schema: application/json
required
object (LogoutRequest)

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

UpdateUser is used for keeping the contact details updated in case necessary.

Authorizations:
Bearer
path Parameters
name
required
string
Request Body schema: application/json
required
details
required
string
displayName
string
labels
Array of strings

Responses

Request samples

Content type
application/json
{
  • "details": "string",
  • "displayName": "string",
  • "labels": [
    ]
}

Response samples

Content type
application/json
{
  • "user": {
    }
}

ChangeUserPassword replaces the logged in user's password with the provided new one.

Authorizations:
Bearer
path Parameters
name
required
string
Request Body schema: application/json
required
oldPassword
required
string
newPassword
required
string

Responses

Request samples

Content type
application/json
{
  • "oldPassword": "string",
  • "newPassword": "string"
}

Response samples

Content type
application/json
{ }

ResetUserPassword replaces the user's password with a randomly generated one. The password is retrurned in the response. This is used by an agent when a user requests a password reset (forgotten credentials).

Authorizations:
Bearer
path Parameters
name
required
string

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "password": "string"
}

ClosePlayerSession closes a player's session, returning credits to agent and disabling login.

Authorizations:
Bearer
path Parameters
playerId
required
string
Request Body schema: application/json
required
reason
string

Responses

Request samples

Content type
application/json
{
  • "reason": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "string",
  • "transactionId": "string",
  • "creditsReturned": "string"
}