Skip to content

Site controls ​

Per-site controls the sportsbook applies on every bet or page: which market types the site offers, a ticket's detail, a player's risk group and bet block, featured events, the bet builder policy, the operator-owned site settings, the sports and leagues the site offers, its base stake limits, and the keys the site's wallet calls are signed with.

All paths are under /sites/{siteId} and take effect for the next bet or page load — within about 30 seconds where a cache is involved, immediately for player risk.

bash
export OPERATOR_API=https://operator-api.oddyne.com/integration/v1

Market types ​

GET /sites/{siteId}/market-types ​

Scope sportsbook.view. The market type registry with this site's overrides — the list a market settings screen renders. (GET …/market-settings returns only the overrides.)

QueryType
qstringName substring (case-insensitive) or exact market type id
sportIdintOnly the market types this sport offers; omit for all
limit, offsetintDefault 50, maximum 200
json
{
  "success": true, "code": "ok",
  "data": [
    { "marketType": 1, "marketName": "Match Result", "platformEnabled": true,
      "siteEnabled": null, "siteDisplayName": "", "enabled": true },
    { "marketType": 18, "marketName": "Total Goals", "platformEnabled": true,
      "siteEnabled": false, "siteDisplayName": "", "enabled": false }
  ],
  "meta": { "total": 1642 }
}

enabled is what the site offers: the platform's setting and the site's override (siteEnabled, null = no override). Change an override with POST …/market-settings/{marketType}/enable|disable.

Ticket detail ​

GET /sites/{siteId}/tickets/{id} ​

Scope tickets.view. One ticket — the same fields as an item of GET …/tickets — with its legs named (match, tournament, startTime, market, outcome — as GET …/tickets/{id}/selections returns them; a name is left out when it can no longer be resolved). A ticket of another site answers 404.

json
{
  "success": true, "code": "ok",
  "data": {
    "id": "2122911833504366592", "siteId": "brand-a", "player": "p-1029",
    "placedAt": "2026-11-18T04:40:12Z", "betType": "single", "stake": 1,
    "currency": "EUR", "status": "OPEN", "totalOdds": 11, "potentialWin": 11,
    "systemSize": 0, "shapes": [],
    "selections": [ { "eventId": "126946", "marketId": "…", "outcomeId": "…", "odds": 11,
                      "match": "BK Hacken – Manchester City", "tournament": "UEFA Women's Champions League",
                      "startTime": "2026-11-18T17:45:00Z", "market": "Anytime Goalscorer",
                      "outcome": "Risa Shimizu" } ]
  }
}

Ticket ids are 64-bit: keep them as strings.

Player risk ​

A player is identified by your player id — the userId you send to Launch — on a site.

The risk gate uses, for every bet:

  1. the player's own risk group, if set; else
  2. the group of the player's partner (affiliate), if any; else
  3. the site's base limits.

A player-specific limit is a group of one: create a risk group with that player's limits (Risk groups), then assign it here.

GET /sites/{siteId}/players/{ref}/risk ​

Scope risk.view.

json
{
  "success": true, "code": "ok",
  "data": { "siteId": "brand-a", "externalRef": "p-1029", "known": true,
            "riskGroupId": "41", "partnerId": null, "effectiveRiskGroupId": "41",
            "canPlayBet": true, "currency": "EUR" }
}

known is false for a player who never launched or bet and was never set here; such a player has the defaults (no own group, may bet).

PUT /sites/{siteId}/players/{ref}/risk ​

Scope risk.manage. Both fields are required.

bash
curl -s -X PUT "$OPERATOR_API/sites/brand-a/players/p-1029/risk" \
  -H "Authorization: Bearer $KEY" -H "X-Actor: [email protected]" \
  -H "Content-Type: application/json" \
  -d '{"riskGroupId": "41", "canPlayBet": true}'
FieldType
riskGroupIdid (string or number) | nullThe player's own group; null clears it
canPlayBetboolfalse refuses every bet of the player (reject code 50152)

Applies from the player's next bet. A player not seen yet is created, so a restriction can come before the first bet. Answers the player as GET does.

HTTPcode
422player_risk.unknown_groupThe group does not exist on this site
422validation.bad_bodyA field is missing or invalid

GET /sites/{siteId}/risk-groups/{id}/players ​

Scope risk.view. The players whose own group is {id}. limit default 100, maximum 500.

