Custom Bet with Odds Harmonization

This example illustrates the odds harmonization instruction ("useHarmOdds": true) in the request. The response indicates that the odds harmonization has been successful by including "harmOddsApplied": true. The ticket contains only one bet (the Bets array length = 1).

chevron-rightTicket Placement Requesthashtag
{
  "operatorId": 9985,
  "content": {
    "type": "ticket",
    "ticketId": "Ticket_124250_727647",
    "bets": [
      {
        "selections": [
          {
            "type": "uf-custom-bet",
            "odds": {
              "type": "decimal",
              "value": "10.01"
            },
            "useHarmOdds": true,
            "selections": [
              {
                "type": "uf",
                "eventId": "sr:match:61491025",
                "productId": "3",
                "marketId": "1",
                "outcomeId": "1",
                "odds": {
                  "type": "decimal",
                  "value": "1.01"
                }
              },
              {
                "type": "uf",
                "eventId": "sr:match:61491025",
                "productId": "3",
                "marketId": "29",
                "outcomeId": "76",
                "odds": {
                  "type": "decimal",
                  "value": "1.01"
                }
              }
            ]
          }
        ],
        "stake": [
          {
            "type": "cash",
            "currency": "EUR",
            "amount": "1"
          }
        ],
        "betId": "Ticket_124250_727647_bet0",
        "context": {
          "oddsChange": "any"
        }
      }
    ],
    "context": {
      "channel": {
        "type": "internet",
        "ip": "212.9.11.2",
        "lang": "EN"
      },
      "endCustomer": {
        "id": "endCustomer_384d54"
      },
      "limitId": 1409
    }
  },
  "correlationId": "Hw8j1os7byp",
  "timestampUtc": 1770378170727,
  "operation": "ticket-placement",
  "version": "3.0"
}
chevron-rightTicket Placement Responsehashtag
{
  "content": {
    "type": "ticket-reply",
    "message": "Transaction processed",
    "code": 0,
    "signature": "1Evu5amTHoN2zhwisw8Ekwo2kyQ72XVqCxfq4lEtr87/bs6q+PaiJok73XVN8y4C9yuTLyLW+oCYau8C",
    "ticketId": "Ticket_124250_727647",
    "status": "accepted",
    "betDetails": [
      {
        "code": 0,
        "message": "Transaction processed",
        "betId": "Ticket_124250_727647_bet0",
        "selectionDetails": [
          {
            "code": 0,
            "message": "Transaction processed",
            "selection": {
              "type": "uf-custom-bet",
              "selections": [
                {
                  "type": "uf",
                  "productId": "3",
                  "eventId": "sr:match:61491025",
                  "marketId": "1",
                  "specifiers": "",
                  "outcomeId": "1",
                  "odds": {
                    "type": "decimal",
                    "value": "1.01"
                  }
                },
                {
                  "type": "uf",
                  "productId": "3",
                  "eventId": "sr:match:61491025",
                  "marketId": "29",
                  "specifiers": "",
                  "outcomeId": "76",
                  "odds": {
                    "type": "decimal",
                    "value": "1.01"
                  }
                }
              ],
              "odds": {
                "type": "decimal",
                "value": "10.01"
              },
              "useHarmOdds": true,
              "harmOddsApplied": true
            }
          }
        ]
      }
    ],
    "exchangeRate": [
      {
        "fromCurrency": "EUR",
        "toCurrency": "EUR",
        "rate": "1.00000000"
      }
    ]
  },
  "correlationId": "Hw8j1os7byp",
  "timestampUtc": 1770378171325,
  "operation": "ticket-placement",
  "version": "3.0"
}

Last updated

Was this helpful?