Open Rounds
Open Rounds Endpoints
This section will display all available endpoints to manage open rounds for a player.
This section will display all available endpoints to manage open rounds for a player.
This method retrieves open rounds for a single player ( up tp 20 results)
/gateway/rounds/{version}/player/open/{brand_id}/{player_id}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| version | path | string | true | The API version to use. |
| brand_id | path | string | true | The ID of the casino. |
| player_id | path | string | true | The ID of the player. |
| Authorization header | string | true | AI Chat stored token |
Status 200
{
"status": "Success",
"data": {
"total_open_rounds_count": 2,
"open_rounds": [
{
"created_time": "2024-12-03 15:04:05",
"game_id": 169000049,
"bet_amount": 3,
"round_id": "986ba9e06c9a447785512ac2a146880c",
"game_name": "Mo Mo Moolah",
"game_provider_name": "OneTouch"
},
{
"created_time": "2024-12-03 15:04:05",
"game_id": 153000233,
"bet_amount": 2,
"round_id": "6a7699aba93547a5a73512068a039229",
"game_name": "Oriental Flower ",
"game_provider_name": "Groove_Dragon"
}
]
}
}// no open rounds found
{
"status": "Success",
"data": {
"total_open_rounds_count": 0,
"open_rounds": null
}
}Status 401 // Wrong authorization header sent
{
"status": "Failure",
"data": "",
"message": "Access Denied",
"user_friendly_message": ""
}Status 408 // timeout
{
"status": "Error",
"data": "",
"message": "request timed out",
"user_friendly_message": ""
}Status 500
{
"status": "Error",
"data": "",
"message": "Internal Server Error",
"user_friendly_message": ""
}This method is used to close all open rounds for a single player and return to AI chat the response of the operation
/gateway/rounds/{version}/player/close/aggregate/{brand_id}/{player_id}| Name | In | Type | Required | Description |
|---|---|---|---|---|
| version | path | string | true | The API version to use. |
| brand_id | path | string | true | The ID of the casino. |
| player_id | path | string | true | The ID of the player. |
| Authorization header | string | true | AI Chat stored token |
Status 200
{
"status": "Success",
"data": {
"failed_to_close_rounds": [],
"successfully_closed_rounds": [
{
"round_id": "3"
},
{
"round_id": "2"
},
{
"round_id": "1"
}
]
}
}Status 401 // Wrong authorization header sent
{
"status": "Failure",
"data": "",
"message": "Access Denied",
"user_friendly_message": ""
}Status 408 // timeout
{
"status": "Error",
"data": "",
"message": "request timed out",
"user_friendly_message": ""
}Status 424 // failed to close some of the open rounds for the player
{
"status": "Failure",
"data": {
"failed_to_close_rounds": [
{
"round_id": "3"
},
{
"round_id": "2"
}
],
"successfully_closed_rounds": [
{
"round_id": "1"
}
]
},
"message": "unable to close all open rounds",
"user_friendly_message": ""
}