Settlement¶
Once a bet is successful placed, then can be resulted as win/loss with a return amount, then settled to indicate it has been paid out. A bet could also be cancelled.
- Retrieve the result of the bet
- Listen to web socket for the settlement of the bet
Authorization header
Remember to include the Authorization header in the request.
Retrieve a bet¶
You can retrieve a bet by using the toteId that was provided by the placeBets request.
{
"data": {
"bets": {
"nodes": [
{
"id": "bet-win-1",
"toteId": "8779011e10f4462988f6b9b5364e9a00",
"placement": {
"status": "ACCEPTED",
"stake": {
"currency": {
"code": "GBP"
},
"decimalAmount": 1
}
},
"resulting": {
"returns": {
"totalAmount": {
"decimalAmount": 10,
"currency": {
"code": "GBP"
}
}
}
},
"settlement": {
"status": "SETTLED"
},
"ticket": {
"id": "ticket-win-1",
"toteId": "3c7238aa-1a4b-4482-9503-85799c7d2e7d"
}
}
]
}
}
}
Settlement the bets¶
After a bets are settled the web socket or web socket will return a message. For each bet there is be individual request to the web socket.