Skip to content

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/v1

The examples use three shell variables:

bash
export OPERATOR_API=https://operator-api.oddyne.com/integration/v1
export KEY=sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export SITE=brand-a

Reminders from the overview

  • The site in the path is the only site a call acts on. A siteId or site_id you also put in the query is ignored (it is replaced by the path's site), so do not send one.
  • Every POST, PUT and DELETE needs X-Actor. Without it the call answers 400 integration.actor_required.
  • Responses come in the envelope {success, code, data, meta?}. Lists carry meta.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 /matches and /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 answers 422 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"]
      }
    ]
  }
}
FieldTypeNotes
clientstringYour client name, as it shows up in the audit log (integration:<client>:<actor>).
scopesstring[]Sorted. See /enums → scopes.
sites[]SiteSorted 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.

FieldTypeNotes
siteIdstringThe id you use in every /sites/{siteId}/… path.
tenantIdstringThe operator that owns the site.
namestring"" when not set.
defaultCurrencystring"" when not set.
currenciesstring[][] when none.
channelsstring[][] 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?}:

  • value is the wire value.
  • code is the number for values that are stored or sent as numbers.
  • label is an English label, where there is one.

ticketStatuses ​

Use value as the status filter on GET /tickets; tickets return the same value.

codevaluelabelMeaning
0PENDINGPENDINGPlaced. The stake debit has not been confirmed by your wallet yet.
1WALLET_FAILEDWALLET_FAILEDYour wallet refused or never confirmed the stake debit. The bet does not stand.
2OPENOPENAccepted and running.
3SETTLINGSETTLINGBeing settled.
4WONWONSettled as a win.
5LOSTLOSTSettled as a loss.
6CANCELLEDCANCELLEDCancelled, stake refunded. A provider "rollback cancel" can reopen it (back to OPEN).
7ROLLBACK_PENDINGROLLBACK_PENDINGA settlement is being reversed.
8CASHED_OUTCASHOUTSold back by the player (whole-ticket cashout).
9VOIDVOIDEvery 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 ​

codevalue
0single
1combo
2system
3betbuilder

selectionStatuses ​

These have no labels.

codevalue
0OPEN
1WON
2LOST
3POSTPONED
4CANCELLED

matchStatuses ​

/matches returns the status as the number (code), and its status filter takes the number too.

codevalue
0PREMATCH
1LIVE
2SUSPENDED
3ENDED
4SETTLED
5ARCHIVED
6CANCELLED
7POSTPONED

marketStatuses ​

codevalue
0ACTIVE
1SUSPENDED
2CLOSED
3SETTLED

channels ​

valuelabel
iframeOnline (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.

codevaluelabel
50152cannot_play_betThe player may not bet
50111below_min_bet_sizeFewer selections than the minimum
50112above_max_bet_sizeMore selections than the maximum
50001no_limit_dataNo risk limits resolved for the bet
50188stake_exceeds_maxStake above the maximum
50128below_min_stakeStake below the minimum
50110payout_exceeds_maxPayout above the maximum
50197payout_exceeds_combinationPayout above the combination limit

scopes ​

valuelabel
catalog.viewRead the sports catalogue and matches
sportsbook.viewRead site settings, market settings, market groups, bonus templates
sportsbook.configureChange site settings, market settings, bonus templates and the launch key
risk.viewRead risk groups, limits and bet delays
risk.manageChange risk groups, limits and bet delays
cashout.configureRead and change the cashout policy; read a ticket's offer history
tickets.viewRead tickets, players and the by-match report
reports.viewRead reports
uicopy.configureRead 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.

MethodPathExtra filter
GET/catalog/sports–
GET/catalog/categoriessportId: only the categories of that sport
GET/catalog/tournamentscategoryId: only the tournaments of that category

Query parameters, all optional:

ParamTypeDefaultNotes
qstring–Case-insensitive substring of the name.
limitinteger50Capped at 200. A value of 0, a negative value or a value that is not a number gives the default.
offsetinteger0
sportIdinteger–Categories only. Missing, 0 or a value that is not a number lists every category.
categoryIdinteger–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:

LevelFields
sportid, name, slug, enabled, featured, sortOrder
categorythe same + sportId
tournamentthe same + categoryId
  • enabled: false means the platform hides the entry, and everything under it, from players on every site. Disabled entries are listed here.
  • slug is "" and sortOrder is 0 when not set.
  • name is the default (English) name.
  • If offset is past the last row, meta.total is 0, 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 ​

ParamTypeNotes
statusintegerA matchStatuses code: 1 = live, 0 = prematch (the bulletin). A value that is not a number is ignored (no filter, no error).
sportstringCase-insensitive substring of the sport's English name (football, tennis). It is not a sport id.
qstringCase-insensitive substring of the home team, away team or tournament name, of the match id, or of the provider reference.
fromRFC 3339Kickoff at or after this time (inclusive).
toRFC 3339Kickoff at or before this time (inclusive).
limitintegerDefault 50, capped at 200.
offsetintegerDefault 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 }
}
FieldTypeNotes
idintegerOur match id. Use it everywhere. 64-bit (see How the numbers come back).
refIdstringThe provider's reference. "" when there is none.
sourcestringThe provider the match is mapped from. "" when it is not mapped.
mappedbooleanWhether a provider mapping exists.
sportName, categoryName, tournamentName, homeName, awayNamestringDefault English names.
startTimestringKickoff time. A match without a kickoff time shows 0001-01-01T00:00:00Z.
statusintegerA matchStatuses code.
isLivebooleanstatus == 1.
platformEnabledbooleanfalse = 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 }
        ]
      }
    ]
  }
}
  • marketId is 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 has markets: [].

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 an X-Site-ID header, 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= (otherwise Accept-Language, otherwise en).
  • The envelope is different from the Admin API's: {"success": true, "code": 0, "message": "Success", "data": …}.
