To get detailed tickets information in specific date and time include settled and unsettled tickets。
- Only can get past 30 days tickets.
Request
GET
URI: /betting/{version}/GetBetDetails?start=2021-02-01&end=2021-02-05&isSettled=true&Language=en
Content-Type: application/json
X-Forwarded-For: client ip (If using API via proxy)
Authorization: Bearer {JWT token}
| Parameter |
Format |
Mandatory |
Description |
| start |
DateTime |
Yes |
Specifies the date from when. |
| end |
DateTime |
Yes |
Specifies the date end to when. |
| isSettled |
bool |
Yes |
Specifies whether the ticket is settled. |
| language |
string |
Yes |
Specifies the language. |
Response
[
{
"transId": long,
"memberId": string,
"operatorId": string,
"leagueId": int?,
"leagueName": string,
"eventId": int,
"homeTeamId": int,
"homeTeamName": string,
"awayTeamId": int,
"awayTeamName": string,
"kickOffTime": DateTime,
"sportType": int,
"sportName": string,
"betType": int,
"betTypeName": string,
"parlayTicketNo": long,
"price": decimal,
"stake": decimal,
"transTime": DateTime,
"status": string,
"settlementPrice": decimal,
"currency": int,
"oddsType": int,
"oddsTypeName": string,
"oddsInfo": string,
"key": string,
"keyName": string,
"excluding": string,
"isLucky": bool,
"parlayType": string,
"comboType": string,
"homePoint": decimal,
"awayPoint": decimal,
"point": decimal?,
"eSportGameId": int,
"homeScore": int?,
"awayScore": int?,
"cashoutEnable": bool,
"cashouts": CashoutDataInfo[],
"parlayData": ParlayDataInfo[],
"resettles": ResettlesInfo[]
}
]
| Parameter |
Format |
Description |
| transId |
long |
Specifies the transaction number of saba system. |
| memberId |
string |
The customer member Id. |
| operatorId |
string |
Specifies the identifier of the operator. |
| leagueId |
int? |
Specifies the identifier of the league. |
| leagueName |
string |
Specifies the name of the league. |
| eventId |
int |
Specifies the identifier of the event. |
| homeTeamId |
int |
Specifies the identifier of the home team. |
| homeTeamName |
string |
Specifies the name of the home team. |
| awayTeamId |
int |
Specifies the identifier of the away team. |
| awayTeamName |
string |
Specifies the name of the away team. |
| kickOffTime |
dateTime |
Specifies the start time for the event. |
| sportType |
int? |
Specifies the identifier of the sport. |
| sportName |
string |
Specifies the name of the sport. |
| betType |
int |
Specifies the type of the betting. |
| betTypeName |
string |
Specifies the name of the betting. |
| parlayTicketNo |
long |
Specifies the number of Parlay. |
| price |
decimal |
Specifies the price. |
| stake |
decimal |
Specifies the stake amount of the bet. |
| transTime |
datetime |
Specifies the transaction time. |
| status |
string |
Specifies the status of the ticket.half won / half lose / won / lose / void / running / draw / reject / refund / waiting |
| settlementPrice |
decimal |
Specifies win or loss amount of settlement. |
| currency |
int |
Specifies the Currency.Please refer to Currency Table. |
| oddsType |
int |
Specifies the type of the odds.1 : Malay Odds ; 2 : Hong Kong Odds ; 3 : Decimal Odds ; 4 : Indo Odds ; 5 : American Odds |
| oddsTypeName |
string |
Specifies the name of the odds. |
| oddsInfo |
string |
Specifies the information of special rule.Only when betType = 468 / 469 |
| key |
string |
Specifies the key of the selection. |
| keyName |
string |
Specifies the name of the selections key. |
| excluding |
string |
Specifies the special rules of the game.Only when key = aos and betType =413/414/405/644/2707 |
| isLucky |
bool |
Specifies whether the parlay is lucky parlay. |
| parlayType |
string |
Specifier the category of the parlay.MixParlay / System Parlay |
| comboType |
string |
Specifies the information of parlay combo category.Doubles/Treble/Trebles/Trixie/Yankee/Canadian/Heinz/SuperHeinz/Goliath/4-Fold~100-Fold |
| homePoint |
decimal |
Specifies the point spread of home team. |
| awayPoint |
decimal |
Specifies the point spread of away team. |
| point |
decmial? |
Specifies the point spread. |
| eSportGameId |
int |
Specifies the identifier of E-Sport game.Please refer to E-Sport Group Enumeration. |
| homeScore |
int? |
Specifies the score of the home team. |
| awayScore |
int? |
Specifies the score of the away team. |
| cashoutEnable |
bool |
Specifies whether the ticket can be cashed out or not. |
| cashouts |
CashoutDataInfo |
Specifies an array of cashout information. |
| parlayData |
ParlayDataInfo |
Specifies an array of parlay information. |
| resettles |
ResettlesInfo |
Specifies an array of resettle information. |
CashoutDataInfo
[
{
"cashoutId": long,
"cashoutTime": DateTime,
"cashoutStake":decimal
"cashoutAmount":decimal
"cashoutStatus":string
"cashoutSettlementPrice":decimal
}
]
| Parameter |
Format |
Description |
| cashoutId |
long |
Specifies the transaction ID of cashout. |
| cashoutTime |
DateTime |
Specifies the time of the selling cashout ticket. |
| cashoutStake |
decimal |
Specifies the stake of the selling cashout ticket. |
| cashoutAmount |
decimal |
Specifies the paid of the selling cashout ticket. |
| cashoutStatus |
string |
Specifies the status of the cashout ticket. |
| cashoutSettlementPrice |
decimal |
specifies the win or loss amount of cashout settlement. |
ParlayDataInfo
[
{
"parlayId": long,
"leagueId": int,
"leagueName": string,
"eventId": int,
"homeTeamId": int,
"homeTeamName": string,
"awayTeamId": int,
"awayTeamName": string,
"kickOffTime": DateTime,
"price": decimal,
"betType": int,
"betTypeName": string,
"key": string,
"keyName": string,
"sportType": int,
"sportName": string,
"homePoint": decimal,
"awayPoint": decimal,
"point": decimal?,
"status": string,
"homeScore": int?,
"awayScore": int?
}
]
| Parameter |
Format |
Description |
| parlayId |
long |
Specifies the transaction number of Parlay. |
| leagueId |
int |
Specifies the identifier of the league. |
| leagueName |
string |
Specifies the name of the league. |
| eventId |
int |
Specifies the identifier of the event. |
| homeTeamId |
int |
Specifies the identifier of the home team. |
| homeTeamName |
string |
Specifies the name of the home team. |
| awayTeamId |
int |
Specifies the identifier of the away team. |
| awayTeamName |
string |
Specifies the name of the away team. |
| kickOffTime |
datetime |
Specifies the start time for the event. |
| price |
decimal |
Specifies the price. |
| betType |
int |
Specifies the type of the betting. |
| betTypeName |
string |
Specifies the name of the betting. |
| key |
string |
Specifies the key of the selection. |
| keyName |
string |
Specifies the name of the selections key. |
| sportType |
int |
Specifies the identifier of the sport. |
| sportName |
string |
Specifies the name of the sport. |
| homePoint |
decimal |
Specifies the point spread of home team. |
| awayPoint |
decimal |
Specifies the point spread of away team. |
| point |
decimal? |
Specifies the point spread. |
| status |
string |
Specifies the status of the ticket.half won / half lose / won / lose / void / running / draw / reject / refund / waiting |
| homeScore |
int? |
Specifies the score of the home team. |
| awayScore |
int? |
Specifies the score of the away team. |
ResettlesInfo
[
{
"resettleDate": DateTime,
"balanceChange": bool,
"status": string,
"reSettlePrice": decimal
}
]
| Parameter |
Format |
Description |
| resettleDate |
datetime |
Specifies the time of the ticket is resettled. |
| balanceChange |
bool |
Specifies whether the balance is changed. |
| status |
string |
Specifies the status of the ticket.half won / half lose / won / lose / void / running / draw / reject / refund / waiting |
| reSettlePrice |
decimal |
Specifies win or loss amount of settlement. |
Ticket Status Description
| Ticket Status |
Description |
| waiting |
The ticket is pending on our side and has not been accepted yet. |
| running |
The ticket has not been settled yet. |
| void |
If our trader has any doubt about the event, the ticket may change from running to void, and the stake will be refunded. |
| refund |
Due to the event has been canceled or other conditions, the ticket may change from running to refund, and the stake will be refunded. |
| reject |
Due to some external reasons, such as disruption in live broadcasting, the ticket may change from waiting to reject, and the stake will be refunded. |
| lose |
The match is finished and the player lose the ticket. |
| won |
The match is finished and the player win the ticket |
| draw |
The match is finished and the player do not win or lose the ticket |
| half won |
The match is finished and the player win half of the stake. |
| half lose |
The match is finished and the player lose half of the stake |