> 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/transaction30api/sandbox/user-manual/cashout_full_rejected.md).

# cashout\_full\_rejected

**Goal:** Send a full ticket cashout-inform and receive a **rejected** reply with code **-204**.

Sandbox module name: `cashout_full_rejected`.

## How to build the request (Java SDK)

{% stepper %}
{% step %}

## Build the cashout request

Use the same shape as [`cashout_full_accepted`](broken://pages/6362e2d10531d23736e215bb11bde429a0d7bf7b): `CashoutInformRequest` wrapping `CashoutRequest` with `newTicketCashoutDetailsBuilder()`.
{% endstep %}

{% step %}

## Set the rejection route

Route with either:

* Magic `ticketId`: `"mock_cashout_rejected"`, or
* `meta.punter.id` = `"customer_cashout_rejected"`.
  {% endstep %}

{% step %}

## Send the request

Send with `mbsSdk.getTicketProtocol().sendCashoutInform(request)`.
{% endstep %}
{% endstepper %}

## Java example

```java
import com.sportradar.mbs.sdk.entities.cashout.CashoutDetails;
import com.sportradar.mbs.sdk.entities.common.AcceptanceStatus;
import com.sportradar.mbs.sdk.entities.payout.Payout;
import com.sportradar.mbs.sdk.entities.request.CashoutInformRequest;
import com.sportradar.mbs.sdk.entities.request.CashoutRequest;
import com.sportradar.mbs.sdk.entities.response.CashoutInformResponse;
import java.math.BigDecimal;

CashoutInformRequest request = CashoutInformRequest.newBuilder()
    .setCashout(CashoutRequest.newBuilder()
        .setCashoutId("co-rej")
        .setDetails(CashoutDetails.newTicketCashoutDetailsBuilder()
            .setTicketId("mock_cashout_rejected")
            .setTicketSignature("sandbox-signature")
            .setPayout(Payout.newCashPayoutBuilder()
                .setAmount(new BigDecimal("999999"))
                .setCurrency("EUR")
                .build())
            .build())
        .build())
    .build();

CashoutInformResponse response = mbsSdk.getTicketProtocol().sendCashoutInform(request);
// expect: REJECTED, getCode() == -204
```

Payout amount is not used for routing; any cash payout satisfies the schema.

## Wire JSON (what the SDK sends)

```json
{
  "operatorId": 9985,
  "correlationId": "corr-1",
  "timestampUtc": 1710000000000,
  "operation": "cashout-inform",
  "version": "3.0",
  "content": {
    "type": "cashout-inform",
    "cashout": {
      "type": "cashout",
      "cashoutId": "co-rej",
      "details": {
        "type": "ticket",
        "ticketId": "mock_cashout_rejected",
        "ticketSignature": "sandbox-signature",
        "payout": [
          {
            "type": "cash",
            "amount": "999999",
            "currency": "EUR"
          }
        ]
      }
    }
  }
}
```

| Field name                                | Value                     | Mandatory / Optional | Data type       | Ignored by sandbox   |
| ----------------------------------------- | ------------------------- | -------------------- | --------------- | -------------------- |
| `operatorId`                              | `9985`                    | Mandatory            | integer         | Yes                  |
| `correlationId`                           | `"corr-1"`                | Mandatory            | string          | No (echoed in reply) |
| `timestampUtc`                            | `1710000000000`           | Mandatory            | integer         | Yes                  |
| `operation`                               | `"cashout-inform"`        | Mandatory            | string          | No                   |
| `version`                                 | `"3.0"`                   | Mandatory            | string          | No (echoed in reply) |
| `content.type`                            | `"cashout-inform"`        | Mandatory            | string          | No                   |
| `content.cashout.cashoutId`               | `"co-rej"`                | Mandatory            | string          | No (echoed in reply) |
| `content.cashout.details.type`            | `"ticket"`                | Mandatory            | string          | No (routing: full)   |
| `content.cashout.details.ticketId`        | `"mock_cashout_rejected"` | Mandatory (sandbox)  | string          | No (routing; echoed) |
| `content.cashout.details.ticketSignature` | `"sandbox-signature"`     | Mandatory            | string          | Yes                  |
| `content.cashout.details.payout`          | *(cash payout)*           | Mandatory            | array of object | Yes                  |

Magic map: `mock_cashout_rejected` → `customer_cashout_rejected`.

## Expected response

| Java getter      | Expected value                   |
| ---------------- | -------------------------------- |
| `getStatus()`    | `AcceptanceStatus.REJECTED`      |
| `getCode()`      | `-204`                           |
| `getMessage()`   | `"Cash-out amount is too high"`  |
| `getCashoutId()` | `"co-rej"` (echo)                |
| `getTicketId()`  | `"mock_cashout_rejected"` (echo) |

Wire JSON (content type `"cashout-inform-reply"`):

```json
{
  "correlationId": "corr-1",
  "timestampUtc": 1710000001000,
  "operation": "cashout-inform",
  "version": "3.0",
  "content": {
    "type": "cashout-inform-reply",
    "cashoutId": "co-rej",
    "ticketId": "mock_cashout_rejected",
    "status": "rejected",
    "code": -204,
    "message": "Cash-out amount is too high",
    "signature": "sandbox-signature"
  }
}
```

Handle with `if` on `CashoutInformResponse` (not try/catch).

## Common mistakes

| Mistake                        | Result                                                                                  |
| ------------------------------ | --------------------------------------------------------------------------------------- |
| Using `mock_cashout_full`      | Hits [`cashout_full_accepted`](broken://pages/6362e2d10531d23736e215bb11bde429a0d7bf7b) |
| Expecting amount-driven reject | Sandbox rejects by route (`customer_cashout_rejected`), not by comparing payout         |
| Wrong magic id / punter        | Fallback `-999`                                                                         |

See also: [Error responses](broken://pages/3cdf760ce49fd6992d47d7772f4a4b9f67f0519f#error-responses) in the parent manual.


---

# 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/transaction30api/sandbox/user-manual/cashout_full_rejected.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.
