This API provides up to 10 tickets for batch betting.
Request
POST /betting/{version}/DoBatchPlaceBets
Content-Type: application/json
X-Forwarded-For: client ip (If using API via proxy)
Authorization: Bearer {JWT token}
use json request
{
"oddsOption": int,
"oddsType" : int,
"language": string,
"batchTickets": [
{
"vendorTransId": string,
"sportType": int,
"marketId": int,
"point": decimal,
"point2": decimal?,
"price": decimal,
"key": string,
"stake": int
},
{
"vendorTransId": string,
"sportType": int,
"marketId": int,
"point": decimal,
"point2": decimal?,
"price": decimal,
"key": string,
"stake": int
}
]
}
Parameter |
Format |
Mandatory |
Description |
batchTickets |
batchTicketsInfo Array |
Yes |
Specifies the information of batch tickets. |
oddsOption |
int |
|
Specifies the option of the betting when odds change.0:reject odds change (default) ; 1:accept only better odds ; 2:accept any change odds |
oddsType |
int |
|
Specifies the type of the odds.0 : by member setting (default) ; 1 : Malay Odds ; 2 : Hong Kong Odds ; 3 : Decimal Odds ; 4 : Indo Odds ; 5 : American Odds |
language |
string |
|
Specifies the language of the response context. |
BatchTickets
Parameter |
Format |
Length |
Mandatory |
Description |
vendorTransId |
string |
50 |
Yes |
Specifies the transaction number of the vendor. When connection timeout, please use this ID to use /CheckPlaceBet to confirm the status of the bet. Recommended to use a unique value. |
sportType |
int |
|
Yes |
Specifies the identifier of the sport. |
marketId |
int |
|
Yes |
Specifies the identifier of the market. |
price |
decimal |
8.2 |
Yes |
Specifies the price. |
point |
decimal |
8.2 |
Yes |
Specifies the point spread.default is 0. |
point2 |
decimal? |
8.2 |
No |
Specifies the point2 spread, if needed. |
key |
string |
10 |
Yes |
Specifies the key of the selection. |
stake |
int |
|
Yes |
Specifies the stake amount of the bet. |
Response
{
"placeBetResults": [
{
"betResult": object,
"error": {
"statusCode": int,
"errorCode": string,
"message": string,
"vendorTransId": string,
"details": object,
"traceId": string
}
},
{
"betResult": {
"betPrice": decimal,
"transId": long,
"vendorTransId": string,
"currentPrice": decimal,
"stake": decimal,
"betStatus": short,
"betAcceptSecond": int,
"ticketStatus": string,
"maxBet": decimal,
"minBet": decimal
},
"error": object
}
]
}
Parameter |
Format |
Mandatory |
Description |
placeBetResults |
placeBetResults Array |
Yes |
Specifies the information of batch bet results. |
betResult
Parameter |
Format |
Description |
betPrice |
decimal |
Specifies the odds price of betting. |
transId |
long |
Specifies the transaction number of saba system. |
vendorTransId |
string |
Specifies the transaction number of the vendor. |
currentPrice |
decimal |
Specifies the current price of betting. |
stake |
decimal |
Specifies the stake amount of the bet. |
betStatus |
short |
Specifies the status of betting.0 :success ;1 :fail |
betAcceptSecond |
int |
Specifies the waiting time of betting. |
ticketStatus |
string |
Specifies the initial status of the ticketrunning/reject/waiting |
maxBet |
decimal |
Specifies the maximum bet amount for the market. |
minBet |
decimal |
Specifies the minimum bet amount for the market. |
error