| Destination | Source | |
|---|---|---|
| Client | ← | MTS |
The Ticket placement response, like any other ticket, consists of the envelope and content.
The content part represents the ticket itself and is included in the Content object.
Its most complex part, the BetDetails array, is described in a separate table below.
Envelope and Content table:
The Envelope provides the content's (Ticket placement response) context and contains the following fields (besides Content):
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| ||||
| content | See Content object description below | M | Object |
The Content object includes the following fields:
Please note that in the case of major ticket errors or internal system errors the content object has a different structure and contains "type": "error-reply" instead of "type": "ticket-reply. For description, see Error-reply response.
Content object table
The betDetails array consists of the following fields. The code and message fields indicate potential errors in the requested bet in the Ticket placement request.
BetDetails array table:
"correlationId": "Uw59kwUL",| correlationId |
| The same string as submitted by client in the Ticket placement request |
| M |
| String |
| timestampUtc | Timestamp of response placement (Unix time in milliseconds format), minimal: 1, maximum: 9223372036854776000 | M | Integer |
| operation | Should be "ticket-placement" in case of Ticket placement response, In case of Cancellation, Cashout and Non-SR settlement requests / responses, enumerator:
In case of Acknowledgement messages and Acknowledgement reply messages - enumerator:
| M | String |
| version | Indicates the ticket format version | M | String |
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Object | |||
| type | Declaration of the content type, should be "ticket-reply" in the case of Ticket placement response or "error-reply" in the case of major ticket errors or internal system errors (see also Error-reply Response). | M | String |
| signature | String calculated and sent by MTS to be used as a proof that the response has actually been provided by MTS, minimal string length = 1, maximum string length = 128 | M | String |
| status | Suggestion on ticket acceptance, provided by MTS, enumerator:
| M | String |
| ticketId | Used to identify the ticket that this response relates to, minimal string length = 1, maximum string length = 128 | M | String |
| code | Ticket response validation code (the main reason the ticket has eventually been rejected), see list of validation codes | M | Integer |
| message | Readable ticket response validation code, minimal string length = 1, maximum string length = 128 (example is shortened) | O | String |
| pendingManualBetReview | This flag is used to indicate that the manual validation review process has started for this ticket. The client should then check the review status via Manual review request. | O | Boolean |
| betDetails | For syntax, see the betDetails array description | O | Array |
| exchangeRate | MTS has a system currency (used for defining liability limits etc.), details can be found here. This rate was used at ticket acceptance time when converting actual bet currency to the MTS system currency | O | Array |
| ||||
|
| Actual bet currency, 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 |
|
| MTS system currency (currently the euro, so for the time being only "EUR" can be expected), 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 |
|
| System currency units for one non-system currency unit (amount in bet currency * rate = amount in system currency), 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 |
| Example | Field Name | Field Description | Mandatory/ Optional | Data Type |
|---|---|---|---|---|
| Array of betDetails, minimal number of betDetails per Ticket placement response = 1, maximum number = 10 | O | Array | |
| ||||
| betId | Unique ticket bet id (in the client's system), minimal string length = 1, maximum length = 128 | O | String |
| selectionDetails | Array of bet selectionDetails, minimal number of selectionsDetails per bet = 1, maximum number = 100 | M | Array |
|
| A selection that has been included in the Ticket Placement Request is returned here, however included can be only selections of "type":"uf" or "type":"external" or "type":"uf-custom-bet" | M | Object |
| Only possible selection types: "type": "uf" , "type": "external", "type": "uf-custom-bet" | M | String | |
|
| Present only if selection type is "uf-custom-bet" | O | Boolean |
|
| Present only if selection type is "uf-custom-bet", Indicates successful odds harmonization | O | Boolean |
| ||||
|
| Provides information of an eventual odds change (at ticket acceptance) | O | Object |
|
| Any other odds format will be converted to decimal and returned here | M | String |
|
| Specifies the odds which the ticket was placed with, String pattern: 1 up to 8 digits (the first digit should not be 0), optionally followed by a decimal point and 1 up to 8 digits, Java regex: ^[1-9]\\d{0,7}(\\.\\d{1,8})?$ | M | String |
| ||||
|
| Selection validation code, see list of validation codes | M | Integer |
|
| Readable selection validation code, minimal string length = 1, maximum string length = 128, (example is shortened) | O | String |
| code | Bet validation code, see list of validation codes | M | Integer |
| message | Readable bet validation code, minimal string length = 1, maximum string length = 128, (example is shortened) | O | String |
| suggestion | In the case of a liability excess, MTS may return a re-offer or an alternative stake suggestion (both are MTS features) | O | Object |
|
| Enumerator:
| M | String |
|
| Specifies the re-offer functionality operation mode, if "type": "alt-stake" this field is omitted, enumerator:
| O | String |
|
| New suggested stake, array of stake, minimal number of stake per suggestion =1, maximum number = 5, see the stake array description (in the bets array table) | M | Array |
| M | String | ||
|