post https://api.stg.game.topplatform.asia/operator/bet/bet-history
Operator sends this request to the Naga Games to get 1 bet record by using a particular Bet ID.
Response
Data Response
Name | Description | Data type | Status |
---|---|---|---|
id | The unique identifier of the record | String (length: 255) | Required |
created | The date and time when the record was created | DateTime | Required |
updated | The date and time when the record was last updated | DateTime | Required |
amount | The amount of money the player bet | Decimal (20,4) | Required |
earn | The amount of money the player earned | Decimal (20,4) | Required |
parentBetId | The parent bet’s unique identifier | String (length: 255) | Required |
betSize | The value of a coin | Decimal | Required |
betLevel | The number of coins per line | Integer | Required |
betStatus | The status of the bet. A bet can be A bet can be: - PENDING: a bet is newly created and has not been processed by operator - RESOLVED: a bet is successfully made with bet result being returned to player - OPERATOR_UNKNOWN_ERROR: error on operator server | String (length: 255) | Required |
channel | The platform used by players, including PC, Mobile | String (length: 255) | Required |
playerBalance | Player’s balance before the bet | Decimal (20,2) | Required |
Example of Request
curl --location --request POST 'http://localhost:3003/operator/bet/bet-history' \
--header 'Connection: keep-alive' \
--header 'sec-ch-ua: "Google Chrome";v="93", " Not;A Brand";v="99", "Chromium";v="93"' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36' \
--header 'sec-ch-ua-platform: "macOS"' \
--header 'Origin: http://localhost:3000' \
--header 'Sec-Fetch-Site: same-origin' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Referer: http://localhost:3000/' \
--header 'Accept-Language: en-US,en;q=0.9' \
--data-raw '{
"betId": "0000b183-1ac9-4c03-98f4-06661e76cec0",
"groupCode": "dwea",
"brandCode": "dnga"
}'
Example of Response
Fail Response Example (HTTP status code 200)
{
"id": "0000b183-1ac9-4c03-98f4-06661e76cec0",
"created": "2022-02-11T03:39:33.189Z",
"updated": "2022-02-11T03:39:33.189Z",
"amount": 3,
"earn": 0,
"parentBetId": null,
"betSize": 0.05,
"betLevel": 3,
"playerBalance": 100000,
"betStatus": "RESOLVED",
"channel": "PC"
}
Fail Response Example (HTTP status code 400)
{
"statusCode": 400,
"message": "Body cannot be empty when content-type is set to 'application/json'"
}