Multi-event Custom Bet on Soccer with Five Selections

This example represents the same case as Single Custom Bet on Soccer with Three Selections, but contains 5 selections that refer to 3 different events. The overlying uf-custom-bet selection contains the consolidated odds for all five selections (as previously fetched from UOF). The ticket contains only one bet (the Bets array length = 1).

Ticket Placement Request
{
  "operatorId": 9985,
  "content": {
    "type": "ticket",
    "ticketId": "Ticket_4903",
    "bets": [
      {
        "selections": [
          {
            "type": "uf-custom-bet",
            "selections": [
              {
                "type": "uf",
                "productId": "3",
                "eventId": "sr:match:36116029",
                "marketId": "18",
                "outcomeId": "12",
                "specifiers": "total=2.5",
                "odds": {
                  "type": "decimal",
                  "value": "1.21"
                }
              },
              {
                "type": "uf",
                "productId": "3",
                "eventId": "sr:match:36116029",
                "marketId": "26",
                "outcomeId": "70",
                "odds": {
                  "type": "decimal",
                  "value": "1.10"
                }
              },
              {
                "type": "uf",
                "productId": "3",
                "eventId": "sr:match:36116029",
                "marketId": "21",
                "outcomeId": "sr:exact_goals:5+:1341",
                "specifiers": "variant=sr:exact_goals:5+",
                "odds": {
                  "type": "decimal",
                  "value": "1.51"
                }
              },
              {
                "type": "uf",
                "productId": "3",
                "eventId": "sr:match:13795620",
                "marketId": "818",
                "outcomeId": "1849",
                "specifiers": "total=1.5",
                "odds": {
                  "type": "decimal",
                  "value": "1.46"
                }
              },
              {
                "type": "uf",
                "productId": "3",
                "eventId": "sr:match:14901648",
                "marketId": "552",
                "outcomeId": "1747",
                "odds": {
                  "type": "decimal",
                  "value": "1.25"
                }
              }
            ],
            "odds": {
              "type": "decimal",
              "value": "6.89"
            }
          }
        ],
        "stake": [
          {
            "type": "cash",
            "currency": "EUR",
            "amount": "10"
          }
        ]
      }
    ],
    "context": {
      "channel": {
        "type": "internet",
        "ip": "212.9.11.2",
        "lang": "EN"
      },
      "endCustomer": {
        "id": "endCustomer_384d54"
      },
      "limitId": 1409
    }
  },
  "correlationId": "Ckwq729Vbj33",
  "timestampUtc": 1678889866000,
  "operation": "ticket-placement",
  "version": "3.0"
} jso
Ticket Placement Response
{
    "content": {
      "type": "ticket-reply",
      "signature": "vGHJYthy4TUw/ut3zT6y9ZJ6mvbz3YJpdXUNY0LFfzg=",
      "status": "accepted",
      "ticketId": "Ticket_4903",
      "code": 0,
      "message": "Ticket accepted",
      "betDetails": [
        {
          "selectionDetails": [
            {
              "selection": {
                "type": "uf-custom-bet",
                "selections": [
                  {
                    "type": "uf",
                    "productId": "3",
                    "eventId": "sr:match:36116029",
                    "marketId": "18",
                    "outcomeId": "12",
                    "specifiers": "total=2.5",
                    "odds": {
                      "type": "decimal",
                      "value": "1.21"
                    }
                  },
                  {
                    "type": "uf",
                    "productId": "3",
                    "eventId": "sr:match:36116029",
                    "marketId": "26",
                    "outcomeId": "70",
                    "odds": {
                      "type": "decimal",
                      "value": "1.10"
                    }
                  },
                  {
                    "type": "uf",
                    "productId": "3",
                    "eventId": "sr:match:36116029",
                    "marketId": "21",
                    "outcomeId": "sr:exact_goals:5+:1341",
                    "specifiers": "variant=sr:exact_goals:5+",
                    "odds": {
                      "type": "decimal",
                      "value": "1.51"
                    }
                  },
                  {
                    "type": "uf",
                    "productId": "3",
                    "eventId": "sr:match:13795620",
                    "marketId": "818",
                    "outcomeId": "1849",
                    "specifiers": "total=1.5",
                    "odds": {
                      "type": "decimal",
                      "value": "1.46"
                    }
                  },
                  {
                    "type": "uf",
                    "productId": "3",
                    "eventId": "sr:match:14901648",
                    "marketId": "552",
                    "outcomeId": "1747",
                    "odds": {
                      "type": "decimal",
                      "value": "1.25"
                    }
                  }
                ],
                "odds": {
                  "type": "decimal",
                  "value": "6.89"
                }
              },
              "code": 0,
              "message": "Transaction processed",
              "autoAcceptedOdds" : {
                "type" : "decimal",
                "value" : "6.99"
              }
            }
          ],
          "code": 0,
          "message": "Transaction processed"
        }
      ],
      "exchangeRate":   [
        {
          "fromCurrency": "EUR",
          "toCurrency": "EUR",
          "rate": "1.00000"
        }
      ]
    },
    "correlationId": "Ckwq729Vbj33",
    "timestampUtc": 1678889867000,
    "operation": "ticket-placement",
    "version": "3.0"
  }

Last updated

Was this helpful?