GetCashoutPrice - Saba-sports/OddsDirectAPI GitHub Wiki
This API is to get cashout price.
Request
GET /cashout/{version}/GetCashoutPrice?transIds=123456
Accept: application/json
X-Forwarded-For: client ip (If using API via proxy)
Authorization: Bearer {JWT token}
Parameter |
Format |
Mandatory |
Description |
transIds |
string |
|
Specifies the transaction number of Saba system.Split trans by ",", ex:1111,2222Return all cashout information by the customer as default. |
Response
{
"priceInfo": PriceInfo[]
}
Parameter |
Format |
Description |
priceInfo |
PriceInfo array |
Specifies the cashout information. |
PriceInfo
[
{
"transId": long,
"cashoutStatus": int,
"cashoutStake": decimal,
"cashoutPrice": decimal
}
]
Parameter |
Format |
Description |
transId |
long |
Specifies the transaction number of Saba system |
cashoutStatus |
int |
Specifies the cashout status.1:CanCashout2:CannotCashout (Currently not support cashout)3:NoCashoutTicket (This ticket not support cashout)4:TicketNotFound |
cashoutStake |
decimal |
Specifies the stake of cashout. |
cashoutPrice |
decimal |
Specifies the price of cashout. |
ErrorCode Enumeration
Error Code |
Message |
Description |
E001 |
Internal Server Error |
The server encountered an unexpected condition that prevented it from fulfilling the request. |
E002 |
Invalid parameter input |
The parameter input is invalid or not support. |