---
title: "Cancellation Response"
canonical_url: "https://docs.sportradar.com/resources/transaction/docs/api-description/ticket-json-format-description/cancellation-description-and-flow/cancellation-response"
markdown_url: "https://docs.sportradar.com/resources/transaction/docs/api-description/ticket-json-format-description/cancellation-description-and-flow/cancellation-response.md"
last_updated: "2026-11-25T06:59:36Z"
---

# Cancellation Response

| Destination |       |  Source |
| :---------: | :---: | :-----: |
|  **Client** | **←** | **MTS** |

**Envelope and Content table:**

The envelope provides the Content's (Cancellation response) context and contains the following fields (besides Content):

- correlationId
- timestampUtc
- operation
- version

<!-- prettier-ignore -->

| Example                                                    | Field Name    | Field Description                                                                                                                           | Mandatory/ Optional | Data Type |
| ---------------------------------------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | --------- |
| <pre><code>{</code></pre>                                  | <br>          | <br>                                                                                                                                        | <br>                | <br>      |
| <pre><code>  "content": {</code></pre>                     | content       | See Content object description below                                                                                                        | M                   | Object    |
| <pre><code>       ...........</code></pre>                 | <br>          | <br>                                                                                                                                        | <br>                | <br>      |
| <pre><code>       ...........</code></pre>                 | <br>          | <br>                                                                                                                                        | <br>                | <br>      |
| <pre><code>  },</code></pre>                               | <br>          | <br>                                                                                                                                        | <br>                | <br>      |
| <pre><code>  "correlationId": "ew24faU66psM",</code></pre> | correlationId | Client defined string to facilitate the request-response pairing,<br>Sportradar is obliged to return the same string in every response      | M                   | String    |
| <pre><code>  "timestampUtc": 1678265557000,</code></pre>   | timestampUtc  | Timestamp of ticket placement as submitted by the client (Unix time in milliseconds format),<br>minimal: 1,<br>maximum: 9223372036854776000 | M                   | Integer   |
| <pre><code>  "operation": "ticket-cancel",</code></pre>    | operation     | Declaration of ticket content type, should be "ticket-cancel" in case of Cancellation response                                              | M                   | String    |
| <pre><code>  "version": "3.0"</code></pre>                 | version       | Indicates the ticket format version                                                                                                         | M                   | String    |
| }                                                          | <br>          | <br>                                                                                                                                        | <br>                | <br>      |

### Content object (Cancellation response) {#mtscancellationresponse-v3.0-contentcontentobject-cancellationresponse}

The Content object includes the following fields:

- type
- cancellationId
- signature
- status
- ticketId
- code
- message

**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": "cancel-reply. For description, see [Error-reply Response](https://docs.sportradar.com/resources/transaction/docs/api-description/ticket-json-format-description/error-reply-response.md).

**Content object table:**

<!-- prettier-ignore -->

| Example                                                                                                          | Field Name     | Field Description                                                                                                                                                                                                                                                                                                                                     | Mandatory/ Optional | Data Type |
| ---------------------------------------------------------------------------------------------------------------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | --------- |
| <pre><code>"content": {</code></pre>                                                                             | <br>           | <br>                                                                                                                                                                                                                                                                                                                                                  | <br>                | Object    |
| <pre><code>    "type": "cancel-reply",</code></pre>                                                              | type           | Declaration of the content type, should be "cancel-reply" in the case of Cancellation response<br><br>or "error-reply" in the case of major ticket errors or internal system errors (see also [Error-reply Response](https://docs.sportradar.com/resources/transaction/docs/api-description/ticket-json-format-description/error-reply-response.md)). | M                   | String    |
| <pre><code>    "cancellationId": "CANC8787414", </code></pre>                                                    | cancellationId | ID from the corresponding request,<br>minimal string length = 1,<br>maximum string length = 128                                                                                                                                                                                                                                                       | O                   | String    |
| <pre><code>    "signature": "ouHgh3Yn+1p9C0Ms</code></pre><pre><code>3brurfLBlLTcweMdP0vM2HI+Lx8=",</code></pre> | signature      | String calculated and sent by MTS to be used as a proof that the response has actually been provided by MTS,<br>minimal string length = 1,<br>maximum string length = 128                                                                                                                                                                             | M                   | String    |
| <pre><code>    "status": "rejected",</code></pre>                                                                | status         | Request outcome, enumerator:<ul><li>accepted</li><li>rejected</li></ul>                                                                                                                                                                                                                                                                               | M                   | <br>      |
| <pre><code>    "ticketId": "Ticket\_3690",</code></pre>                                                          | ticketId       | ID of the initial ticket (defined by client) which is to be affected with this cancellation                                                                                                                                                                                                                                                           | M                   | String    |
| <pre><code>    "code": -2013,    </code></pre>                                                                   | code           | Cancellation response code,<br>see list of codes below                                                                                                                                                                                                                                                                                                | M                   | Integer   |
| <pre><code>    "message": "Ticket time for cancellation expired"</code></pre>                                    | message        | Readable ticket response validation code, minimal string length = 1,<br>maximum string length = 128                                                                                                                                                                                                                                                   | O                   | <br>      |
| }                                                                                                                | <br>           | <br>                                                                                                                                                                                                                                                                                                                                                  | <br>                | <br>      |

### Cancellation response codes {#mtscancellationresponse-v3.0-cancellationresponsecodes}

For general validation codes , please refer to [Validation codes](https://docs.sportradar.com/resources/transaction/docs/api-description/validation-codes.md).

<!-- prettier-ignore -->

| Code                          | Description                                                                                          |
| ----------------------------- | ---------------------------------------------------------------------------------------------------- |
| <pre><code>0</code></pre>     | Transaction processed                                                                                |
| <pre><code>-2010</code></pre> | Ticket not found                                                                                     |
| <pre><code>-2011</code></pre> | Client (bookmaker) not found                                                                         |
| <pre><code>-2012</code></pre> | Cannot be cancelled because ticket contains live selection                                           |
| <pre><code>-2013</code></pre> | Ticket time for cancellation expired                                                                 |
| <pre><code>-2015</code></pre> | Cannot be cancelled because ticket contains pre-match selection                                      |
| <pre><code>-2016</code></pre> | Cannot be cancelled because particular cancellation option is not active                             |
| <pre><code>-2017</code></pre> | Cannot be cancelled because ticket is already settled                                                |
| <pre><code>-2018</code></pre> | Cannot be cancelled because ticket is already cancelled                                              |
| <pre><code>-2019</code></pre> | Cancel factor is out of bounds (when the cancellation factor is outside the allowed range of 0-100%) |
| <pre><code>-2020</code></pre> | Cancel factor is lower than existing (when the cancellation factor is lower than the previous one)   |
| <pre><code>-2021</code></pre> | Cannot be cancelled because bet id was not found                                                     |
| <pre><code>-2022</code></pre> | Ticket already settled manually                                                                      |
| <pre><code>-2023</code></pre> | Cannot be cancelled because ticket contains inactive market                                          |
| <pre><code>-2024</code></pre> | Cannot be cancelled because code is not compatible with partial cancellation                         |
| <pre><code>-999</code></pre>  | Generic exception code                                                                               |
