Max Stake Retrieval

This example shows how the maximum acceptable stake for a bet can be retrieved. The Max Stake Request contains a regular ticket, in this case there are three selections within one bet. The ticket itself has not yet been placed, the client wants to know the maximum stake first. The stake value is not relevant here, but it must follow the rules set by the regex. The stake type must be "cash". For details on the stake array, please see the description on the Ticket Placement Request page.

The maximum stake is returned in the bets array of the Max Stake Response, as the stake of the first bet in the array. In terms of Max stake, the only supported stake type is "cash".

Max Stake Request
{
  "operatorId": 9985,
  "content": {
    "type": "max-stake",
    "ticket": {
      "type": "ticket",
      "ticketId": "Ticket_8321",
      "bets": [
        {
          "betId": "Ticket_8321_bet_0",
          "selections": [
            {
              "type": "uf",
              "productId": "3",
              "eventId": "sr:match:14938771",
              "marketId": "223",
              "outcomeId": "1715",
              "specifiers": "hcp=1.5",
              "odds": {
                "type": "decimal",
                "value": "1.1"
              }
            },
            {
              "type": "uf",
              "productId": "1",
              "eventId": "sr:match:15163591",
              "marketId": "1",
              "outcomeId": "2",
              "specifiers": "hcp=1:0",
              "odds": {
                "type": "decimal",
                "value": "1.48"
              }
            },
            {
              "type": "uf",
              "productId": "3",
              "eventId": "sr:match:15050881",
              "marketId": "1",
              "outcomeId": "2",
              "odds": {
                "type": "decimal",
                "value": "1.32"
              }
            }
          ],
          "stake": [
            {
              "type": "cash",
              "currency": "EUR",
              "amount": "1"
            }
          ]
        }
      ],
      "context": {
        "channel": {
          "type": "retail",
          "shopId": "shop_789135"
        },
        "limitId": 1409
      }
    }
  },
  "correlationId": "21re09iwny",
  "timestampUtc": 1732700792000,
  "operation": "max-stake",
  "version": "3.0"
}
Max Stake Response
{
  "content": {
    "type": "max-stake-reply",
    "bets": [
      {
        "betId": "Ticket_8321_bet_0",
        "selections": [
          {
            "type": "uf",
            "productId": "3",
            "eventId": "sr:match:14938771",
            "marketId": "223",
            "outcomeId": "1715",
            "specifiers": "hcp=1.5",
            "odds": {
              "type": "decimal",
              "value": "1.1"
            }
          },
          {
            "type": "uf",
            "productId": "1",
            "eventId": "sr:match:15163591",
            "marketId": "1",
            "outcomeId": "2",
            "specifiers": "hcp=1:0",
            "odds": {
              "type": "decimal",
              "value": "1.48"
            }
          },
          {
            "type": "uf",
            "productId": "3",
            "eventId": "sr:match:15050881",
            "marketId": "1",
            "outcomeId": "2",
            "odds": {
              "type": "decimal",
              "value": "1.32"
            }
          }
        ],
        "stake": [
          {
            "type": "cash",
            "currency": "EUR",
            "amount": "2872.885"
          }
        ]
      }
    ],
    "code": 0,
    "message": "Transaction processed"
  },
  "correlationId": "21re09iwny",
  "timestampUtc": 1732700793000,
  "operation": "max-stake",
  "version": "3.0"
}

Last updated

Was this helpful?