json
{ "success": true, "code": "ok",
  "data": [ { "externalRef": "p-1029", "canPlayBet": true, "currency": "EUR" } ],
  "meta": { "total": 1 } }

The site's top events: the matches it pins to the top (featured: true, ordered by sortOrder, else by kickoff) and the ones it keeps out of the default selection (featured: false). Display only — no effect on bets.

Scope sportsbook.view.

json
{ "success": true, "code": "ok",
  "data": [ { "matchId": 126947, "featured": true, "sortOrder": 1, "updatedAt": "2026-11-19T09:00:00Z",
              "match": { "id": 126947, "homeName": "Real Madrid (Wom)", "awayName": "Inter Milan (Wom)",
                         "startTime": "2026-11-18T17:45:00Z", "status": 0, "…": "…" } } ],
  "meta": { "total": 1 } }

match is the match header, null when the match is no longer known.

Scope sportsbook.configure.

json
{ "featured": true, "sortOrder": 1 }

featured is required; sortOrder 0–10000, optional. An unknown match answers 404.

Scope sportsbook.configure. The match returns to the default selection. 404 when it was neither pinned nor excluded.

Bet builder ​

The bet builder policy the bet path enforces: on/off, the maximum number of legs, the margin per leg, the accepted odds range, and the price tolerance at acceptance. A site without its own policy uses the platform's (inherited: true).

GET /sites/{siteId}/bet-builder ​

Scope sportsbook.view.

json
{ "success": true, "code": "ok",
  "data": { "enabled": false, "marginPerLeg": 0.04, "maxLegs": 12, "minOdd": 1.01,
            "maxOdd": 1000, "tolerance": 0.01, "inherited": true, "updatedAt": null } }

PUT /sites/{siteId}/bet-builder ​

Scope sportsbook.configure. Every field is required.

FieldRangeMeaning
enabledboolBet builder offered and accepted on the site
marginPerLeg0 – 0.25Margin applied per leg of the builder price
maxLegs2 – 30Most selections in one builder
minOdd1.01 – 1000Lowest builder price accepted
maxOddabove minOdd, ≤ 100000Highest builder price accepted
tolerance0 – 0.2Relative price drift accepted between quote and acceptance

Answers the policy as GET does.

DELETE /sites/{siteId}/bet-builder ​

Scope sportsbook.configure. Drops the site's own policy: the platform's applies again.

Site settings ​

GET /sites/{siteId}/site-settings ​

Scope sportsbook.view.

json
{
  "success": true, "code": "ok",
  "data": {
    "siteId": "brand-a", "name": "Brand A", "status": "live", "domain": "brand-a.example",
    "channels": ["web", "mobile"], "currencies": ["EUR"], "defaultCurrency": "EUR",
    "languages": ["en", "tr"], "defaultLanguage": "en",
    "liveBetEnabled": true, "allowHigherPayout": false, "showAsianLines": false,
    "cashout": null, "cancelBet": { "enabled": true, "windowMinutes": 5 }, "systemSettings": null
  }
}

siteId, name, status, domain and channels are the platform's: read only here. Live betting has its own endpoint (PUT …/live-bet). A null section means the defaults apply.

PATCH /sites/{siteId}/site-settings ​

Scope sportsbook.configure. A partial update: a field left out is left alone; a section set to null returns to its defaults. Answers the settings as GET does.

FieldTypeEffect
allowHigherPayoutboolA bet whose payout exceeds the risk limit is accepted with the payout capped, instead of refused. A risk group's own setting wins over this.
showAsianLinesboolAsian handicap and total lines shown to players
cashoutobject | null{ "enabled": bool, "partialEnabled"?: bool, "minPartialCashoutValue"?: number ≥ 0 } — cashout on/off for the site, and partial cashout. Default: both on.
cancelBetobject | null{ "enabled"?: bool, "windowMinutes"?: 1–1440 } — a player may cancel a bet within the window after placing it. Default: on, 10 minutes.
systemSettingsobject | nullWhat the bet slip shows and allows, by section: maintenance, cashout, odd, showCurrency, showLMT, noMoreBet. Only these sections; each is overlaid on the defaults.
currenciesstring[]The currencies the site offers — ISO codes the platform carries. A launch or session in another currency is refused.
defaultCurrencystringOne of currencies: a player launched without one bets in it.
languagesstring[]The languages the site offers — codes enabled on the platform.
defaultLanguagestringOne of languages.
oddsFormatstring | nullThe player UI's default odds format: decimal, fractional, american, hongkong, indo, malay. Display only — prices are always stored and settled in decimal.
betTypesobject | null{ "single"?, "combi"?, "system"?, "betbuilder"? } (booleans). A type set to false is refused at bet with bet_type_disabled; a type left out is offered.
bash
curl -s -X PATCH "$OPERATOR_API/sites/brand-a/site-settings" \
  -H "Authorization: Bearer $KEY" -H "X-Actor: [email protected]" \
  -H "Content-Type: application/json" \
  -d '{"cashout": {"enabled": true, "partialEnabled": false}, "cancelBet": null}'

