get
https://api.stg.game.topplatform.online/operator/bet/history
The Operator will call this API to get the details of the bet from Naga Games.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Request
API URL : {NagaGamesAPIDomain}/operator/bet/history
HTTP Method : GET
URL Parameters:
| Parameter Name | Description | Data Type | Required |
|---|---|---|---|
| betId | Unique ID of the bet | String (length: 36) | Required |
| brandCode | unique code name of a brand | String (length: 4) | Required |
| groupCode | unique code name of a group | String (length: 4) | Required |
Example
curl --request GET \
--url 'https://api.stg.game.topplatform.online/operator/bet/history?betId=d0af2951-c415-1b2d-191b-19e3c966726e&groupCode=dpae&brandCode=dtdr' \
--header 'accept: application/json'Response
Data Response
| Parameter Name | Description | Data Type |
|---|---|---|
| id | The unique identifier of the record | String (length: 255) |
| created | The date and time when the record was created | DateTime |
| updated | The date and time when the record was last updated | DateTime |
| amount | Betting Amount | Decimal (20,4) |
| earn | Winning Amount of the Bet ( profit = bet amount - won amount ) | Decimal (20,4) |
| parentBetId | The parent bet’s unique identifier | String (length: 255) |
| betSize | The value of a coin | Decimal (20,4) |
| betLevel | The number of coins per line | Integer |
| playerBalance | Balance of a player’s wallet | Decimal (20,2) |
| endingBalance | Ending balance of a player’s wallet | Decimal (20,2) |
| betStatus | The status of the bet. A bet can be A bet can be:
| String (length: 255) |
Example
Success Response Example (HTTP status code 200)
{
"id": "d0af2951-c415-1b2d-191b-19e3c966726e",
"created": "2023-05-12T06:03:56.504Z",
"updated": "2023-05-12T06:03:56.698Z",
"amount": 2,
"earn": 1.6,
"parentBetId": null,
"betSize": 0.1,
"betLevel": 1,
"playerBalance": 9886.38,
"endingBalance": 9885.98,
"betStatus": "RESOLVED"
}Failure Response Example (HTTP status code 400)
{
"statusCode": 400,
"message": [
"brandCode should not be empty"
],
"error": "Bad Request"
}
