Cash-out Build Request and Response

This is an example of a Cashout Build request (for a complete ticket) and a Cashout Build Reply response (including the Payout With Source object).

Cash-out Request
{
  "operatorId": 68983449,
  "content": {
    "type": "cashout-build",
    "cashout": {
      "type": "cashout",
      "cashoutId": "cashoutBuild681",
      "details": {
        "type": "ticket",
        "ticketId": "MyTicketId681",
        "ticketSignature": "MyTicketId681S",
        "code": 100,
        "payout": [
          {
            "type": "cash",
            "currency": "EUR",
            "amount": "17.5"
          }
        ]
      }
    }
  },
  "correlationId": "HerT5kUL",
  "timestampUtc": 1728711474000,
  "operation": "cashout-build",
  "version": "3.0"
}
Cash-out Response
{
  "content": {
    "type": "cashout-build-reply",
    "signature": "MyTicketId681S",
    "ticketId": "ticket123",
    "code": 0,
    "message": "Success",
    "ltd": {
      "modelSuggestedLtd": "Delay",
      "configuredLtd": 5,
      "suggestedLtd": 2,
      "accountLbsLtdOffset": 2,
      "liveSelectionLtdOffset": -3,
      "appliedLtd": 4
    },
    "cashout": {
      "cashoutType": "ticket",
      "cashoutId": "cashoutBuild681",
      "maxPayout": [
        {
          "type": "cash",
          "amount": "10.5",
          "currency": "EUR",
          "source": "cashout"
        },
        {
          "type": "free",
          "amount": "10.5",
          "currency": "EUR",
          "source": "bonus"
        }
      ],
      "fairCashout": [
        {
          "type": "cash",
          "amount": "10.5",
          "currency": "EUR",
          "source": "cashout"
        },
        {
          "type": "free",
          "amount": "10.5",
          "currency": "EUR",
          "source": "bonus"
        }
      ],
      "cashout": [
        {
          "type": "cash",
          "amount": "10.5",
          "currency": "EUR",
          "source": "cashout"
        },
        {
          "type": "free",
          "amount": "10.5",
          "currency": "EUR",
          "source": "bonus"
        }
      ]
    },
    "endCustomerSuggestions": {
      "endCustomer": {
        "id": "endCustomer123",
        "confidence": "1.72"
      },
      "appliedConfidence": "1.75",
      "suggestedConfidence": "0.8",
      "suggestedLateBetScore": "0.9",
      "suggestedMarkerScore": "1.0",
      "suggestedBotScore": "0.3"
    },
    "channelSuggestions": {
      "channel": {
        "type": "retail",
        "shopId": "retail-1",
        "lang": "en"
      },
      "appliedConfidence": "1.71",
      "suggestedConfidence": "0.45",
      "suggestedLateBetScore": "0.2"
    },
    "betDetails": [
      {
        "betId": "bet123",
        "selectionDetails": [
          {
            "selection": {
              "type": "uf",
              "odds": {
                "type": "decimal",
                "value": "1.2"
              },
              "productId": "234",
              "eventId": "234",
              "marketId": "234",
              "outcomeId": "234"
            },
            "appliedEventRating": 3,
            "suggestedEventRating": 5,
            "configuredLtd": 2,
            "suggestedLtd": 1,
            "appliedMarketFactor": "0.2",
            "currentProbability": {
              "type": "push",
              "win": "0.1",
              "refund": "0.3",
              "halfWin": "0.4",
              "halfLose": "0.5"
            },
            "currentResult": {
              "type": "unsettled"
            }
          },
          {
            "selection": {
              "type": "uf",
              "odds": {
                "type": "decimal",
                "value": "1.3"
              },
              "productId": "345",
              "eventId": "345",
              "marketId": "345",
              "outcomeId": "345"
            },
            "appliedEventRating": 2,
            "suggestedEventRating": 1,
            "configuredLtd": 4,
            "suggestedLtd": 5,
            "appliedMarketFactor": "0.7",
            "currentProbability": {
              "type": "push",
              "win": "0.15",
              "refund": "0.35",
              "halfWin": "0.45",
              "halfLose": "0.55"
            },
            "currentResult": {
              "type": "win",
              "deadHeatFactor": "0.5",
              "voidFactor": "0.4"
            }
          }
        ],
        "payout": [
          {
            "type": "cash",
            "amount": "10.5",
            "currency": "EUR",
            "source": "cashout"
          }
        ],
        "settledPercentage": "0.2"
      }
    ],
    "exchangeRate": [
      {
        "fromCurrency": "EUR",
        "toCurrency": "EUR",
        "rate": "1"
      }
    ]
  },
  "correlationId": "HerT5kUL",
  "timestampUtc": 1728711474000,
  "operation": "cashout-build",
  "version": "3.0"
}

Last updated

Was this helpful?