EndpointWhat it returns
GET /api/GetLiveListLive and suspended matches (sportId, limit)
GET /api/GetEventListThe prematch bulletin across every tournament (sportId, interval, timezoneOffset, limit)
GET /api/GetEventDetailOne match with its full board, grouped into tabs (matchId)
GET /api/GetSportMenusSport → category → tournament tree with prematch counts
GET /api/GetTournamentEventsOne tournament's prematch matches (tournamentId, …)
GET /api/GetCategoryEventsOne category's prematch matches (categoryId, sportId, …)
GET /api/GetResultsSportMenu, GET /api/GetResultsTournamentEvents, GET /api/GetResultsAllCompetitionsFinished matches and their results
GET /api/GetUITranslationsThe player UI's texts, with your site's translations applied (lang)
GET /api/GetLocalizationMarket 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.

MethodPathScope
GET/sites/{siteId}/live-betsportsbook.view
PUT/sites/{siteId}/live-betsportsbook.configure
GET/sites/{siteId}/wallet-urlsportsbook.view
PUT/sites/{siteId}/wallet-urlsportsbook.configure
POST/sites/{siteId}/wallet-testsportsbook.configure
GET/sites/{siteId}/api-keysportsbook.view
POST/sites/{siteId}/api-keysportsbook.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 }'
FieldTypeRequiredNotes
liveBetEnabledbooleanYesYou 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" }'
FieldTypeRequiredNotes
walletUrlstringNo*An absolute http:// or https:// URL with a host. "" clears it. Surrounding spaces are trimmed.
settleLostbooleanNo*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 }'
FieldTypeRequiredNotes
userIdstringYesA player id on your wallet. Money moves on this account.
currencystringYesUpper-cased for you.
amountnumberYesMore 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:

#StepTicketCall
1bet1/bet — stake
2bet_replay1the same bet again
3bet_rollback1/rollback refund of the stake
4bet_rollback_replay1the same refund again
5win_bet2/bet — stake
6win2/win
7win_replay2the same win again
8win_rollback2/rollback win_reversal (the ticket reopens)
9win_bet_refund2/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" }
      }
    ]
  }
}
FieldNotes
steps[].verdictpass · warn (the call succeeded, but something could not be proven, e.g. no transaction_id to compare on replay) · fail · skipped
steps[].detailAn English sentence that explains the verdict.
steps[].requestThe exact JSON body that was sent. You can replay it with curl.
ledgerDeltaWhat the run left on your ledger. 0 is the only correct result.
ledgerNoteExplains 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.

MethodPathScope
GET/sites/{siteId}/cashoutcashout.configure
PUT/sites/{siteId}/cashoutcashout.configure
GET/sites/{siteId}/tickets/{id}/offerscashout.configure

Two levels: the platform band and your policy ​

Oddyne sets the platform level:

  • the default coefficient;
  • the band (coefficientMin to coefficientMax) 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: null inherits 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, whatever enabled says.

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.

FieldTypeNotes
enabledbooleanSite kill switch for all cashout (whole-ticket, partial, automatic).
partialEnabledbooleanPartial cashout, under enabled.
autoEnabledbooleanAutomatic (threshold) cashout, under enabled.
coefficientnumber | nullYour coefficient. null = inherit platformCoefficient.
minPartialValuenumberA partial cashout that would pay less than this is refused. 0 = no minimum.
liveDelaySecondsintegerThe live delay, in seconds, for cashout on live tickets. 0 = none.
platformCoefficientnumberRead-only. The platform default.
coefficientMin, coefficientMaxnumberRead-only. The band.
platformEnabledbooleanRead-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 }'
FieldTypeRule
enabledboolean
partialEnabledboolean
autoEnabledboolean
coefficientnumber | nullnull = inherit. Otherwise in (0, 1] (else 400), then clamped into the band.
minPartialValuenumber>= 0
liveDelaySecondsinteger>= 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.

