Operator sends this request to the Naga Games to get 1 bet record by using a particular Bet ID.

Response

Data Response

NameDescriptionData typeStatus
idThe unique identifier of the recordString (length: 255)Required
createdThe date and time when the record was createdDateTimeRequired
updatedThe date and time when the record was last updatedDateTimeRequired
amountThe amount of money the player betDecimal (20,4)Required
earnThe amount of money the player earnedDecimal (20,4)Required
parentBetIdThe parent bet’s unique identifierString (length: 255)Required
betSizeThe value of a coinDecimalRequired
betLevelThe number of coins per lineIntegerRequired
betStatusThe 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
channelThe platform used by players, including PC, MobileString (length: 255)Required
playerBalancePlayer’s balance before the betDecimal (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'"
}
Language
Click Try It! to start a request and see the response here!