> 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/uof/bet-builder/api/cashout/endpoint.md).

# Endpoint

## Request Cashout for Bet Builder Ticket

> Evaluates ticket selections for cashout eligibility. Returns cashout availability, fair probability, and fair odds (HTTP 200 AVAILABLE). If selections are ineligible or fully settled, rejection details are returned with HTTP 400 (UNAVAILABLE or CLOSED). Public gateway may expose this at \`/v1custombet/cashout\`.

```json
{"openapi":"3.0.3","info":{"title":"Betradar Custom Bet Cashout API","version":"2.0.0"},"servers":[{"url":"https://api.betradar.com","description":"Production API gateway"}],"security":[{"key":[]}],"components":{"securitySchemes":{"key":{"type":"apiKey","in":"header","name":"x-access-token"}},"schemas":{"CashOutRequest":{"type":"object","xml":{"name":"cashOutRequest","namespace":"http://schemas.sportradar.com/custombet/v1/endpoints"},"required":["selection"],"properties":{"event_id":{"type":"string","description":"Optional match URN (e.g. `sr:match:75264004`). When provided, Probabilities API line lookup is executed prior to pricing. Omit for multi-match tickets or when skipping PAPI line gating.","xml":{"attribute":true}},"selection":{"type":"array","description":"List of market selections on the ticket.","xml":{"wrapped":false},"items":{"$ref":"#/components/schemas/TicketSelection"}}}},"TicketSelection":{"type":"object","xml":{"name":"selection"},"required":["id","market_id","outcome_id"],"properties":{"id":{"type":"string","description":"Unique sport event identifier (match URN). Required on each selection.","xml":{"attribute":true}},"market_id":{"type":"integer","description":"Numeric market identifier (integer attribute in XSD).","xml":{"attribute":true}},"outcome_id":{"type":"string","description":"Outcome identifier.","xml":{"attribute":true}},"specifiers":{"type":"string","nullable":true,"description":"Key-value specifiers for parameterized markets (e.g., `setnr=1`, `total=26.5`).","xml":{"attribute":true}}}},"CashOutResponse":{"type":"object","xml":{"name":"cash_out_response","namespace":"http://schemas.sportradar.com/custombet/v1/endpoints"},"required":["cash_out_status"],"properties":{"cash_out_status":{"type":"string","enum":["AVAILABLE","UNAVAILABLE","CLOSED"],"description":"Ticket cashout status. `AVAILABLE` (HTTP 200) indicates cashout is priced. `UNAVAILABLE` (HTTP 400) indicates at least one leg is ineligible. `CLOSED` (HTTP 400) indicates all legs are settled.","xml":{"attribute":true}},"fair_probability":{"type":"number","format":"float","description":"Fair probability of the eligible selections. Present only when `cash_out_status` is AVAILABLE.","xml":{"attribute":true}},"fair_odds":{"type":"number","format":"float","description":"Fair decimal odds of the eligible selections. Present only when `cash_out_status` is AVAILABLE.","xml":{"attribute":true}},"message":{"type":"string","description":"Optional human-readable detail regarding the rejection reason (especially for UNAVAILABLE and CLOSED)."},"cashout_selection":{"type":"array","description":"Markets eligible and included in the cashout price calculation.","xml":{"wrapped":false},"items":{"$ref":"#/components/schemas/SelectionDetail"}},"closed_selection":{"type":"array","description":"Settled or closed markets excluded from cashout pricing.","xml":{"wrapped":false},"items":{"$ref":"#/components/schemas/SelectionDetail"}},"unavailable_selection":{"type":"array","description":"Markets currently ineligible for cashout.","xml":{"wrapped":false},"items":{"$ref":"#/components/schemas/SelectionDetail"}}}},"SelectionDetail":{"type":"object","properties":{"market_id":{"type":"integer","xml":{"attribute":true}},"outcome_id":{"type":"string","xml":{"attribute":true}},"specifiers":{"type":"string","nullable":true,"xml":{"attribute":true}}}}}},"paths":{"/v2/custombet/cashout":{"post":{"summary":"Request Cashout for Bet Builder Ticket","description":"Evaluates ticket selections for cashout eligibility. Returns cashout availability, fair probability, and fair odds (HTTP 200 AVAILABLE). If selections are ineligible or fully settled, rejection details are returned with HTTP 400 (UNAVAILABLE or CLOSED). Public gateway may expose this at `/v1custombet/cashout`.","parameters":[{"name":"x-bookmaker","in":"header","required":false,"schema":{"type":"string"},"description":"Bookmaker identifier. Required for direct custombet-api integration; typically injected by the gateway for public UOF integrators."},{"name":"x-bookmaker-packages","in":"header","required":false,"schema":{"type":"string"},"description":"Bookmaker package entitlements required for calculation/pricing."},{"name":"x-sport-id","in":"header","required":false,"schema":{"type":"string"},"description":"Optional sport URN when match URNs on individual selections are sufficient."}],"requestBody":{"description":"Ticket selections to evaluate for cashout. Closed or settled legs can remain on the ticket.","required":true,"content":{"application/xml":{"schema":{"$ref":"#/components/schemas/CashOutRequest"}},"application/json":{"schema":{"$ref":"#/components/schemas/CashOutRequest"}}}},"responses":{"200":{"description":"Cashout priced successfully. `cash_out_status` is AVAILABLE with `fair_probability` and `fair_odds`. Closed/settled markets may appear under `closed_selection` and are excluded from pricing.","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/CashOutResponse"}},"application/json":{"schema":{"$ref":"#/components/schemas/CashOutResponse"}}}},"400":{"description":"Cashout rejection or malformed payload. When rejected by business rules, returns the `CashOutResponse` shape with `cash_out_status` UNAVAILABLE (ineligible markets) or CLOSED (all legs settled).","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/CashOutResponse"}},"application/json":{"schema":{"$ref":"#/components/schemas/CashOutResponse"}}}},"401":{"description":"Unauthorized. `x-access-token` is missing or invalid."},"403":{"description":"Forbidden. Cashout feature flag is disabled for the bookmaker or sport."},"404":{"description":"No data found for the event or selections."},"409":{"description":"Conflict or service temporarily unavailable (e.g. calculation rules blocked or match disabled)."},"429":{"description":"Too many requests. Rate limit reached."},"500":{"description":"Internal Server Error. Retry request or contact Sportradar support."}}}}}}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sportradar.com/uof/bet-builder/api/cashout/endpoint.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
