Goal: Send a full ticket cashout-inform and receive a rejected reply with code -204.
Sandbox module name: cashout_full_rejected.
Use the same shape as cashout_full_accepted: CashoutInformRequest wrapping CashoutRequest with newTicketCashoutDetailsBuilder().
Route with either:
ticketId: "mock_cashout_rejected", ormeta.punter.id = "customer_cashout_rejected".Send with mbsSdk.getTicketProtocol().sendCashoutInform(request).
import com.sportradar.mbs.sdk.entities.cashout.CashoutDetails;
import com.sportradar.mbs.sdk.entities.common.AcceptanceStatus;
import com.
Payout amount is not used for routing; any cash payout satisfies the schema.
{
"operatorId": 9985,
"correlationId": "corr-1",
"timestampUtc": 1710000000000,
"operation": "cashout-inform",
"version": "3.0",
"content": {
"type": "cashout-inform"
Magic map: mock_cashout_rejected → customer_cashout_rejected.
Wire JSON (content type "cashout-inform-reply"):
{
"correlationId": "corr-1",
"timestampUtc": 1710000001000,
"operation": "cashout-inform",
"version": "3.0",
"content": {
"type": "cashout-inform-reply",
"cashoutId": "co-rej",
"ticketId
Handle with if on CashoutInformResponse (not try/catch).
| Mistake | Result |
|---|---|
Using mock_cashout_full | Hits cashout_full_accepted |
| 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 in the parent manual.
| 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 |
| 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) |