Appearance
Admin API — Operations
Everything apart from risk and markets: the sites your key holds, the dictionaries, the shared sports catalogue and match list, site settings (live betting, wallet URL, launch key), cashout, tickets, players and reports, and the translations of the player UI. Risk groups, bet delays, market settings and the combine bonus are on Risk & markets.
All paths are relative to the base URL:
https://operator-api.oddyne.com/integration/v1The examples use three shell variables:
bash
export OPERATOR_API=https://operator-api.oddyne.com/integration/v1
export KEY=sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export SITE=brand-aReminders from the overview
- The site in the path is the only site a call acts on. A
siteIdorsite_idyou also put in the query is ignored (it is replaced by the path's site), so do not send one. - Every
POST,PUTandDELETEneedsX-Actor. Without it the call answers400 integration.actor_required. - Responses come in the envelope
{success, code, data, meta?}. Lists carrymeta.total.
How the numbers come back
- Money (stakes, payouts, GGR, cashout values) comes back as JSON numbers, not strings. Read them into a decimal type and do not do arithmetic on them as floats.
- Ticket ids, and the event, market and outcome ids on a ticket are JSON strings. They are 64-bit and do not fit in a JavaScript number.
- Ids on
/matchesand/catalog/…are JSON numbers. Match ids and especially market ids (a 64-bit hash) can be above 2^53. In JavaScript, parse these responses with a big-int-safe JSON parser, or the ids get rounded to values that match nothing. - Times are RFC 3339 in UTC. Query parameters that take a time (
from,to) want RFC 3339 too (2026-11-19T00:00:00Z). Anything else answers422 validation.bad_body.
Sites
These routes need a valid key but no scope.
GET /sites
Returns your client name, your key's scopes and the sites it holds. Call it when your backend starts up.
bash
curl "$OPERATOR_API/sites" -H "Authorization: Bearer $KEY"json
{
"success": true,
"code": "ok",
"data": {
"client": "yourplatform",
"scopes": ["catalog.view", "reports.view", "sportsbook.configure", "sportsbook.view", "tickets.view"],
"sites": [
{
"siteId": "brand-a",
"tenantId": "acme",
"name": "Brand A",
"defaultCurrency": "EUR",
"currencies": ["EUR", "USD"],
"channels": ["iframe"]
}
]
}
}| Field | Type | Notes |
|---|---|---|
client | string | Your client name, as it shows up in the audit log (integration:<client>:<actor>). |
scopes | string[] | Sorted. See /enums → scopes. |
sites[] | Site | Sorted by siteId. Sites that were deleted after your key was issued are left out. |
GET /sites/{siteId}
Returns one site in the same shape as sites[] above. Sites are never paged.
| Field | Type | Notes |
|---|---|---|
siteId | string | The id you use in every /sites/{siteId}/… path. |
tenantId | string | The operator that owns the site. |
name | string | "" when not set. |
defaultCurrency | string | "" when not set. |
currencies | string[] | [] when none. |
channels | string[] | [] when none. |
Errors: 403 integration.site_not_allowed when your key does not hold the site. You get the same answer for a site that does not exist.
Dictionaries
GET /enums
No scope needed. Returns every code list the other endpoints use. The lists are generated from the same definitions the services run on, so they always match what the API returns.
bash
curl "$OPERATOR_API/enums" -H "Authorization: Bearer $KEY"data is an object of lists. Each entry is {value, code?, label?}:
valueis the wire value.codeis the number for values that are stored or sent as numbers.labelis an English label, where there is one.
ticketStatuses
Use value as the status filter on GET /tickets; tickets return the same value.
code | value | label | Meaning |
|---|---|---|---|
| 0 | PENDING | PENDING | Placed. The stake debit has not been confirmed by your wallet yet. |
| 1 | WALLET_FAILED | WALLET_FAILED | Your wallet refused or never confirmed the stake debit. The bet does not stand. |
| 2 | OPEN | OPEN | Accepted and running. |
| 3 | SETTLING | SETTLING | Being settled. |
| 4 | WON | WON | Settled as a win. |
| 5 | LOST | LOST | Settled as a loss. |
| 6 | CANCELLED | CANCELLED | Cancelled, stake refunded. A provider "rollback cancel" can reopen it (back to OPEN). |
| 7 | ROLLBACK_PENDING | ROLLBACK_PENDING | A settlement is being reversed. |
| 8 | CASHED_OUT | CASHOUT | Sold back by the player (whole-ticket cashout). |
| 9 | VOID | VOID | Every leg was voided, so the stake came back. |
CASHED_OUT vs CASHOUT
For code 8 the value and the label are spelled differently. Filter and compare on value (CASHED_OUT). Filtering on CASHOUT returns nothing.
betTypes
code | value |
|---|---|
| 0 | single |
| 1 | combo |
| 2 | system |
| 3 | betbuilder |
selectionStatuses
These have no labels.
code | value |
|---|---|
| 0 | OPEN |
| 1 | WON |
| 2 | LOST |
| 3 | POSTPONED |
| 4 | CANCELLED |
matchStatuses
/matches returns the status as the number (code), and its status filter takes the number too.
code | value |
|---|---|
| 0 | PREMATCH |
| 1 | LIVE |
| 2 | SUSPENDED |
| 3 | ENDED |
| 4 | SETTLED |
| 5 | ARCHIVED |
| 6 | CANCELLED |
| 7 | POSTPONED |
marketStatuses
code | value |
|---|---|
| 0 | ACTIVE |
| 1 | SUSPENDED |
| 2 | CLOSED |
| 3 | SETTLED |
channels
value | label |
|---|---|
iframe | Online (operator site or app) |
betDelayLevels
These are values only: default, sport, category, tournament, market. See Risk & markets.
riskNodeLevels
These are values only: sport, category, tournament.
riskRejectCodes
These are the reasons the risk gate gives when it refuses a bet. The player API sends the code.
code | value | label |
|---|---|---|
| 50152 | cannot_play_bet | The player may not bet |
| 50111 | below_min_bet_size | Fewer selections than the minimum |
| 50112 | above_max_bet_size | More selections than the maximum |
| 50001 | no_limit_data | No risk limits resolved for the bet |
| 50188 | stake_exceeds_max | Stake above the maximum |
| 50128 | below_min_stake | Stake below the minimum |
| 50110 | payout_exceeds_max | Payout above the maximum |
| 50197 | payout_exceeds_combination | Payout above the combination limit |
scopes
value | label |
|---|---|
catalog.view | Read the sports catalogue and matches |
sportsbook.view | Read site settings, market settings, market groups, bonus templates |
sportsbook.configure | Change site settings, market settings, bonus templates and the launch key |
risk.view | Read risk groups, limits and bet delays |
risk.manage | Change risk groups, limits and bet delays |
cashout.configure | Read and change the cashout policy; read a ticket's offer history |
tickets.view | Read tickets, players and the by-match report |
reports.view | Read reports |
uicopy.configure | Read and change translations |
Catalogue
Scope catalog.view. All sites share one catalogue, so these routes have no siteId in the path. Use them to find the ids that risk limits, bet delays and market settings refer to.
| Method | Path | Extra filter |
|---|---|---|
GET | /catalog/sports | – |
GET | /catalog/categories | sportId: only the categories of that sport |
GET | /catalog/tournaments | categoryId: only the tournaments of that category |
Query parameters, all optional:
| Param | Type | Default | Notes |
|---|---|---|---|
q | string | – | Case-insensitive substring of the name. |
limit | integer | 50 | Capped at 200. A value of 0, a negative value or a value that is not a number gives the default. |
offset | integer | 0 | |
sportId | integer | – | Categories only. Missing, 0 or a value that is not a number lists every category. |
categoryId | integer | – | Tournaments only. Same rule. |
Results are sorted by display order (sortOrder; entries without one come last), then by id.
bash
curl "$OPERATOR_API/catalog/categories?sportId=1&q=eng" -H "Authorization: Bearer $KEY"json
{
"success": true,
"code": "ok",
"data": [
{ "id": 795, "name": "England", "slug": "england", "enabled": true, "featured": true, "sortOrder": 1, "sportId": 1 }
],
"meta": { "total": 1 }
}The shape depends on the level:
| Level | Fields |
|---|---|
| sport | id, name, slug, enabled, featured, sortOrder |
| category | the same + sportId |
| tournament | the same + categoryId |
enabled: falsemeans the platform hides the entry, and everything under it, from players on every site. Disabled entries are listed here.slugis""andsortOrderis0when not set.nameis the default (English) name.- If
offsetis past the last row,meta.totalis0, not the real total. Read the total from the first page.
Errors: 503 db_unavailable when the catalogue database is not reachable.
Frontend library
GET /frontend-versions
Scope catalog.view. The builds of oddyne-frontend-core a platform drawing the sportsbook natively can load, newest first. Pin one; a new version changes nothing on your site until you move the pin. The library's contract (options, callbacks, hooks) is in its LIBRARY.md.
json
{ "success": true, "code": "ok",
"data": [ { "version": "0.1.0-aa8de86",
"remoteEntry": "https://core.oddyne.com/lib/v/0.1.0-aa8de86/remoteEntry.js",
"publishedAt": "2026-11-21T00:35:19Z", "latest": true } ],
"meta": { "total": 1 } }Load remoteEntry as the Module Federation remote named oddyne.
Matches
Scope catalog.view. All sites share these.
GET /matches
| Param | Type | Notes |
|---|---|---|
status | integer | A matchStatuses code: 1 = live, 0 = prematch (the bulletin). A value that is not a number is ignored (no filter, no error). |
sport | string | Case-insensitive substring of the sport's English name (football, tennis). It is not a sport id. |
q | string | Case-insensitive substring of the home team, away team or tournament name, of the match id, or of the provider reference. |
from | RFC 3339 | Kickoff at or after this time (inclusive). |
to | RFC 3339 | Kickoff at or before this time (inclusive). |
limit | integer | Default 50, capped at 200. |
offset | integer | Default 0. |
Matches are sorted by kickoff, newest first, then by id descending. The list includes matches the platform has switched off (platformEnabled: false) and finished ones. It covers the matches the sportsbook holds right now, which is a recent window, not an archive.
bash
curl "$OPERATOR_API/matches?status=0&sport=football&from=2026-11-19T00:00:00Z&to=2026-11-20T00:00:00Z" \
-H "Authorization: Bearer $KEY"json
{
"success": true,
"code": "ok",
"data": [
{
"id": 41893377,
"refId": "sr:match:41893377",
"source": "betradar",
"sportName": "Football",
"categoryName": "England",
"tournamentName": "Premier League",
"homeName": "Arsenal",
"awayName": "Chelsea",
"startTime": "2026-11-19T20:00:00Z",
"status": 0,
"isLive": false,
"mapped": true,
"platformEnabled": true
}
],
"meta": { "total": 214 }
}| Field | Type | Notes |
|---|---|---|
id | integer | Our match id. Use it everywhere. 64-bit (see How the numbers come back). |
refId | string | The provider's reference. "" when there is none. |
source | string | The provider the match is mapped from. "" when it is not mapped. |
mapped | boolean | Whether a provider mapping exists. |
sportName, categoryName, tournamentName, homeName, awayName | string | Default English names. |
startTime | string | Kickoff time. A match without a kickoff time shows 0001-01-01T00:00:00Z. |
status | integer | A matchStatuses code. |
isLive | boolean | status == 1. |
platformEnabled | boolean | false = hidden from players on every site. |
Errors: 422 validation.bad_body when from or to is not RFC 3339 · 503 db_unavailable.
GET /matches/{id}
Returns the match plus markets[], with every outcome and its raw price.
Raw odds, not your prices
The odd on this endpoint is the price before your site's margin. It is not what your players see. For the prices a site actually offers, read the player-facing endpoints.
json
{
"success": true,
"code": "ok",
"data": {
"id": 41893377,
"refId": "sr:match:41893377",
"source": "betradar",
"sportName": "Football",
"categoryName": "England",
"tournamentName": "Premier League",
"homeName": "Arsenal",
"awayName": "Chelsea",
"startTime": "2026-11-19T20:00:00Z",
"status": 0,
"isLive": false,
"mapped": true,
"platformEnabled": true,
"markets": [
{
"marketId": -8775457417276844928,
"marketName": "1x2",
"outcomes": [
{ "outcomeId": 1, "outcomeName": "Arsenal", "odd": 2.05 },
{ "outcomeId": 2, "outcomeName": "draw", "odd": 3.6 },
{ "outcomeId": 3, "outcomeName": "Chelsea", "odd": 3.4 }
]
}
]
}
}marketIdis a 64-bit hash and is often bigger than 2^53. Parse it as a big integer.- Market and outcome names are the default English names, with the line filled in (
Total 2.5,1st set - odd/even games). - A market with no outcomes has
outcomes: []. A match with no markets hasmarkets: [].
Errors: 422 validation.invalid_id when the id is not a number · 404 not_found · 503 db_unavailable.
Player-facing data
The Admin API manages the sportsbook. It does not serve the board your players see. Your frontend reads the live list, the bulletin and the priced odds (your site's margins applied) from the public player API:
https://api.oddyne.com/api/…- No key. These are public read endpoints.
- The site comes from
?site_id=<siteId>. The server also reads anX-Site-IDheader, but the edge cache keys on the URL only. Two sites asking for the same URL with different headers can get each other's response. Always put the site in the query. - The language comes from
?lang=(otherwiseAccept-Language, otherwiseen). - The envelope is different from the Admin API's:
{"success": true, "code": 0, "message": "Success", "data": …}.
| Endpoint | What it returns |
|---|---|
GET /api/GetLiveList | Live and suspended matches (sportId, limit) |
GET /api/GetEventList | The prematch bulletin across every tournament (sportId, interval, timezoneOffset, limit) |
GET /api/GetEventDetail | One match with its full board, grouped into tabs (matchId) |
GET /api/GetSportMenus | Sport → category → tournament tree with prematch counts |
GET /api/GetTournamentEvents | One tournament's prematch matches (tournamentId, …) |
GET /api/GetCategoryEvents | One category's prematch matches (categoryId, sportId, …) |
GET /api/GetResultsSportMenu, GET /api/GetResultsTournamentEvents, GET /api/GetResultsAllCompetitions | Finished matches and their results |
GET /api/GetUITranslations | The player UI's texts, with your site's translations applied (lang) |
GET /api/GetLocalization | Market and outcome names from the feed (lang) |
The full reference for these endpoints is in API-FRONTEND.md in the sportsbook repository (in Turkish), in these sections: “0. Her istekte geçerli” (site, language, envelope), “1. Boot” (GetLocalization, GetUITranslations), “2. Navigasyon” (GetSportMenus), “3. Maç listeleri” (lists and the match object), “3.3 Sonuçlar” (results) and “4. Detay uçları” (GetEventDetail).
Site settings
These routes act on the site itself. The site in the path is the one that is read or changed.
| Method | Path | Scope |
|---|---|---|
GET | /sites/{siteId}/live-bet | sportsbook.view |
PUT | /sites/{siteId}/live-bet | sportsbook.configure |
GET | /sites/{siteId}/wallet-url | sportsbook.view |
PUT | /sites/{siteId}/wallet-url | sportsbook.configure |
POST | /sites/{siteId}/wallet-test | sportsbook.configure |
GET | /sites/{siteId}/api-key | sportsbook.view |
POST | /sites/{siteId}/api-key | sportsbook.configure |
Every write is recorded in the audit log together with your X-Actor.
Live betting
GET /sites/{siteId}/live-bet → {"liveBetEnabled": true}
PUT /sites/{siteId}/live-bet turns the site's live book (bets on matches already in play) on or off.
bash
curl -X PUT "$OPERATOR_API/sites/$SITE/live-bet" \
-H "Authorization: Bearer $KEY" -H "X-Actor: jane@yourplatform" \
-H "Content-Type: application/json" \
-d '{ "liveBetEnabled": false }'| Field | Type | Required | Notes |
|---|---|---|---|
liveBetEnabled | boolean | Yes | You must send it. A body without it answers 422, because a missing boolean would otherwise read as false and switch the live book off. |
The response echoes {"liveBetEnabled": false}.
This switch refuses bets
With liveBetEnabled: false, no player on the site can bet on live matches. Per-player settings can only take live betting away, never give it back. The change takes effect within the bet-acceptance config cache window (seconds), not instantly.
Errors: 400 validation.bad_body (malformed JSON or unknown field) · 422 validation.bad_body (liveBetEnabled missing).
Wallet URL
This is the base URL of your seamless wallet. The sportsbook calls <walletUrl>/bet, /win, /rollback and the other wallet callbacks on it.
GET /sites/{siteId}/wallet-url → {"walletUrl": "https://wallet.yourplatform.com/sportsbook", "settleLost": false} (walletUrl "" when not set)
PUT /sites/{siteId}/wallet-url
bash
curl -X PUT "$OPERATOR_API/sites/$SITE/wallet-url" \
-H "Authorization: Bearer $KEY" -H "X-Actor: jane@yourplatform" \
-H "Content-Type: application/json" \
-d '{ "walletUrl": "https://wallet.yourplatform.com/sportsbook" }'| Field | Type | Required | Notes |
|---|---|---|---|
walletUrl | string | No* | An absolute http:// or https:// URL with a host. "" clears it. Surrounding spaces are trimmed. |
settleLost | boolean | No* | true: a settlement that pays nothing (lost) is also sent to the wallet, as a zero-amount call (callbacks). Default false. |
* At least one of the two; a field you leave out is unchanged. The response is the stored {"walletUrl": …, "settleLost": …}.
This redirects real money
Every stake debit, win credit and rollback for the site goes to this URL. A change is picked up within the wallet dispatcher's URL cache window. Run a wallet test after every change.
Errors: 400 validation.bad_body (malformed body) · 422 validation.bad_body (not an absolute http(s) URL, or neither field given).
Wallet test
POST /sites/{siteId}/wallet-test calls the site's saved wallet URL with the same sequence of callbacks the money path uses, and reports which ones passed.
This moves real money on your ledger
The test debits and credits the test player you name, on your wallet. Every debit is rolled back and every credit is rolled back, so a correct wallet ends at zero (net-zero). If a rollback fails, money stays moved: the report shows it in ledgerDelta and ledgerNote. Use a test account you own.
bash
curl -X POST "$OPERATOR_API/sites/$SITE/wallet-test" \
-H "Authorization: Bearer $KEY" -H "X-Actor: jane@yourplatform" \
-H "Content-Type: application/json" \
--max-time 90 \
-d '{ "userId": "qa-wallet-01", "currency": "EUR", "amount": 1 }'| Field | Type | Required | Notes |
|---|---|---|---|
userId | string | Yes | A player id on your wallet. Money moves on this account. |
currency | string | Yes | Upper-cased for you. |
amount | number | Yes | More than 0 and at most 100. |
The URL is always the saved one. You cannot pass a URL, so save it first with PUT /wallet-url.
The test makes up to 9 calls, one after another, on two test tickets:
| # | Step | Ticket | Call |
|---|---|---|---|
| 1 | bet | 1 | /bet — stake |
| 2 | bet_replay | 1 | the same bet again |
| 3 | bet_rollback | 1 | /rollback refund of the stake |
| 4 | bet_rollback_replay | 1 | the same refund again |
| 5 | win_bet | 2 | /bet — stake |
| 6 | win | 2 | /win |
| 7 | win_replay | 2 | the same win again |
| 8 | win_rollback | 2 | /rollback win_reversal (the ticket reopens) |
| 9 | win_bet_refund | 2 | /rollback refund of ticket 2's stake |
The win is paid on its own ticket: a wallet is right to refuse a win on a ticket it has already refunded. The two tickets together leave the balance where it started.
The _replay steps check that your wallet is idempotent: a repeated call must return the same transaction_id. A step whose earlier step failed is skipped, so a debit that never landed is never reversed, and ticket 2's stake is not refunded while its win still stands. Each call has the production wallet timeout (5 s by default), so a test can take about 50 s. Set your HTTP client's timeout to match.
The response is 200 even when steps fail. Read the verdicts.
json
{
"success": true,
"code": "ok",
"data": {
"runId": "a1b2c3d4e5f6",
"baseUrl": "https://wallet.yourplatform.com/sportsbook",
"currency": "EUR",
"passed": 6, "warned": 1, "failed": 0, "skipped": 0,
"ledgerDelta": 0,
"ledgerNote": "",
"steps": [
{
"key": "bet",
"path": "/bet",
"verdict": "pass",
"detail": "",
"httpStatus": 200,
"latencyMs": 84,
"walletStatus": "ok",
"transactionId": "w-778812",
"errorCode": "",
"errorMessage": "",
"transactionRef": "oddyne-probe:a1b2c3d4e5f6:bet",
"request": { "transaction_ref": "oddyne-probe:a1b2c3d4e5f6:bet", "operator_id": "brand-a", "user_id": "qa-wallet-01", "stake": 1, "currency": "EUR" }
}
]
}
}| Field | Notes |
|---|---|
steps[].verdict | pass · warn (the call succeeded, but something could not be proven, e.g. no transaction_id to compare on replay) · fail · skipped |
steps[].detail | An English sentence that explains the verdict. |
steps[].request | The exact JSON body that was sent. You can replay it with curl. |
ledgerDelta | What the run left on your ledger. 0 is the only correct result. |
ledgerNote | Explains a non-zero delta, and reversals that did not land. |
Only the fields of the wallet contract are reported back. Your wallet's raw response body and headers are never echoed.
Errors: 400 validation.bad_body (malformed body) · 422 validation.bad_body (no wallet URL saved, userId or currency missing, amount out of range; the message says which) · 503 internal_error (wallet testing is not configured on this deployment).
Player launch key
This key is what your backend sends to POST /api/launch to open a player session. It is not your Admin API key.
GET /sites/{siteId}/api-key → {"hasApiKey": true}. The key itself and its hash are never returned.
POST /sites/{siteId}/api-key generates a new key and returns it once:
bash
curl -X POST "$OPERATOR_API/sites/$SITE/api-key" \
-H "Authorization: Bearer $KEY" -H "X-Actor: jane@yourplatform"json
{ "success": true, "code": "ok", "data": { "apiKey": "sk_3q2-Vb7…" } }Rotating replaces the live key immediately
Only a hash is stored, so this response is the only time you see the key. Store it before you do anything else. The previous key stops working at once, so every launch your backend makes with it fails until it switches to the new key. Plan the rotation: save the new key in your backend's configuration in the same step.
The request has no body.
Cashout
Status: settings stored, not yet applied
The policy below is stored and validated, but the cashout money path does not read it yet: cashout on/off per site still comes from the site's flags, and every offer uses the platform coefficient (0.95). Build the screen against this contract; we will announce when the values take effect. GET …/tickets/{id}/offers answers 503 until the cashout engine is connected to this service.
| Method | Path | Scope |
|---|---|---|
GET | /sites/{siteId}/cashout | cashout.configure |
PUT | /sites/{siteId}/cashout | cashout.configure |
GET | /sites/{siteId}/tickets/{id}/offers | cashout.configure |
Two levels: the platform band and your policy
Oddyne sets the platform level:
- the default coefficient;
- the band (
coefficientMintocoefficientMax) that a site's own coefficient must stay in; - a platform-wide kill switch.
You set the site policy: whether cashout is offered at all, whether partial and automatic cashout are offered, the minimum partial payout, the live delay, and optionally your own coefficient within the band.
The coefficient is the share of a ticket's current fair value that a cashout pays. The fair value is the cost of buying back the ticket's outstanding return at today's odds: stake × originalOdds / currentOdds for each open leg. With 0.95 the house keeps 5% on every buy-back. Legs that are already decided are owed in full and are not discounted. A higher coefficient pays the player more.
coefficient: nullinherits the platform default, including later changes to it. That is different from typing today's default as a number.- A coefficient outside the band is clamped to the nearest edge. It is not refused. The response shows the value that was stored, so compare it with what you sent.
- Coefficients are stored with 4 decimal places.
- The platform kill switch wins: with
platformEnabled: false, cashout is off on every site, whateverenabledsays.
GET /sites/{siteId}/cashout
json
{
"success": true,
"code": "ok",
"data": {
"siteId": "brand-a",
"enabled": true,
"partialEnabled": true,
"autoEnabled": true,
"coefficient": null,
"minPartialValue": 0,
"liveDelaySeconds": 0,
"platformCoefficient": 0.95,
"coefficientMin": 0.9,
"coefficientMax": 0.98,
"platformEnabled": true
}
}A site that never saved a policy gets the values in force: everything enabled, coefficient: null, and zeros.
| Field | Type | Notes |
|---|---|---|
enabled | boolean | Site kill switch for all cashout (whole-ticket, partial, automatic). |
partialEnabled | boolean | Partial cashout, under enabled. |
autoEnabled | boolean | Automatic (threshold) cashout, under enabled. |
coefficient | number | null | Your coefficient. null = inherit platformCoefficient. |
minPartialValue | number | A partial cashout that would pay less than this is refused. 0 = no minimum. |
liveDelaySeconds | integer | The live delay, in seconds, for cashout on live tickets. 0 = none. |
platformCoefficient | number | Read-only. The platform default. |
coefficientMin, coefficientMax | number | Read-only. The band. |
platformEnabled | boolean | Read-only. false = cashout is off everywhere. |
PUT /sites/{siteId}/cashout
This replaces the whole policy. It is not a patch, so send every field every time. A boolean you leave out is read as false and a number as 0.
bash
curl -X PUT "$OPERATOR_API/sites/$SITE/cashout" \
-H "Authorization: Bearer $KEY" -H "X-Actor: jane@yourplatform" \
-H "Content-Type: application/json" \
-d '{ "enabled": true, "partialEnabled": true, "autoEnabled": false,
"coefficient": 0.97, "minPartialValue": 2, "liveDelaySeconds": 5 }'| Field | Type | Rule |
|---|---|---|
enabled | boolean | |
partialEnabled | boolean | |
autoEnabled | boolean | |
coefficient | number | null | null = inherit. Otherwise in (0, 1] (else 400), then clamped into the band. |
minPartialValue | number | >= 0 |
liveDelaySeconds | integer | >= 0 |
The body takes only these six fields. You cannot send a GET response back as it is: its read-only fields (siteId, platform…, coefficientMin/Max) are unknown fields here and answer 400. The response is the same as GET and shows what was stored.
A change applies to the next offer. Cashouts already paid do not change.
Errors: 400 validation.bad_body (malformed body, unknown field, a negative value, or a coefficient outside (0, 1]).
GET /sites/{siteId}/tickets/{id}/offers
Returns a ticket's cashout offer history: the same rows the player sees.
| Param | Type | Default | Notes |
|---|---|---|---|
page | integer | 1 | 1-based. |
limit | integer | 20 | Capped at 100. |
json
{
"success": true,
"code": "ok",
"data": [
{ "time": "2026-11-19T20:41:07Z", "value": 18.42, "available": true, "reason": "" }
],
"meta": { "total": 37 }
}This endpoint pages with page, not offset.
Errors: 400 validation.invalid_id (the id is not a positive number) · 502 internal_error (the cashout engine could not be read) · 503 internal_error (the cashout engine is not connected to this deployment). Treat 503 as "history not available", not as "no offers".
Tickets
Scope tickets.view. Read-only: tickets cannot be changed through any API. The only way to settle a ticket is the settlement pipeline.
| Method | Path |
|---|---|
GET | /sites/{siteId}/tickets |
GET | /sites/{siteId}/tickets/{id}/selections |
GET | /sites/{siteId}/tickets/{id}/wallet-events |
GET /sites/{siteId}/tickets
Returns the site's tickets, newest first (by placement time).
| Param | Type | Notes |
|---|---|---|
status | string | One ticketStatuses value, compared case-insensitively. An unknown value returns an empty list, not an error. |
player | string | Exact player id (your userId). |
eventId | string | Our match id: tickets with at least one leg on that match. |
from | RFC 3339 | Placed at or after this time (inclusive). |
to | RFC 3339 | Placed before this time (exclusive). |
limit | integer | Default 50, maximum 200. A value above 200 falls back to 50; it is not capped to 200. |
offset | integer | Default 0. A negative value or a value that is not a number gives 0. Ignored with cursor. |
cursor | string | Continue after the last ticket of the previous page: send that page's meta.nextCursor. Unlike offset, a cursor page does not shift when tickets are placed meanwhile. meta.nextCursor is absent on the last page. A value this API did not issue answers 400 validation.bad_cursor. |
bash
curl "$OPERATOR_API/sites/$SITE/tickets?status=OPEN&from=2026-11-19T00:00:00Z&limit=100" \
-H "Authorization: Bearer $KEY"json
{
"success": true,
"code": "ok",
"data": [
{
"id": "7391827364512301056",
"siteId": "brand-a",
"player": "u-102938",
"placedAt": "2026-11-19T18:02:11Z",
"betType": "combo",
"stake": 10,
"currency": "EUR",
"status": "WON",
"totalOdds": 4.51,
"potentialWin": 45.1,
"payout": 45.1,
"settledAt": "2026-11-19T21:55:40Z",
"settlementSource": "auto",
"systemSize": 0,
"shapes": [2],
"selections": [
{ "eventId": "41893377", "marketId": "-8775457417276844928", "outcomeId": "1", "odds": 2.05 },
{ "eventId": "41893412", "marketId": "4410392881723119004", "outcomeId": "12", "odds": 2.2 }
]
}
],
"meta": { "total": 1 }
}| Field | Type | Notes |
|---|---|---|
id | string | Ticket id (64-bit, a string). |
player | string | Your player id. |
placedAt | string | RFC 3339 UTC. |
betType | string | betTypes value. |
stake | number | Per bet. A system ticket places several bets. |
status | string | ticketStatuses value. |
totalOdds, potentialWin | number | 0 when not stored. |
payout | number | What the ticket returned. Absent while the ticket is open. WON → potentialWin; LOST → 0; CASHED_OUT → the cashout amount; VOID → the stake for a one-bet ticket, absent for a ticket of several bets. |
settledAt | string | Absent until settled. |
settlementSource, settledBy, settlementReason | string | Who or what settled it (settlementSource e.g. auto, manual, rollback, cashout, player, operator). Absent when empty. |
limitApplied | bool | The bet's payout was cut to the payout limit when it was accepted (the site accepts a higher payout by lowering it instead of refusing the bet). |
limits | object | What the limits were when the bet was accepted — they depend on the risk group, the matches and the open exposure, so they are recorded, not re-derived: risk_group_id, min_stake, max_stake (the remaining cap on the tightest match), ticket_max_stake, max_payout (the payout headroom), max_payout_ceiling, min_selections, max_selections, allow_higher_payout, and payout_clamped with requested_payout (what the bet would have paid). Unset limits are absent. Absent on bets accepted before 2026-11-27. |
systemSize | integer | k of a k/n system. 0 otherwise. |
shapes | integer[] | The combination sizes the ticket plays (1 = singles, n = accumulator, k = k/n system). One ticket can play several. Empty on older tickets. |
selections[] | object | eventId, marketId, outcomeId (strings) and odds. |
The list covers every ticket of the site.
Errors: 422 validation.bad_body (from or to not RFC 3339) · 502 internal_error · 503 db_unavailable (the ticket store is not configured).
GET /sites/{siteId}/tickets/{id}/selections
Returns a ticket's legs, with names filled in from the match data:
json
{
"success": true,
"code": "ok",
"data": [
{
"eventId": "41893377",
"marketId": "-8775457417276844928",
"outcomeId": "1",
"odds": 2.05,
"match": "Arsenal - Chelsea",
"tournament": "Premier League",
"startTime": "2026-11-19T20:00:00Z",
"market": "1x2",
"outcome": "Arsenal"
}
],
"meta": { "total": 1 }
}- The names (
match,tournament,startTime,market,outcome) are absent when they cannot be resolved, for example for a match that has left the sportsbook's recent window. The leg is still returned. - The per-leg
statusfield is not filled in on this endpoint at the moment. Use the ticket'sstatusfor the outcome.
GET /sites/{siteId}/tickets/{id}/wallet-events
Returns the wallet calls made for the ticket, oldest first: what was asked of your wallet, how many times, and how it ended.
json
{
"success": true,
"code": "ok",
"data": [
{ "id": "88123", "type": "wallet_bet", "status": "DONE", "attempts": 0, "createdAt": "2026-11-19T18:02:11Z",
"amount": 10, "currency": "EUR", "transactionRef": "bet:7391827364512301056" },
{ "id": "88941", "type": "wallet_win", "status": "DONE", "attempts": 1, "createdAt": "2026-11-19T21:55:40Z",
"amount": 45.1, "currency": "EUR", "transactionRef": "win:7391827364512301056" }
],
"meta": { "total": 2 }
}| Field | Notes |
|---|---|
type | The internal kind: wallet_bet, wallet_win, wallet_refund, wallet_rollback, wallet_cashout, wallet_uncancel, wallet_resettle (a correction), wallet_settle (the zero win for a lost ticket; with Settle notice for lost tickets off it is marked DONE without a call) |
callType, direction | The wallet v2 call the row is sent as — bet, win, cashout, cashout_partial, refund, win_reversal, uncancel, resettle_adjust — and debit or credit. A correction's direction is its own. |
status | PENDING · PROCESSING · DONE · FAILED |
attempts | Retries so far. |
amount, currency, transactionRef | From the call's payload. Absent when empty or zero. |
lastError | The last failure, when there is one. |
No HTTP status or latency is stored, so none is returned.
Errors for both {id} routes: 400 validation.invalid_id (the id is not all digits) · 404 not_found (no such ticket on this site) · 502 internal_error.
GET /sites/{siteId}/tickets/{id}/history
Every settlement, correction, cancel and cash-out of the ticket, oldest first, with who caused it and why. Scope tickets.view.
json
{
"success": true,
"code": "ok",
"data": [
{ "at": "2026-11-19T21:55:40Z", "kind": "settlement", "ticketStatus": "WON", "eventId": "147683", "initiator": "feed" },
{ "at": "2026-11-19T22:30:12Z", "kind": "reopen", "ticketStatus": "OPEN", "eventId": "147683", "initiator": "feed", "reason": "score corrected" },
{ "at": "2026-11-19T22:41:00Z", "kind": "correction", "ticketStatus": "LOST", "eventId": "147683", "initiator": "feed" },
{ "at": "2026-11-20T09:14:03Z", "kind": "cancel", "ticketStatus": "CANCELLED", "initiator": "operator",
"actor": "integration:ludesta:alice", "reason": "customer complaint" }
],
"meta": { "total": 4 }
}| Field | Notes |
|---|---|
kind | settlement (a result applied) · reopen (a settled ticket reopened for a correction) · correction (the corrected result) · cancel · uncancel (the provider undid its cancel) · cashout |
ticketStatus | The ticket's status after the step. Absent on a partial cash-out. |
eventId | The match the step was about; absent for a whole-ticket step (a cancel by an operator or the player, a cash-out). |
initiator | feed (the provider) · player · operator · platform (Oddyne staff) |
actor | Who, when a person did it: your X-Actor-based actor, or the player. Oddyne staff are shown as Oddyne. |
reason | When one was given. |
amount, partial | On a cash-out. |
Steps recorded before 2026-11-27 carry no reason and no operator actor; their initiator is inferred.
POST /sites/{siteId}/tickets/{id}/cancel
Cancels a player's bet. Scope tickets.cancel (operator permission of the same name, held by the built-in Owner, Admin and Finance roles). Send X-Actor, like every write.
json
{ "reason": "duplicate bet" }reason is required (at most 500 characters). It is stored on the ticket and sent to your wallet with the money movements.
| Ticket | What happens |
|---|---|
OPEN, SETTLING | The stake is refunded: refund (refund:<ticket>, original bet:<ticket>). |
WON, VOID | The payout is reversed first — win_reversal (rollback:<ticket>, original win:<ticket>), or a resettle_adjust debit for a ticket corrected before — then the stake is refunded. |
LOST | The stake is refunded. |
Every call carries ticket_status: "cancelled", initiator: "operator" and your reason. The ticket ends CANCELLED with settlementSource: "operator", settledBy the actor (integration:<client>:<X-Actor>) and settlementReason. A provider's later "undo cancel" never re-opens it.
json
{
"success": true,
"code": "ok",
"data": {
"ticketId": "7391827364512301056", "status": "cancelled", "repeat": false,
"refunded": "10.00", "reversed": "0.00", "currency": "EUR",
"cancelledBy": "integration:ludesta:alice", "cancelReason": "duplicate bet",
"cancelledAt": "2026-11-26T09:14:03Z"
}
}Retrying is safe. A cancel of a ticket an operator already cancelled answers 200 with repeat: true and the first cancel's actor, reason and time, and moves no money. No idempotency key is needed: the ticket's state is the key.
Errors: 409 with a code saying why the ticket cannot be cancelled — ticket.cashed_out · ticket.partially_cashed_out (a partial cash-out was paid) · ticket.already_cancelled (cancelled by the provider or the player) · ticket.not_placed (the stake was never taken) · ticket.correction_in_progress. 404 not_found (no such ticket on this site) · 422 validation.missing_reason · 422 validation.reason_too_long · 400 validation.invalid_id · 502 internal_error (not completed; retry).
Players & reports
These are aggregates of the site's ticket book.
| Method | Path | Scope |
|---|---|---|
GET | /sites/{siteId}/players | tickets.view |
GET | /sites/{siteId}/reports | reports.view |
GET | /sites/{siteId}/reports/daily | reports.view |
GET | /sites/{siteId}/reports/by-match | tickets.view |
GET | /sites/{siteId}/reports/by-sport | reports.view |
GET | /sites/{siteId}/reports/by-bet-type | reports.view |
Window. Every route takes optional from (inclusive) and to (exclusive), both RFC 3339 and both on placement time. An invalid value answers 422 validation.bad_body. Leave both out for all time.
What counts. Tickets in PENDING, WALLET_FAILED or CANCELLED are left out: their stake was never taken, or was given back.
- payout = what the ticket paid when it settled (
potentialWinforWON, the stake forVOID,0forLOST) plus every cash-out paid on it — a full cash-out's amount, and the partial cash-outs before the ticket settled. - ggr = stake − payout.
- margin = ggr / stake × 100, as a percentage,
0when stake is0. - open counts
OPEN,SETTLINGandROLLBACK_PENDING.
Every figure is per currency. There is no FX conversion.
GET /sites/{siteId}/players
This is turnover by player. It is a report, not a player registry: the sportsbook knows a player's id and bets, nothing more.
| Param | Notes |
|---|---|
q | Case-insensitive substring of the player id. % and _ act as wildcards. |
limit | Default 50, maximum 200 (above 200 falls back to 50). |
offset | Default 0. |
There is one row per (player, currency), sorted by stake, heaviest first:
json
{ "player": "u-102938", "siteId": "brand-a", "currency": "EUR", "tickets": 42, "open": 3,
"stake": 610, "payout": 512.4, "ggr": 97.6, "margin": 16, "avgStake": 14.52,
"lastBetAt": "2026-11-19T18:02:11Z" }GET /sites/{siteId}/reports
There is one row per currency, each with a per-site breakdown (here always just your site). meta.total is the number of rows.
json
{
"success": true,
"code": "ok",
"data": [
{
"currency": "EUR",
"stake": 18250, "payout": 16120.5, "ggr": 2129.5, "margin": 11.67,
"tickets": 1312, "open": 74,
"sites": [
{ "siteId": "brand-a", "stake": 18250, "payout": 16120.5, "ggr": 2129.5, "margin": 11.67, "tickets": 1312, "open": 74 }
]
}
],
"meta": { "total": 1 }
}A currency with no ticket in the window is left out.
GET /sites/{siteId}/reports/daily
The same figures, in buckets of one UTC day. Optional currency filters to one currency; send it when the site trades more than one.
json
{ "date": "2026-11-19", "stake": 1220, "payout": 1015, "ggr": 205, "tickets": 88, "open": 12 }Days with no tickets are left out, not returned as zero rows.
GET /sites/{siteId}/reports/by-match
This is exposure per match, heaviest stake first. Paged with limit (default 50, maximum 200, above 200 falls back to 50) and offset. meta.total is the number of (match, currency) groups.
json
{ "eventId": "41893377", "siteId": "brand-a", "currency": "EUR", "tickets": 57,
"stake": 940, "payout": 0, "profit": 940, "open": 57, "lastBetAt": "2026-11-19T19:58:02Z" }profit is stake − payout. Stake overlaps between matches: a multi-leg ticket counts its whole stake on every match it touches, so the rows add up to more than turnover. Use /reports for totals.
GET /sites/{siteId}/reports/by-sport
This is turnover per sport, heaviest first.
- Optional
currency. limitdefaults to 10, maximum 200 (above 200 falls back to 10). There is nooffset.meta.totalis the number of rows returned.
json
{ "sportId": "1", "sport": "Football", "currency": "EUR", "tickets": 902, "open": 51,
"stake": 13400, "payout": 11820, "ggr": 1580, "margin": 11.79 }sportis absent when the name cannot be resolved.- Stake overlaps between sports, in the same way as between matches.
- Tickets placed before legs recorded their sport are not counted.
GET /sites/{siteId}/reports/by-bet-type
This is the split by bet type, sorted by stake. Optional currency.
json
{ "betType": "combo", "currency": "EUR", "tickets": 401, "stake": 6100, "payout": 4800, "ggr": 1300 }A ticket has exactly one type, so these rows do add up to the currency total.
Errors for all report routes: 422 validation.bad_body (bad from/to) · 502 internal_error · 503 db_unavailable.
Translations
Scope uicopy.configure. These are your site's overrides of the player UI texts: the buttons, tabs, empty states and bet-rejection sentences. They are not the market and outcome names, which come from the feed.
Oddyne owns the catalogue, meaning the keys and their default wording per language. A site can override a key that already exists in a language, and revert the override to go back to the default. It cannot add new keys.
| Method | Path |
|---|---|
GET | /sites/{siteId}/ui-copy |
GET | /sites/{siteId}/ui-copy/languages |
PUT | /sites/{siteId}/ui-copy/{key}/{lang} |
DELETE | /sites/{siteId}/ui-copy/{key}/{lang} |
Up to ten minutes to reach players
The player UI texts are cached for 5 minutes in the sportsbook API and 5 minutes at the edge. A saved change can take up to 10 minutes to show on screen. Tell your editors so they do not save the same change twice.
GET /sites/{siteId}/ui-copy/languages
Returns the languages the catalogue has wording for, sorted. This is not a list of the site's configured languages: a language with no catalogue wording has nothing to override.
json
{ "success": true, "code": "ok", "data": ["de", "en", "tr"] }GET /sites/{siteId}/ui-copy
Returns the catalogue with the site's overrides joined on. There is one row per (key, language), sorted by key and then language.
| Param | Notes |
|---|---|
lang | Exact language code. |
prefix | Literal key prefix, e.g. betslip.. |
q | Case-insensitive substring of the key, the default wording or the override. |
onlyOverridden | true = only the rows this site has changed. |
limit, offset | No default and no cap. Without limit you get every row (several hundred per language), so page it. |
bash
curl "$OPERATOR_API/sites/$SITE/ui-copy?lang=en&prefix=betslip.&limit=50" -H "Authorization: Bearer $KEY"json
{
"success": true,
"code": "ok",
"data": [
{
"key": "betslip.max_stake",
"lang": "en",
"default": "The most you can stake is {{limit}}",
"override": "Maximum stake: {{limit}}",
"effective": "Maximum stake: {{limit}}",
"vars": ["limit"],
"updatedAt": "2026-11-18T09:12:44Z",
"updatedBy": "integration:yourplatform:jane@yourplatform"
},
{
"key": "betslip.place_bet",
"lang": "en",
"default": "Place bet",
"effective": "Place bet",
"vars": []
}
],
"meta": { "total": 61 }
}| Field | Notes |
|---|---|
default | Oddyne's wording. |
override | The site's wording. Absent when there is none. |
effective | What players see: override if there is one, else default. |
vars | The placeholders the key promises. Every override must contain exactly these. |
updatedAt, updatedBy | Of the override. Absent when there is none. |
PUT /sites/{siteId}/ui-copy/{key}/{lang}
Sets the site's wording for one key in one language. {key} is taken as it is, including its dots (betslip.max_stake).
bash
curl -X PUT "$OPERATOR_API/sites/$SITE/ui-copy/betslip.max_stake/en" \
-H "Authorization: Bearer $KEY" -H "X-Actor: jane@yourplatform" \
-H "Content-Type: application/json" \
-d '{ "text": "Maximum stake: {{limit}}" }'| Field | Type | Rule |
|---|---|---|
text | string | Required and not blank once trimmed. To go back to the default, use DELETE. Do not send an empty string. |
Placeholder rule. Placeholders are written , where the name is letters, digits and _. The text must contain every placeholder in the key's vars and no other placeholder. A missing one never shows the player its value. An extra one is shown to the player literally, braces included. A text that breaks the rule is refused, and the message names the placeholders at fault.
The response is the row, with updatedBy set to integration:<client>:<actor>. updatedAt is not included in this response; read it back with GET.
Errors:
404 not_found: the key does not exist in the catalogue for this language.422 validation.bad_body: malformed body or unknown field. On this endpoint that is422, not400.422 validation.bad_body: blank text, or placeholders that do not match.503 db_unavailable.
DELETE /sites/{siteId}/ui-copy/{key}/{lang}
Reverts the key to Oddyne's default wording. This never blanks the text.
bash
curl -X DELETE "$OPERATOR_API/sites/$SITE/ui-copy/betslip.max_stake/en" \
-H "Authorization: Bearer $KEY" -H "X-Actor: jane@yourplatform"The answer is 204 No Content with an empty body, with no envelope.
Errors: 404 not_found (this site does not override that key in that language).