Skip to main content
Alternative Stake Accepted by Client | Managed Trading Services | Sportradar Developer Documentation
Alternative Stake Accepted by Client Last updated 20 days ago
Is this site helpful?
This example is similar to the Bet Re-offer one, bet here MTS rejects the ticket with the suggestion of a smaller alternative stake (due to a breach of the liability limits set at customer level). The client accepts the alternative stake and sends another Ticket placement request with the suggested stake and a reference to the original ticket. MTS finally accepts the bet. The new stake amount can be the same or lower as the suggested stake amount.
Ticket Placement Request
json
{
" operatorId " : 9985 ,
" content " : {
" type " : "ticket" ,
" ticketId " : "Ticket_3668" ,
" bets " : [
{
" selections " : [
{
" type " : "uf" ,
" productId " : "3" ,
" eventId " : "sr:season:54837" ,
" marketId " : "534" ,
" outcomeId " : "pre:outcometext:9826" ,
" specifiers " : "variant=pre:markettext:62723" ,
" odds " : {
" type " : "decimal" ,
" value " : "1.36"
}
},
{
" type " : "uf" ,
" productId " : "3" ,
" eventId " : "sr:match:14950205" ,
" marketId " : "14" ,
" outcomeId " : "1712" ,
" specifiers " : "hcp=1:0" ,
" odds " : {
" type " : "decimal" ,
" value " : "1.59"
}
}
],
" stake " : [
{
" type " : "cash" ,
" currency " : "EUR" ,
" amount " : "100"
}
]
}
],
" context " : {
" channel " : {
" type " : "internet" ,
" ip " : "212.9.11.2" ,
" lang " : "EN"
},
" endCustomer " : {
" id " : "endCustomer_384d54"
},
" limitId " : 1409
}
},
" correlationId " : "89Wekr38267" ,
" timestampUtc " : 1678883012000 ,
" operation " : "ticket-placement" ,
" version " : "3.0"
}
Ticket Placement Response - Rejection with Alternative Stake from MTS
Below is the second Ticket placement request (including the suggested stake (EUR 9.50) and a reference to the original ticket ID - "Ticket_3668") which finally receives acceptance from MTS.
Ticket Placement Request - Positive Response to Alternative Stake
json
{
" operatorId " : 9985 ,
" content " : {
" type " : "ticket" ,
Ticket Placement Response - Final Acceptance from MTS
json
{
" content " : {
" type " : "ticket-reply" ,
" signature " : "R1L+upt2gOLsbIhknw+kXfOQjmPVt+SpHzlIhbnK4P8="
content
"
:
{
" type " : "ticket-reply" ,
" signature " : "X9sRwc4PoLw79Dv0nUcozYawhVwdmdtSUI3oJLzXm/g=" ,
" status " : "rejected" ,
" ticketId " : "Ticket_3668" ,
" code " : -713 ,
" message " : "Liability EUR 1080.0 is over Customer Bet liability limit EUR 299.7 on Customer level, Selection: productId:3, marketId:14, outcomeId:1712, specifiers:hcp=1:0, Match: 14950205 " ,
" betDetails " : [
{
" selectionDetails " : [
{
" selection " : {
" type " : "uf" ,
" productId " : "3" ,
" eventId " : "sr:season:54837" ,
" marketId " : "534" ,
" outcomeId " : "pre:outcometext:9826" ,
" specifiers " : "variant=pre:markettext:62723" ,
" odds " : {
" type " : "decimal" ,
" value " : "1.36"
}
},
" code " : 0 ,
" message " : "Transaction processed"
},
{
" selection " : {
" type " : "uf" ,
" productId " : "3" ,
" eventId " : "sr:match:14950205" ,
" marketId " : "14" ,
" outcomeId " : "1712" ,
" specifiers " : "hcp=1:0" ,
" odds " : {
" type " : "decimal" ,
" value " : "1.59"
}
},
" code " : -713 ,
" message " : "Liability EUR 1080.0 is over Customer Bet liability limit EUR 299.7 on Customer level, Selection: productId:3, marketId:14, outcomeId:1712, specifiers:hcp=1:0, Match: 14950205 "
}
],
" code " : -713 ,
" message " : "Liability EUR 1080.0 is over Customer Bet liability limit EUR 299.7 on Customer level, Selection: productId:3, marketId:14, outcomeId:1712, specifiers:hcp=1:0, Match: 14950205 " ,
" suggestion " : {
" type " : "alt-stake" ,
" mode " : "automatic" ,
" stake " : [
{
" type " : "cash" ,
" currency " : "EUR" ,
" amount " : "9.5"
}
]
}
}
],
" exchangeRate " : [
{
" fromCurrency " : "EUR" ,
" toCurrency " : "EUR" ,
" rate " : "1.00000"
}
]
},
" correlationId " : "89Wekr38267" ,
" timestampUtc " : 1678883013000 ,
" operation " : "ticket-placement" ,
" version " : "3.0"
}
" ticketId " : "Ticket_3668-altstake" ,
" bets " : [
{
" selections " : [
{
" type " : "uf" ,
" productId " : "3" ,
" eventId " : "sr:season:54837" ,
" marketId " : "534" ,
" outcomeId " : "pre:outcometext:9826" ,
" specifiers " : "variant=pre:markettext:62723" ,
" odds " : {
" type " : "decimal" ,
" value " : "1.36"
}
},
{
" type " : "uf" ,
" productId " : "3" ,
" eventId " : "sr:match:14950205" ,
" marketId " : "14" ,
" outcomeId " : "1712" ,
" specifiers " : "hcp=1:0" ,
" odds " : {
" type " : "decimal" ,
" value " : "1.59"
}
}
],
" stake " : [
{
" type " : "cash" ,
" currency " : "EUR" ,
" amount " : "9.5"
}
]
}
],
" context " : {
" channel " : {
" type " : "internet" ,
" ip " : "212.9.11.2" ,
" lang " : "EN"
},
" endCustomer " : {
" id " : "endCustomer_384d54"
},
" limitId " : 1409 ,
" ref " : {
" ticketId " : "Ticket_3668" ,
" ticketSignature " : "X9sRwc4PoLw79Dv0nUcozYawhVwdmdtSUI3oJLzXm/g=" ,
" type " : "alt-stake"
}
}
},
" correlationId " : "Ghw81bCr8" ,
" timestampUtc " : 1678883225000 ,
" operation " : "ticket-placement" ,
" version " : "3.0"
}
,
" status " : "accepted" ,
" ticketId " : "Ticket_3668-altstake" ,
" code " : 0 ,
" message " : "Transaction processed" ,
" betDetails " : [
{
" selectionDetails " : [
{
" selection " : {
" type " : "uf" ,
" productId " : "3" ,
" eventId " : "sr:season:54837" ,
" marketId " : "534" ,
" outcomeId " : "pre:outcometext:9826" ,
" specifiers " : "variant=pre:markettext:62723" ,
" odds " : {
" type " : "decimal" ,
" value " : "1.36"
}
},
" code " : 0 ,
" message " : "Transaction processed"
},
{
" selection " : {
" type " : "uf" ,
" productId " : "3" ,
" eventId " : "sr:match:14950205" ,
" marketId " : "14" ,
" outcomeId " : "1712" ,
" specifiers " : "hcp=1:0" ,
" odds " : {
" type " : "decimal" ,
" value " : "1.59"
}
},
" code " : 0 ,
" message " : "Transaction processed"
}
],
" code " : 0 ,
" message " : "Transaction processed"
}
],
" exchangeRate " : [
{
" fromCurrency " : "EUR" ,
" toCurrency " : "EUR" ,
" rate " : "1.00000"
}
]
},
" correlationId " : "Ghw81bCr8" ,
" timestampUtc " : 1678883226000 ,
" operation " : "ticket-placement" ,
" version " : "3.0"
}