| Source | Destination | |
|---|---|---|
| Client | → | MTS |
The "ticket-cashout" operation and "cashout" content type will be deprecated. Do not use them in new projects, use "cashout-inform" instead. Currently, the old types are still accepted to maintain compatibility.
MTS supports cash-out requests regarding cash-outs of live and pre-match bets and for singles, multiples and system bets. A Cash-out request will be accepted by MTS if the following conditions are met:
A ticket can be cashed out in its entire or partial value. In the case of partial cash-out, a portion of the ticket’s current value is paid out to the end customer (bettor), while the remaining part still depends on the event's outcome. In this case, apart from the cash-out amount, the Cash-out request must also include the ratio of the ticket the end customer has cashed out (field "percentage"). MTS will validate if the provided cash-out value is equal to or lower than the same ratio of the maximum possible payout of the ticket.
Clients can send as many partial cash-out requests as they wish, provided that the cash-out amount and ratio of each cash-out request include the values of all previous cash-out requests. MTS does not aggregate cash-out amount and ratio values of individual requests and treats the last request as if there were no previous requests.
Using different types of the Cash-out details object makes it possible to cash out – fully or partially – a single bet or a subset of bets within a multi-bet ticket, with custom cash-out ratios for each bet.
Envelope and Content table:
The Envelope provides the content's (cash-out request) context and contains the following fields (besides Content):
The Content object includes the following fields:
Content object table:
The Content object includes the following fields:
Content object table:
The Content object includes the following fields:
Content object table:
A client sends an Auto Cash-out request to MTS for a specific transaction, including the expected cash-out amount. MTS continuously checks for the threshold to be reached, and once reached, notifies the client with a cashout-inform Content object. The client can then perform the actual cash-out and send to MTS either a Cash-out Inform or a Cash-out Placement.
The notification is sent over a separate Transaction Stream WebSocket connection. Visit the Connectivity page to read how to establish this connection.
The Content object includes the following fields:
Content object table
The notification takes the form of a Cashout Inform request. It contains the standard transaction envelope and the cashout-inform Content object.
Content object includes the following fields:
Content object table
The Cash-out Build Subscription request is used to subscribe to cash-out value updates for a specific ticket or bet. Unlike the standard Cash-out Build request, the payout array in the details object can be empty (minItems: 0), allowing the client to receive cash-out suggestions without specifying an initial payout value. The subscription stays active for up to 5 minutes. For details of returned cash-out values, see cashout-build-subscription-reply.
The Content object includes the following fields:
Content object table:
The Cashout object contains the following fields:
Cashout object table:
1. Details ("type": "ticket") table
This type is used to cash out an entire ticket.
Fields:
2. Details ("type": "ticket-partial") table
This type is used to cash out only a portion of the ticket.
Fields:
3. Details ("type": "bet") table
This type is used to cash out an entire bet.
Fields:
4. Details ("type": "bet-partial") table
This type is used to cash out a portion of a bet.
Fields:
The following sequence is recommended for a managed, full-risk-delegation cash-out:
cashout-build → bettor acceptance → cashout-placement → local payoutThe client may send multiple cashout-build requests while the bettor is viewing the ticket. A build request only calculates the current cash-out information; it does not change the ticket state and does not reserve the returned amount.
The client should use the ticketId and ticketSignature from the original accepted ticket-placement response in both the build and placement requests.
A placement request does not need to reuse:
cashoutId from a previous build request;cashout-build-reply;There is no protocol requirement to link a particular build response to a later placement request. The client should create unique cashoutId and correlationId values and retain them for client-side tracking and troubleshooting.
For operational consistency, clients should stop unnecessary build requests after sending placement and should prevent another cash-out action for the same ticket or bet until placement has returned a response.
An accepted cashout-placement completes the managed cash-out. The client must not send a subsequent cashout-inform for the same accepted placement.
Each cash-out request supports one target:
Unrelated tickets or bets cannot be batched into one request.
For a ticket target, a maximum of 50 bets and 100 selections per bet is supported.
A request may target a complete independent bet within a multi-bet ticket while the other bets remain open. A request must not target an individual selection or leg inside an accumulator.
MTS validates the Sportradar-managed content represented in the request. If the local ticket contains omitted, unsupported, or external content, the local full-ticket target may not be eligible for managed cash-out.
Partial cash-out requests must contain cumulative values.
The percentage and payout values in each request must represent the total portion and total payout cashed out up to that request. MTS does not add the values from previous requests to the values in the latest request.
For example:
First request: percentage = 0.6, payout = 20.00
Second request: percentage = 0.9, payout = 30.00The second request represents 90% of the original stake and a cumulative payout of 30.00.
When the remaining portion is cashed out completely, use the complete ticket or complete bet details structure rather than a partial structure, as applicable.
The payout currency in a cash-out request must be present on the original ticket. EUR is the MTS calculation base currency, and ticket-acceptance exchange rates are used for supported ticket currencies.
Cash-out values support up to 8 decimal places. If submitting fewer decimal places, round down. For example, 8.89514137 may be submitted as 8.89.
stakeOrigin is optional and defaults to cash. It can be used to distinguish cash-out values by stake type on a multi-stake ticket. Only the cash stake is managed by MTS.
traceId is optional and may be used by the client to identify the origin of a payout.
| Example | Field Name | Field Description | Mandatory/Optional | Data Type |
|---|---|---|---|---|
| ||||
| operatorId | ID to uniquely identify the client from which the ticket originated, ID is provided to the client by Sportradar, The client is obliged to include it in every ticket | M | Integer |
| content | See Content object description below | M | Object |
| correlationId | Client defined string to facilitate the request-response pairing, Sportradar is obliged to return the same string in every response | M | String |
| timestampUtc | Timestamp of ticket placement as submitted by the client (Unix time in milliseconds format), minimal: 1, maximum: 9223372036854776000 | M | Integer |
| operation | Declaration of ticket content type, can be "cashout-inform" or "cashout-build" or "cashout-placement" or "auto-cashout" or "auto-cashout-cancel" or "cashout-build-subscription" | M | String |
| version | Indicates the ticket format version | M | String |
| Example | Field Name | Field Description | Mandatory/Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Declaration of content type | M | String |
| cashout | See description of Cashout object | M | Object |
| validation | Cash-out validation information as provided by the client | M | Object |
|
| Cash-out validation code as provided by the client, minimum = -1000000, maximum = 100000 | M | Integer |
|
| Readable cash-out validation message as provided by the client, minimal string length = 1, maximum string length = 128 | M | String |
|
| Clients' indication that the cash-out has been rejected on their end. (A missing field means it has not been rejected.) | O | Boolean |
| suggestionSignature | Signature of the transaction (e.g., an auto-cashout trans.) that suggested this cash-out transaction, minimal string length = 1, maximum string length = 512, Java Regex: ^[A-Za-z0-9+/=]{1,512}$ | O | String |
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Declaration of content type | M | String |
| cashout | See description of Cashout object | M | Object |
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Declaration of content type | M | String |
| cashout | See description of Cashout object | M | Object |
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Declaration of content type | M | String |
| autoCashoutId | Unique ID of this particular auto cash-out request in the client's system, minimal string length = 1, maximum length = 128, | O | String |
| details | Auto cash-out details | M | Object |
|
| Enumerator:
| M | String |
|
| ID of the original ticket that is to be affected by this auto cash-out request | M | String |
|
| Signature from MTS's response to initial ticket placement | M | String |
|
| Field not present if "type": "ticket", ID of the initial bet (defined by client) that is to be affected by this cash-out request | M if "type": "bet" | String |
|
| Max array length = 2, Min array length = 1 | M | Array |
|
| Enumerator:
| M | String |
|
| Proportion of the bet that is to be cashed-out, format: up to 8 decimal places after a zero and decimal point, has to be passed as a decimal (i.e. 0.6 and not 60), Java regex: ^0(\\.\\d{1,8})?$ | M | String |
|
| See the payout array description in the Details ("type": "ticket") table below. | M | Array |
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Declaration of content type | M | String |
| cancellationId | Unique ID of this particular auto cash-out cancellation request in the client's system, minimal string length = 1, maximum length = 128, | O | String |
| details | Auto cash-out details | M | Object |
|
| Enumerator:
| M | String |
|
| ID of the original ticket that is to be affected by this auto cash-out cancellation request | M | String |
|
| Signature from MTS's response to initial ticket placement | M | String |
|
| Field not present if "type": "ticket", ID of the initial bet (defined by client) that is to be affected by this cash-out cancellation request | M if "type": "bet" | String |
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Declaration of content type | M | String |
| cashoutId | Unique ID of this particular cash-out subscription request in the client's system, minimal string length = 1, maximum length = 128 | M | String |
| details | Cash-out subscription details - the same structure as standard cash-out details, but the payout array can be empty (minItems: 0). See Details object for field descriptions. Enum for type:
| M | Object |
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Declaration of type | M | String |
| cashoutId | Unique ID of this particular cash-out request in client's system, referenced in eventual ack message, minimal string length = 1, maximum string length = 128 | O | String |
| details | Cash-out details - such as what is to be cashed out, amount, etc., see description | M | Object |
|
| See description of the 4 specific "details" types below Enum:
| M | String |
| context | Cash-out context - additional information for the cash-out process | O | Object |
|
| Enumerator:
| O | String |
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Defines the type of Cash-out details | M | String |
| ticketId | ID of the original ticket that is to be affected by this cash-out request | M | String |
| ticketSignature | Signature from MTS's response to initial ticket placement | M | String |
| code | Cash-out reason code, see list of codes | M | Integer |
| payout | Session payout array, minimal number of payouts per session =1, maximum number = 5 | M | Array |
|
| Enumerator:
| M | String |
|
| 2 to 4 letter currency code, BTC and mBTC are also supported (4 letters only apply to mBTC). For more details please check https://www.iso.org/iso-4217-currency-codes.html | M | String |
|
| String pattern: 1 up to 8 digits, optionally followed by a decimal point and 1 up to 8 digits, Java regex: ^\\d{1,8}(\\.\\d{1,8})?$ | M | String |
|
| A string to help identify the source of operation/action/state Minimal string length = 1, maximum length = 128, | O | String |
|
| Enumerator:
| O | String |
|
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Defines the type of cash-out details | M | String |
| ticketId | ID of the original ticket that is to be affected by this cash-out request | M | String |
| ticketSignature | Signature from MTS's response to initial ticket placement | M | String |
| code | Cash-out reason code, see list of codes | M | Integer |
| percentage | Proportion of the bet that is to be cashed-out, format: up to 8 decimal places after a zero and decimal point, has to be passed as a decimal (i.e. 0.6 and not 60), Java regex: ^0(\\.\\d{1,8})?$ | M | String |
| payout | See the payout array description in the Details ("type": "ticket") table above | M | Array |
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Defines the type of cash-out details | M | String |
| ticketId | ID of the original ticket that is to be affected by this cash-out request | M | String |
| ticketSignature | Signature from MTS's response to initial ticket placement | M | String |
| betId | ID of the initial bet (defined by client) that is to be affected by this cash-out request | M | String |
| code | Cash-out reason code, see list of codes | M | Integer |
| payout | See the payout array description in the Details ("type": "ticket") table above | M | Array |
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Defines the type of cash-out details | M | String |
| ticketId | ID of the original ticket that is to be affected by this cash-out request | M | String |
| ticketSignature | Signature from MTS's response to initial ticket placement | M | String |
| betId | ID of the initial bet (defined by client) which is to be affected with this cash-out | M | String |
| code | Cash-out reason code, see list of codes | M | Integer |
| percentage | Proportion of the bet that is to be cashed-out, format: up to 8 decimal places after a zero and decimal point, has to be passed as a decimal (i.e. 0.8 and not 80), Java regex: ^0(\\.\\d{1,8})?$ | M | String |
| payout | See the payout array description in the Details ("type": "ticket") table above | M | Array |