ConfirmSellingResult - Saba-sports/OddsDirectAPI GitHub Wiki
This API is to confirm the cashout result when the status of cashout is 2 (Accept) or 3 (Reject).
- When the status from Accept to ConfirmAcceptSuccess means finished the cashout process.
- When the status is reject means cashout fail and can not cashout again until ConfirmRejectSuccess.
GET /cashout/{version}/ConfirmSellingResult?transId=123456
Accept: application/json
Authorization: Bearer {JWT token}| Parameter | Format | Mandatory | Description |
|---|---|---|---|
| transId | long | Yes | Specifies the transaction number of saba system. |
{
"transId": long,
"status": int
}
| Parameter | Format | Description |
|---|---|---|
| transId | long | Specifies the transaction number of Saba system. |
| status | int | Specifies the status of the selling cashout ticket. 1:ConfirmAcceptSuccess 2:ConfirmRejectSuccess |
| 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. |
| B019 | Transaction Id Not Found | The system can not find the transaction Id. |
| B034 | Selling Ticket is Waiting | The selling ticket is still waiting, please use /CheckSellingStatus to check the latest status. |