The "Bet History" page allows customers to retrieve the historical data of bets placed by players. By utilizing the provided API endpoints, customers can access comprehensive bet information and integrate it into their systems for analysis, reporting, and other purposes.
Endpoint: /api/v1/bet-history
Request Type: POST
Content-Type: application/json
{
"code": 0,
"msg": "Successful",
"data": [
{
"betId": "eb54307d-7033-4a82-aa20-3cb42a7ea79a", // Required: String with a maximum length of 50 characters.
"roundId": "<roundId>", // Required: String with a maximum length of 50 characters.
"playerUsername": "<playerUsername>", // Required: Alphanumeric with a maximum length of 20 characters.
"productId": "<productId>", // Required: Integer
"productName": "<productName>", // Required: String with a maximum length of 20 characters.
"categoryId": "<categoryId>", // Required: Integer
"categoryName": "<categoryName>", // Required: String with a maximum length of 20 characters.
"betInfo": "<betInfo>", // Optional: String with a maximum length of 1024 characters.
"resultInfo": "<resultInfo>", // Optional: String with a maximum length of 1024 characters.
"betAmount": "<betAmount>", // Required: Number, 2 Decimal places by example 1000.11
"validAmount": "<validAmount>", // Required: Number, 2 Decimal places by example 1000.11
"winlose": "<winlose>", // Required: Number, 2 Decimal places by example 1000.11
"betTime": "<betTime>", // Required, Date Format, example 2023-01-01 00:00:00
"resultTime": "<resultTime>", // Required, Date Format, example 2023-01-01 00:00:00
"betStatus": "<betStatus>", // Required, Integer, example: 0=Pending, 1=Successful, 2=Cancelled, 3=Void
"betIp": "<betIp>", // Optional: String, example: IPv4 or IPv6
"txnRemark": "<txnRemark>", // Optional: String with a maximum length of 500 characters.
"winloseDate": "YYYY-MM-DD", // Required, Date Format, example 2023-01-01
"createdDate": "<createdDate>", // Required, Date Format, example 2023-01-01 00:00:00
"updatedDate": "<updatedDate>", // Required, Date Format, example 2023-01-01 00:00:00
}
],
"count": 0,
"requestTime": "YYYY-MM-DD HH:mm:ss",
"requestUuid": "eb54307d-7033-4a82-aa20-3cb42a7ea79a",
"paginate": {
"totalPage": 1,
"currentPage": 1
}
}