Goal: Send a full ticket cashout-inform and receive an accepted reply.
Sandbox module name: cashout_full_accepted. Prefer sendCashoutInform (goldens use cashout-inform); sendCashout routes to the same scenarios.
Build an inner CashoutRequest with a unique cashoutId.
Set details with CashoutDetails.newTicketCashoutDetailsBuilder() (JSON type "ticket").
Route with either:
ticketId: "mock_cashout_full", ormeta.punter.id: "customer_cashout_accepted" with any normal ticketId.Attach a cash payout (Payout.newCashPayoutBuilder()) — amount is not used for routing.
Wrap in CashoutInformRequest.newBuilder().setCashout(...).
Send with mbsSdk.getTicketProtocol().sendCashoutInform(request).
No mobile / ticket context on cashout-inform content.
import com.sportradar.mbs.sdk.entities.cashout.CashoutDetails;
import com.sportradar.mbs.sdk.entities.common.AcceptanceStatus;
import com
{
"operatorId": 9985,
"correlationId": "corr-1",
"timestampUtc": 1710000000000,
"operation": "cashout-inform",
"version": "3.0",
"content": {
"type": "cashout-inform"
Magic map: mock_cashout_full → customer_cashout_accepted.
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-1",
"ticketId
| Mistake | Result |
|---|---|
Using mock_cashout_rejected | Hits cashout_full_rejected |
| Partial details builder | Routes to cashout_partial steps |
| 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.type | "cashout" | Mandatory | string | No |
content.cashout.cashoutId | "co-1" | Mandatory | string | No (echoed in reply) |
content.cashout.details.type | "ticket" | Mandatory | string | No (routing: full) |
content.cashout.details.ticketId | "mock_cashout_full" | Mandatory (sandbox) | string | No (routing; echoed) |
content.cashout.details.ticketSignature | "sandbox-signature" | Mandatory | string | Yes |
content.cashout.details.payout[].type | "cash" | Mandatory | string | Yes |
content.cashout.details.payout[].amount | "10" | Mandatory | string | Yes |
content.cashout.details.payout[].currency | "EUR" | Mandatory | string | Yes |
| Java getter | Expected value |
|---|---|
getStatus() | AcceptanceStatus.ACCEPTED |
getCode() | 0 |
getMessage() | "accepted" (sandbox) |
getCashoutId() | "co-1" (echo) |
getTicketId() | "mock_cashout_full" (echo) |