| Destination | Source | |
|---|---|---|
| Client | ← | MTS |
Envelope and Content table:
The envelope provides the Content's (Acknowledgment reply message) 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 |
This object constitutes the reply message itself and 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": "*-ack-reply. For description, see Error-reply Response.
Content object table
| Code | Description |
|---|---|
| Transaction processed |
| Client (bookmaker) not found |
| Ticket not found |
"correlationId": "623dHlyMq82",| 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 milliseconds format), minimal: 1, maximum: 9223372036854776000 | M | Integer |
| operation | In case of 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 content type, enumerator:
Type relates to the envelope's "operation" field Each of the above types can be replaced with "type": "error-reply" in the case of major ticket errors or internal system errors (see also Error-reply Response). | M | String |
| cancellationId or cashoutId or settlementId | "type": "ticket-ack-reply" → field is omitted, "type": "cancel-ack-reply" → cancellationId, "type": "cashout-ack-reply" → cashoutId, "type": "ext-settlement-ack-reply" → settlementId, "type": "cashout-inform-ack" → cashoutId, "type": "cashout-placement-ack" → cashoutId | M except for "type": "ticket-ack-reply" | String |
| signature | String calculated and sent by MTS to be used as a proof that the reply has actually been provided by MTS, minimal string length = 1, maximum string length = 128 | M | String |
| status | Request outcome, enumerator:
| M | String |
| ticketId | ID of the initial ticket (defined by client) | M | String |
| code | Ack. reply code, see list of codes below | M | Integer |
| message | Readable ticket response validation code, minimal string length = 1, maximum string length = 128 | O | String |