ParamTypeDefaultNotes
pageinteger11-based.
limitinteger20Capped 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.

MethodPath
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).

ParamTypeNotes
statusstringOne ticketStatuses value, compared case-insensitively. An unknown value returns an empty list, not an error.
playerstringExact player id (your userId).
eventIdstringOur match id: tickets with at least one leg on that match.
fromRFC 3339Placed at or after this time (inclusive).
toRFC 3339Placed before this time (exclusive).
limitintegerDefault 50, maximum 200. A value above 200 falls back to 50; it is not capped to 200.
offsetintegerDefault 0. A negative value or a value that is not a number gives 0. Ignored with cursor.
cursorstringContinue 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 }
}
FieldTypeNotes
idstringTicket id (64-bit, a string).
playerstringYour player id.
placedAtstringRFC 3339 UTC.
betTypestringbetTypes value.
stakenumberPer bet. A system ticket places several bets.
statusstringticketStatuses value.
totalOdds, potentialWinnumber0 when not stored.
payoutnumberWhat 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.
settledAtstringAbsent until settled.
settlementSource, settledBy, settlementReasonstringWho or what settled it (settlementSource e.g. auto, manual, rollback, cashout, player, operator). Absent when empty.
limitAppliedboolThe 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).
limitsobjectWhat 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.
systemSizeintegerk of a k/n system. 0 otherwise.
shapesinteger[]The combination sizes the ticket plays (1 = singles, n = accumulator, k = k/n system). One ticket can play several. Empty on older tickets.
selections[]objecteventId, 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 status field is not filled in on this endpoint at the moment. Use the ticket's status for 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 }
}
FieldNotes
typeThe 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, directionThe 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.
statusPENDING · PROCESSING · DONE · FAILED
attemptsRetries so far.
amount, currency, transactionRefFrom the call's payload. Absent when empty or zero.
lastErrorThe 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 }
}
FieldNotes
kindsettlement (a result applied) · reopen (a settled ticket reopened for a correction) · correction (the corrected result) · cancel · uncancel (the provider undid its cancel) · cashout
ticketStatusThe ticket's status after the step. Absent on a partial cash-out.
eventIdThe match the step was about; absent for a whole-ticket step (a cancel by an operator or the player, a cash-out).
initiatorfeed (the provider) · player · operator · platform (Oddyne staff)
actorWho, when a person did it: your X-Actor-based actor, or the player. Oddyne staff are shown as Oddyne.
reasonWhen one was given.
amount, partialOn 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.

TicketWhat happens
OPEN, SETTLINGThe stake is refunded: refund (refund:<ticket>, original bet:<ticket>).
WON, VOIDThe 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.
LOSTThe 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.

MethodPathScope
GET/sites/{siteId}/playerstickets.view
GET/sites/{siteId}/reportsreports.view
GET/sites/{siteId}/reports/dailyreports.view
GET/sites/{siteId}/reports/by-matchtickets.view
GET/sites/{siteId}/reports/by-sportreports.view
GET/sites/{siteId}/reports/by-bet-typereports.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 (potentialWin for WON, the stake for VOID, 0 for LOST) 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, 0 when stake is 0.
  • open counts OPEN, SETTLING and ROLLBACK_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.

ParamNotes
qCase-insensitive substring of the player id. % and _ act as wildcards.
limitDefault 50, maximum 200 (above 200 falls back to 50).
offsetDefault 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.
  • limit defaults to 10, maximum 200 (above 200 falls back to 10). There is no offset.
  • meta.total is 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 }
  • sport is 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.

MethodPath
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.

ParamNotes
langExact language code.
prefixLiteral key prefix, e.g. betslip..
qCase-insensitive substring of the key, the default wording or the override.
onlyOverriddentrue = only the rows this site has changed.
limit, offsetNo 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 }
}
FieldNotes
defaultOddyne's wording.
overrideThe site's wording. Absent when there is none.
effectiveWhat players see: override if there is one, else default.
varsThe placeholders the key promises. Every override must contain exactly these.
updatedAt, updatedByOf 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}}" }'
FieldTypeRule
textstringRequired 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 is 422, not 400.
  • 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).

Admin API documentation for the Oddyne Sportsbook.