GetBetDetails - Saba-sports/OddsDirectAPI GitHub Wiki
To get detailed tickets information in specific date and time include settled and unsettled tickets.
- Only can get past 180 days tickets, but search range should be in 30 days
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. The date time string format should be like: "2021-01-01T00:00:00", encodable |
end | DateTime | Yes | Specifies the date end to when. The date time string format should be like: "2021-01-01T00:00:00", encodable |
isSettled | bool | Yes | Specifies whether the ticket is settled. |
language | string | Yes | Specifies the language. |
[
{
"transId": long,
"memberId": string,
"operatorId": string,
"leagueId": int?,
"leagueName": string,
"leagueIconUrl": string,
"eventId": int,
"parentId": int,
"homeTeamId": int,
"homeTeamName": string,
"homeIconUrl": string,
"awayTeamId": int,
"awayTeamName": string,
"awayIconUrl": string,
"kickOffTime": DateTime,
"globalShowTime": 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?,
"cashoutEnabled": bool,
"alreadyCashout": bool,
"cashoutPrice": decimal,
"parlayInfo": ParlayInfo[],
"resettles": ResettlesInfo[],
"resourceId": string
}
]
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. |
leagueIconUrl | string | Specifies the URL of the league image. If the image not found, please change to use default url.<br/{domain}/LeagueImg/league_flag.png Please replace domain with the domain returned by leagueIconUrl |
eventId | int | Specifies the identifier of the event. |
parentId | int | Specifies the identifier of the event parent. |
homeTeamId | int | Specifies the identifier of the home team. |
homeTeamName | string | Specifies the URL of the home team image. If the image not found, please change to use default url. {domain}/TeamImg/team_flag_home.png Please replace domain with the domain returned by homeIconUrl |
homeIconUrl | string | Specifies the Url of the home Icon. |
awayTeamId | int | Specifies the identifier of the away team. |
awayTeamName | string | Specifies the name of the away team. |
awayIconUrl | string | Specifies the URL of the away team image. If the image not found, please change to use default url. {domain}/TeamImg/team_flag_away.png Please replace domain with the domain returned by awayIconUrl |
kickOffTime | dateTime | Specifies the start time for the event of system. (time zone GMT+0) |
globalShowTime | dateTime | Specifies the start time for the event. (time zone GMT+0) |
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 Double and Doubles : If only generate one bet than Double else Doubles. eg Double(1 bet) / Doubles (3 Bets) Treble and Trebles : If only generate one bet than Treble else Trebles. eg Treble (1 bet) / Treble s (4 Bets) Fold and Folds : If only generate one bet than Fold else Folds. eg 4-Fold(1 bet) / 4-Folds (5 Bets) |
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. |
cashoutEnabled | bool | Specifies whether the ticket can be cashed out or not. |
alreadyCashout | bool | Specifies whether the ticket is cashed out or not. |
cashoutPrice | decimal | Specifies the cashed out price. When the alreadyCashout is true. |
parlayInfo | parlayInfo | Specifies an array of parlay information. |
resettles | ResettlesInfo | Specifies an array of resettle information. |
resourceId | string | X and Y value in Bet Type, Format: XX or XXYY. For Example: Bet Type 9007 - Map 1 First to 5 Kills The value of resourceId is 0105. |
[
{
"parlayId": long,
"leagueId": int,
"leagueName": string,
"leagueIconUrl": string,
"eventId": int,
"homeTeamId": int,
"homeTeamName": string,
"homeIconUrl": string,
"awayTeamId": int,
"awayTeamName": string,
"awayIconUrl": string,
"kickOffTime": DateTime,
"globalShowTime": 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?,
"resourceId": string
}
]
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. |
leagueIconUrl | string | Specifies the URL of the league image. If the image not found, please change to use default url.<br/{domain}/LeagueImg/league_flag.png Please replace domain with the domain returned by leagueIconUrl |
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. |
homeLogoUrl | string | Specifies the URL of the home team image. If the image not found, please change to use default url. {domain}/TeamImg/team_flag_home.png Please replace domain with the domain returned by homeIconUrl |
awayTeamId | int | Specifies the identifier of the away team. |
awayTeamName | string | Specifies the name of the away team. |
awayIconUrl | string | Specifies the URL of the away team image. If the image not found, please change to use default url. {domain}/TeamImg/team_flag_away.png Please replace domain with the domain returned by awayIconUrl |
kickOffTime | datetime | Specifies the start time for the event. |
globalShowTime | 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. |
resourceId | string | X and Y value in Bet Type, Format: XX or XXYY. For Example: Bet Type 9007 - Map 1 First to 5 Kills The value of resourceId is 0105. |
[
{
"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 |
---|---|
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 |