> For the complete documentation index, see [llms.txt](https://docs.sportradar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sportradar.com/mts/transaction-3.0-api/mts-related-transaction-examples/cashout-examples/cash-out-build-followed-by-cash-out-placement.md).

# Cash-out Build Followed by Cash-out Placement

This example shows a complete managed cash-out sequence:

1. the client requests a build;
2. MTS returns a margin-adjusted cash-out value;
3. the bettor accepts the value;
4. the client submits placement using the original ticket identity;
5. MTS accepts the placement.

The `cashoutId` and `correlationId` values are client-defined and are unique per request. The placement request uses the original `ticketId` and `ticketSignature`. It does not reuse the build `cashoutId` or the build response signature.

<details>

<summary><strong>Cash-out Build Request</strong></summary>

```json
{
  "operatorId": 9985,
  "content": {
    "type": "cashout-build",
    "cashout": {
      "type": "cashout",
      "cashoutId": "build-001",
      "details": {
        "type": "ticket",
        "ticketId": "Ticket_12345",
        "ticketSignature": "ORIGINAL_TICKET_SIGNATURE",
        "code": 101,
        "payout": [
          {
            "type": "cash",
            "currency": "EUR",
            "amount": "8.50"
          }
        ]
      }
    }
  },
  "correlationId": "build-correlation-001",
  "timestampUtc": 1770000000000,
  "operation": "cashout-build",
  "version": "3.0"
}
```

</details>

<details>

<summary><strong>Cash-out Build Response</strong></summary>

```json
{
  "content": {
    "type": "cashout-build-reply",
    "cashoutId": "build-001",
    "signature": "BUILD_RESPONSE_SIGNATURE",
    "status": "accepted",
    "ticketId": "Ticket_12345",
    "code": 0,
    "message": "Transaction processed",
    "cashout": {
      "cashoutType": "ticket",
      "cashoutId": "build-001",
      "maxPayout": [
        {
          "type": "cash",
          "currency": "EUR",
          "amount": "15.80",
          "source": "cash",
          "stakeOrigin": "cash"
        }
      ],
      "fairCashout": [
        {
          "type": "cash",
          "currency": "EUR",
          "amount": "10.02",
          "source": "cash",
          "stakeOrigin": "cash"
        }
      ],
      "cashout": [
        {
          "type": "cash",
          "currency": "EUR",
          "amount": "8.89",
          "source": "cash",
          "stakeOrigin": "cash"
        }
      ]
    }
  },
  "correlationId": "build-correlation-001",
  "timestampUtc": 1770000001000,
  "operation": "cashout-build",
  "version": "3.0"
}
```

</details>

The client displays the margin-adjusted value of `8.89 EUR`. The bettor accepts the offer.

<details>

<summary><strong>Cash-out Placement Request</strong></summary>

```json
{
  "operatorId": 9985,
  "content": {
    "type": "cashout-placement",
    "cashout": {
      "type": "cashout",
      "cashoutId": "placement-001",
      "details": {
        "type": "ticket",
        "ticketId": "Ticket_12345",
        "ticketSignature": "ORIGINAL_TICKET_SIGNATURE",
        "code": 101,
        "payout": [
          {
            "type": "cash",
            "currency": "EUR",
            "amount": "8.89"
          }
        ]
      }
    }
  },
  "correlationId": "placement-correlation-001",
  "timestampUtc": 1770000002000,
  "operation": "cashout-placement",
  "version": "3.0"
}
```

</details>

<details>

<summary><strong>Cash-out Placement Response</strong></summary>

```json
{
  "content": {
    "type": "cashout-placement-reply",
    "cashoutId": "placement-001",
    "signature": "PLACEMENT_RESPONSE_SIGNATURE",
    "status": "accepted",
    "ticketId": "Ticket_12345",
    "code": 0,
    "message": "Transaction processed"
  },
  "correlationId": "placement-correlation-001",
  "timestampUtc": 1770000003000,
  "operation": "cashout-placement",
  "version": "3.0"
}
```

</details>

After receiving the accepted placement response, the client can finalise the local payout. The client must not send an additional `cashout-inform` request for this cash-out.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sportradar.com/mts/transaction-3.0-api/mts-related-transaction-examples/cashout-examples/cash-out-build-followed-by-cash-out-placement.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