Cashout on/off lives here

The cashout section is what the cashout path reads to allow or refuse a cashout. The separate cashout policy (coefficient and bands) is stored but not applied yet.

Wallet signing keys ​

Every wallet callback of the site is signed with its newest active Ed25519 key (Signatures). Register a key's publicKey and keyId with your wallet; the private key never leaves the sportsbook. A change takes effect within 30 seconds. At most 5 active keys per site.

GET /sites/{siteId}/wallet-signing-keys ​

Scope sportsbook.view. Newest first; signing marks the key in use.

json
{ "success": true, "code": "ok",
  "data": [ { "keyId": "wk_3f9a1c0d2b7e4a51", "siteId": "brand-a",
              "publicKey": "Gb9ECWmEzf6FQbrBZ9w7lshQhqowtrbLDFw4rXAxZuE=", "algorithm": "ed25519",
              "status": "active", "signing": true,
              "createdAt": "2026-11-20T18:00:00Z", "createdBy": "[email protected]",
              "retiredAt": null, "retiredBy": null } ],
  "meta": { "total": 1 } }

publicKey is the base64 of the 32-byte Ed25519 public key.

POST /sites/{siteId}/wallet-signing-keys ​

Scope sportsbook.configure. Creates a key and answers it (201). It signs the site's calls from the next 30 seconds on, so if your wallet already requires signatures, register it first — see rotation.

HTTPcode
409wallet_key.too_manyThe site already holds 5 active keys
503wallet_key.unavailableKeys cannot be created right now

POST /sites/{siteId}/wallet-signing-keys/{keyId}/retire ​

Scope sportsbook.configure. The key stops signing; it is kept, retired, for the audit trail. Answers the site's keys. 404 when no active key has this id on the site.

Retiring the last active key makes the site's calls unsigned — a wallet that requires signatures then refuses them.

Sports and leagues offered ​

Switch a sport, category, tournament or match off for the site: it disappears from the site's lists and live feed, and a bet on it is refused (event_not_offered) — so a coupon built before the change cannot place it either. Ids are the catalogue's (GET /catalog/sports, /catalog/categories, /catalog/tournaments, /matches).

GET /sites/{siteId}/display-overrides ​

Scope sportsbook.view. entityType (query, optional) narrows to one kind.

json
{ "success": true, "code": "ok",
  "data": [ { "siteId": "brand-a", "entityType": "tournament", "entityId": 117,
              "disabled": true, "updatedAt": "2026-11-21T10:00:00Z" } ],
  "meta": { "total": 1 } }

PUT /sites/{siteId}/display-overrides/{entityType}/{entityId} ​

Scope sportsbook.configure. entityType is sport, category, tournament or match.

json
{ "disabled": true }

disabled: false records an explicit "on" — it does not override the platform's own switch-off of an entity.

DELETE /sites/{siteId}/display-overrides/{entityType}/{entityId} ​

Scope sportsbook.configure. The entity follows the platform again.

Base stake limits ​

The limits every player of the site bets under when they have no risk group of their own; a risk group's limits replace them. Prematch and live are separate. A null value has no limit at this level.

GET /sites/{siteId}/stake-limits ​

Scope risk.view.

json
{ "success": true, "code": "ok",
  "data": { "prematch": { "minStake": 1, "maxStake": 100, "maxPayout": 2000 },
            "live":     { "minStake": 1, "maxStake": 50,  "maxPayout": 1000 },
            "set": true } }

set: false means the site has no base limits.

PUT /sites/{siteId}/stake-limits ​

Scope risk.manage. Replaces all six values (send the GET shape without set). A value must not be negative, and minStake must not exceed maxStake. Applies from the next bet (within 30 seconds).

Admin API documentation for the Oddyne Sportsbook.