Skip to content

Risk & markets ​

Endpoints of the Admin API that manage how a site takes bets: risk groups and their limit tree, per-market stake caps, the live bet delay, which market types a site shows, the match-page market tabs, and combine (accumulator) bonus templates.

Every route here is the operator backoffice's own handler: the same validation, the same response, the same audit trail. An integration key reaches nothing the operator panel cannot.

Conventions ​

Base URL ​

https://operator-api.oddyne.com/integration/v1/sites/{siteId}

All paths below are relative to this base. $OPERATOR_API in the examples is https://operator-api.oddyne.com/integration/v1.

Auth and headers ​

Authorization: Bearer <YOUR_INTEGRATION_KEY>     (or: X-Api-Key: <YOUR_INTEGRATION_KEY>)
X-Actor: jane@yourplatform                        (required on every non-GET)
Content-Type: application/json                    (on requests with a body)
  • The key must be allowed on {siteId} and hold the route's scope (listed per endpoint): risk.view, risk.manage, sportsbook.view or sportsbook.configure.
  • X-Actor names the admin on your side who made the change. It lands verbatim in our audit log: at most 128 letters, digits, spaces and @ . _ + - :. Optional on GET.

The site comes from the path ​

{siteId} in the path is the only site that counts. Do not send siteId / site_id in the query or the body: the gateway overwrites the query parameters with the path site, and on the two routes that read the site from the body (POST /risk-groups, POST /risk-groups/seed-defaults) it writes the path site into the body's site_id. Anything you send there is ignored.

A risk group addressed by {id} must belong to the path site. A group on another site, or one that does not exist, is 404 not_found.

Envelope ​

Every response uses one envelope.

json
{ "success": true, "code": "ok", "data": { }, "meta": { "total": 3 } }

meta is present on list responses only; meta.total is the number of matching rows (for paged lists, the total ignoring limit/offset). Errors:

json
{ "success": false, "code": "risk_market.invalid_stake", "error": "max stake must be a positive amount, or empty to inherit", "data": null }

Branch on code, never on error (an English fallback). 204 No Content responses have no body.

Request bodies are strict ​

Bodies are JSON, at most 1 MiB, and unknown fields are rejected with 400 validation.bad_body. Where a PUT accepts the object a GET returned, the extra read-only fields it tolerates are listed per endpoint.

Errors any route can return ​

StatuscodeWhen
400integration.actor_requiredX-Actor missing on a non-GET, or malformed.
400validation.bad_bodyMalformed JSON, an unknown field, or a non-object body.
401integration.invalid_keyMissing or unknown key.
403integration.missing_scopeThe key lacks the route's scope.
403integration.site_not_allowedThe key may not act on {siteId} (also returned for a site that does not exist).
500internal_errorUnexpected failure. Safe to retry reads.
503db_unavailableA dependency is down (e.g. the sports catalogue database for tree/market/tab reads).

Money and numbers ​

Risk limits travel as JSON numbers (500, 12.5). Bonus template odds and multipliers travel as decimal strings ("1.25"); the request side accepts a string or a number. Ids of risk groups, tree nodes, market rows and bonus templates are returned as strings.


The risk model in one minute ​

A risk group is a named, single-currency bucket of limits on one site (e.g. "VIP EUR", "New players"). Players (and partners, whose group a player inherits when it has none) are assigned to a group outside this API. Under each group you configure a tree that follows the sports catalogue:

risk group
 └─ sport            (e.g. Soccer)            ← node: prematch/live limits, active flags, per-bet cap
     └─ category     (e.g. England)           ← node
         └─ tournament (e.g. Premier League)  ← node
              … and on any of these three: per-market-type stake caps

When a bet is placed, every limit is resolved most-specific-wins along a ladder:

ScopeWhatConfigured here
1match on siteno
2group + tournament + market typeMarket limits
3group + category + market typeMarket limits
4group + sport + market typeMarket limits
5group + tournamentNodes
6group + categoryNodes
7group + sportNodes
8sport on siteno
9site base (wildcard)Seed defaults
  • null = inherit. A field left null at a level says nothing and the next level down the ladder decides. This is how you "clear" a value.
  • 0 is not "unlimited". At node and base scopes a 0 is a literal limit — maxStake: 0 blocks the bet. There is no unlimited sentinel; leave the field null to inherit.
  • Max stake resolves over the whole ladder (market caps included). Min/max bet size, min stake and max payout skip the market tiers (2–4).
  • The max stake is cumulative: what remains is the resolved cap minus the player's open stake on the same match (on the same match + market when a market cap applies).
  • Every limit has a prematch and a live variant; the match's live state picks one.
  • A player with no group skips scopes 2–7 entirely and gets the site base.
  • Bet-accept reads this config through a cache: an edit takes effect within about 30 seconds.

Risk groups ​

GET /risk-groups ​

Scope risk.view. Lists the site's risk groups, ordered by id. Not paged.

QueryTypeRequiredNotes
currencystringNoOnly groups in this currency (case-insensitive).
bash
curl "$OPERATOR_API/sites/site-42/risk-groups?currency=EUR" \
  -H "Authorization: Bearer $KEY"
json
{
  "success": true,
  "code": "ok",
  "data": [
    { "id": "7", "site_id": "site-42", "name": "Default EUR", "currency": "EUR", "allowHigherPayout": false },
    { "id": "9", "site_id": "site-42", "name": "VIP EUR", "currency": "EUR", "allowHigherPayout": true }
  ],
  "meta": { "total": 2 }
}
FieldTypeNotes
idstringServer-assigned.
site_idstringNote the snake_case.
namestring"" if never set.
currencystring3-letter code; limits of the group are compared in this currency.
allowHigherPayoutbooleantrue: a ticket whose payout exceeds the group's max payout is accepted with its payout clamped to the limit instead of being rejected. false: rejected.

POST /risk-groups ​

Scope risk.manage. Creates a group on the path site. 201 Created with the group.

FieldTypeRequiredNotes
namestringYesTrimmed, must not be empty. No length limit, not unique.
currencystringYes3 letters; trimmed and uppercased (eur → EUR). Not checked against the site's currency list.
allowHigherPayoutbooleanNoDefault false.
bash
curl -X POST "$OPERATOR_API/sites/site-42/risk-groups" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform" \
  -H "Content-Type: application/json" \
  -d '{ "name": "VIP EUR", "currency": "EUR", "allowHigherPayout": true }'
StatuscodeWhen
422validation.bad_bodyname empty.
422validation.invalid_currencycurrency is not 3 letters.
409risk_group.duplicateId collision (not expected in practice).

PUT /risk-groups/{id} ​

Scope risk.manage. Full replace of name, currency and allowHigherPayout. 200 with the updated group.

The body is the same as POST; id and site_id are tolerated (so you can PUT back what you GET) but ignored — the path wins and a group never moves site.

Send every field

allowHigherPayout omitted means false. A PUT with only name and currency silently turns the clamp off.

bash
curl -X PUT "$OPERATOR_API/sites/site-42/risk-groups/9" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform" \
  -H "Content-Type: application/json" \
  -d '{ "name": "VIP EUR", "currency": "EUR", "allowHigherPayout": false }'
StatuscodeWhen
404not_foundNo such group on this site.
422validation.invalid_id{id} is not an integer.
422validation.bad_body / validation.invalid_currencyAs on create.

DELETE /risk-groups/{id} ​

Scope risk.manage. Deletes the group and every limit configured under it (all nodes and market caps) in one transaction. 204.

bash
curl -X DELETE "$OPERATOR_API/sites/site-42/risk-groups/9" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform"
StatuscodeWhen
409risk_group.in_useA player or partner on the site is still assigned to the group. Reassign them first.
404not_foundNo such group on this site.
422validation.invalid_id{id} is not an integer.

Seed base limits ​

POST /risk-groups/seed-defaults ​

Scope risk.manage. Ensures the site has its base row (scope 9): the wildcard that applies to every bet on the site when nothing more specific is configured. Without it, every bet without group/sport limits is rejected. Despite the path, it belongs to the site, not to a group.

It inserts, for both prematch and live:

LimitValue
min bet size (selections)1
max bet size (selections)20
min stake1
max stake1000
max payout10000
active / live activetrue

Idempotent: when a base row already exists it is never overwritten and the call answers seeded: false. New sites are seeded when they are created, so false is the usual answer. The base row itself cannot be edited through this API.

Body: empty, or {}. Any field other than site_id (which is overwritten) is 400.

bash
curl -X POST "$OPERATOR_API/sites/site-42/risk-groups/seed-defaults" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform"
json
{ "success": true, "code": "ok", "data": { "siteId": "site-42", "seeded": false } }

Note the camelCase siteId here, unlike the group's site_id.


Risk limits tree (nodes) ​

A node is one sport, category or tournament under a group, with the limits that group applies there. The tree is read one level at a time.

Node object ​

json
{
  "id": "1",
  "name": "Soccer",
  "active": true,
  "liveActive": false,
  "prematch": { "minBetSize": 1, "maxBetSize": 15, "minStake": 2, "maxStake": 500, "maxPayout": 25000 },
  "live":     { "minBetSize": null, "maxBetSize": 5, "minStake": null, "maxStake": 200, "maxPayout": 10000 },
  "tMaxStake": 250
}
FieldTypeNotes
idstringThe catalogue id of the sport / category / tournament.
namestringEnglish catalogue name. May be "" in a PUT response when the catalogue is unreachable.
activeboolean | nullfalse closes prematch betting on this entity for the group. null = inherit.
liveActiveboolean | nullfalse closes live betting. null = inherit.
prematch, livelimit blockAlways present; each field null = inherit.
…minBetSize / …maxBetSizeinteger | nullNumber of selections on the ticket (combo size), not money.
…minStakenumber | nullMinimum stake.
…maxStakenumber | nullCumulative max stake per match (see the model above). 0 blocks.
…maxPayoutnumber | nullMax payout.
tMaxStakenumber | nullPer-ticket stake cap (one bet), independent of exposure. Prematch and live alike.

A node nobody configured comes back with every field null (fully inherited).

GET /risk-groups/{id}/tree ​

Scope risk.view. One level of the tree, every catalogue entry at that level (disabled ones included), merged with the group's values.

QueryTypeRequiredLevel returned
(neither)Sports
sport_idintegerNoCategories of that sport
sport_id + category_idintegerNoTournaments of that category
qstringNoCase-insensitive name substring.
limitintegerNoDefault 50, max 200.
offsetintegerNoDefault 0.

category_id without sport_id is ignored (you get sports). With both, only category_id filters the tournaments. Note the snake_case names here, unlike the other node routes.

bash
curl "$OPERATOR_API/sites/site-42/risk-groups/9/tree?sport_id=1&limit=100" \
  -H "Authorization: Bearer $KEY"
json
{
  "success": true,
  "code": "ok",
  "data": [
    { "id": "11", "name": "England", "active": null, "liveActive": null,
      "prematch": { "minBetSize": null, "maxBetSize": null, "minStake": null, "maxStake": 300, "maxPayout": null },
      "live": { "minBetSize": null, "maxBetSize": null, "minStake": null, "maxStake": null, "maxPayout": null },
      "tMaxStake": null },
    { "id": "12", "name": "Spain", "active": null, "liveActive": null,
      "prematch": { "minBetSize": null, "maxBetSize": null, "minStake": null, "maxStake": null, "maxPayout": null },
      "live": { "minBetSize": null, "maxBetSize": null, "minStake": null, "maxStake": null, "maxPayout": null },
      "tMaxStake": null }
  ],
  "meta": { "total": 142 }
}

meta.total counts catalogue entries at that level, not configured nodes. 503 db_unavailable when the sports catalogue is unreachable.

PUT /risk-groups/{id}/nodes ​

Scope risk.manage. Creates or replaces one node. 200 with the resulting node.

FieldTypeRequiredNotes
levelstringYessport | category | tournament.
sportIdintegerWhen level = sport1 … 2147483647.
categoryIdintegerWhen level = categorySame range.
tournamentIdintegerWhen level = tournamentSame range.
active, liveActiveboolean | nullNo
tMaxStakenumber | nullNo
prematch, livelimit blockNoFields as in the node object.

Only the id that matches level is used; the others are ignored (a category node is keyed by its category alone). The id is not checked against the catalogue.

A PUT replaces the whole node

Every field you omit is stored as null (inherit). To change one limit, send the node back with all its current values. To revert a whole node, use DELETE.

Limit values are not validated

The API stores any number: negative values, minStake above maxStake, or a 0 that blocks betting. Validate in your UI. Bet sizes must fit a 32-bit integer.

bash
curl -X PUT "$OPERATOR_API/sites/site-42/risk-groups/9/nodes" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform" \
  -H "Content-Type: application/json" \
  -d '{
    "level": "sport",
    "sportId": 1,
    "active": true,
    "liveActive": false,
    "tMaxStake": 250,
    "prematch": { "minBetSize": 1, "maxBetSize": 15, "minStake": 2, "maxStake": 500, "maxPayout": 25000 },
    "live":     { "maxBetSize": 5, "maxStake": 200, "maxPayout": 10000 }
  }'
StatuscodeWhen
422risk_node.invalid_levellevel is not one of the three.
422risk_node.missing_scope_idThe level's id is missing, ≤ 0 or out of range.
404not_foundNo such group on this site.

DELETE /risk-groups/{id}/nodes ​

Scope risk.manage. Reverts one node to fully inherited. Idempotent: deleting a node that was never set is also 204. Market caps configured under the node are not removed.

QueryTypeRequiredNotes
levelstringYessport | category | tournament.
sportId / categoryId / tournamentIdintegerThe one matching levelcamelCase here.
bash
curl -X DELETE "$OPERATOR_API/sites/site-42/risk-groups/9/nodes?level=category&categoryId=11" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform"

Errors as for PUT.


Market limits ​

Per market type, under one node, a group can cap the stake separately for prematch and live (scopes 2–4). Only the max stake can be set at this level: it is the only limit the ladder reads on market tiers. When a market cap applies, the cumulative exposure is counted per match and market instead of per match.

Market limit object ​

json
{ "id": "18", "name": "Total", "maxStakeP": 100, "maxStakeL": null }
FieldTypeNotes
idstringMarket type id.
namestringCanonical market name.
maxStakePnumber | nullPrematch cap. null = inherit.
maxStakeLnumber | nullLive cap. null = inherit.

GET /risk-groups/{id}/markets ​

Scope risk.view. The market types under one node with the group's caps.

QueryTypeRequiredNotes
levelstringYessport | category | tournament.
sportId / categoryId / tournamentIdintegerThe one matching levelPicks the node.
sportIdintegerRecommended at every levelAlso narrows the list to the markets that sport offers. Without it at category/tournament level you get every market type.
configuredbooleanNotrue: only the markets with a cap, unpaged (q/limit/offset ignored).
qstringNoMarket name substring, or an exact market type id.
limitintegerNoDefault 50, max 200.
offsetintegerNoDefault 0.
bash
curl "$OPERATOR_API/sites/site-42/risk-groups/9/markets?level=tournament&tournamentId=538&sportId=1&q=total" \
  -H "Authorization: Bearer $KEY"
json
{
  "success": true,
  "code": "ok",
  "data": [
    { "id": "18", "name": "Total", "maxStakeP": 100, "maxStakeL": null },
    { "id": "19", "name": "Home total", "maxStakeP": null, "maxStakeL": null }
  ],
  "meta": { "total": 2 }
}
StatuscodeWhen
422risk_node.invalid_levelBad level.
422risk_node.missing_scope_idThe level's id is missing or invalid.
503db_unavailableThe market catalogue is unreachable.

This route is also the way to browse the market type registry (ids and names) for the other market endpoints.

PUT /risk-groups/{id}/markets ​

Scope risk.manage. Sets one market's caps under one node. Both caps null (or omitted) removes the override. 200 with the resulting market object.

FieldTypeRequiredNotes
levelstringYessport | category | tournament.
sportId / categoryId / tournamentIdintegerThe one matching level
marketTypeIdintegerYesMust exist in the market registry.
maxStakePnumber | nullNo> 0, or null.
maxStakeLnumber | nullNo> 0, or null.

0 is refused: on market tiers a zero means "not set", so storing it would silently mean inherit. Both caps are written together — send both current values when you change one.

bash
curl -X PUT "$OPERATOR_API/sites/site-42/risk-groups/9/markets" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform" \
  -H "Content-Type: application/json" \
  -d '{ "level": "tournament", "tournamentId": 538, "marketTypeId": 18, "maxStakeP": 100, "maxStakeL": 50 }'
StatuscodeWhen
422risk_node.invalid_levelBad level.
422risk_node.missing_scope_idThe level's id is missing or invalid.
422risk_market.unknown_market_typemarketTypeId missing, ≤ 0, or not in the registry.
422risk_market.invalid_stakeA cap is 0, negative or not finite.

Bet delays ​

A bet delay holds a live bet for a number of milliseconds before it is accepted; if the price moves during the hold, the bet is refused. It protects against bets placed on stale live odds. Prematch bets are not delayed.

A rule is (level, entityId) → delayMs. The most specific matching rule wins:

market (type) → tournament → category → sport → default

There are two tiers. Your site rules are consulted first at every level; the platform rules (set by Oddyne) apply only when the site's chain has no rule at all. A site rule of 0 is a decision (no delay) and the platform default is not consulted over it.

levelentityId
marketMarket type id
tournamentTournament id
categoryCategory id
sportSport id
defaultMust be 0

Rule object ​

json
{ "siteId": "site-42", "level": "sport", "entityId": 1, "delayMs": 5000 }

entityId is a number here (not a string).

GET /bet-delays ​

Scope risk.view. Both tiers, so your UI can show what applies. Not a list envelope (no meta).

bash
curl "$OPERATOR_API/sites/site-42/bet-delays" \
  -H "Authorization: Bearer $KEY"
json
{
  "success": true,
  "code": "ok",
  "data": {
    "site": [
      { "siteId": "site-42", "level": "market", "entityId": 18, "delayMs": 8000 },
      { "siteId": "site-42", "level": "sport", "entityId": 1, "delayMs": 5000 },
      { "siteId": "site-42", "level": "default", "entityId": 0, "delayMs": 3000 }
    ],
    "platform": [
      { "siteId": "", "level": "default", "entityId": 0, "delayMs": 4000 }
    ]
  }
}

Rules are ordered most specific level first. Platform rules carry siteId: "".

PUT /bet-delays ​

Scope risk.manage. Creates or updates one site rule. 200 with the rule.

FieldTypeRequiredNotes
levelstringYesSee the table above.
entityIdintegerYes> 0; exactly 0 for default.
delayMsintegerYes0 … 60000. Omitted means 0.
bash
curl -X PUT "$OPERATOR_API/sites/site-42/bet-delays" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform" \
  -H "Content-Type: application/json" \
  -d '{ "level": "sport", "entityId": 1, "delayMs": 5000 }'
StatuscodeWhen
422validation.bad_bodyUnknown level, entityId out of rule, or delayMs outside 0–60000 (the error text says which).

DELETE /bet-delays ​

Scope risk.manage. Removes one site rule; that scope falls back to the next site rule or the platform rule. Idempotent, 204.

QueryTypeRequiredNotes
levelstringYes
entity_idintegerYessnake_case. 0 for default.
bash
curl -X DELETE "$OPERATOR_API/sites/site-42/bet-delays?level=sport&entity_id=1" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform"
StatuscodeWhen
422validation.invalid_identity_id missing or not an integer.
422validation.bad_bodyUnknown level, or entity_id out of rule for the level.

Bet-delay changes reach bet acceptance within the config cache TTL (about 30 seconds).


Market settings ​

Per site and market type: whether the market is shown, and an optional display name that replaces the market's header name on the player site.

Display only

Disabling a market type hides it from the site's lists, match pages and live stream. It does not stop betting: a ticket that already references the market (a saved betslip, a direct API call) is still accepted. To stop bets, use the risk limits or active/liveActive on a node.

Setting object ​

json
{ "siteId": "site-42", "marketType": 18, "enabled": false, "displayName": "Goals over/under", "settings": {} }
FieldTypeNotes
siteIdstring
marketTypeintegerMarket type id (a number here).
enabledbooleanfalse = hidden on this site.
displayNamestring"" = no override.
settingsobjectLayout document managed by Oddyne; {} when the site only set enabled / displayName. Read-only through this API.

GET /market-settings ​

Scope sportsbook.view. The site's overrides only, ordered by market type. A market type absent from the list is shown with its default name. To list all market types, use GET /risk-groups/{id}/markets (see Market limits).

bash
curl "$OPERATOR_API/sites/site-42/market-settings" \
  -H "Authorization: Bearer $KEY"
json
{
  "success": true,
  "code": "ok",
  "data": [
    { "siteId": "site-42", "marketType": 18, "enabled": false, "displayName": "", "settings": {} }
  ],
  "meta": { "total": 1 }
}

POST /market-settings/{marketType}/enable and /disable ​

Scope sportsbook.configure. Shows or hides one market type on the site. No body. 200 with the setting object. Idempotent.

bash
curl -X POST "$OPERATOR_API/sites/site-42/market-settings/18/disable" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform"
StatuscodeWhen
422validation.bad_body{marketType} is not an integer.

The market type is not checked against the registry: an unknown id creates a harmless override row that never matches a market.

PUT /market-settings/{marketType}/display-name ​

Scope sportsbook.configure. Sets or clears the site's display name. 200 with the setting object.

FieldTypeRequiredNotes
displayNamestring | nullYes (the body must be a JSON object)Non-empty string = override. null or "" = clear. Not trimmed, no length limit.
bash
curl -X PUT "$OPERATOR_API/sites/site-42/market-settings/18/display-name" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform" \
  -H "Content-Type: application/json" \
  -d '{ "displayName": "Goals over/under" }'
StatuscodeWhen
400validation.bad_bodyEmpty or malformed body.
422validation.bad_body{marketType} is not an integer.

The name is a single string, not per language.


Market groups ​

The tabs of the match page per sport ("Main", "Goals", "Halves", …) and which market types sit in each. Read-only: the tabs follow the feed provider's grouping and are the same for every site. To hide a market on your site, use market settings. The answer does not depend on {siteId} (the key must still be allowed on it).

GET /market-groups/sports ​

Scope sportsbook.view. The sports that offer markets, the ones with most market types first.

bash
curl "$OPERATOR_API/sites/site-42/market-groups/sports" \
  -H "Authorization: Bearer $KEY"
json
{
  "success": true,
  "code": "ok",
  "data": [
    { "sportId": 1, "name": "Soccer", "markets": 412 },
    { "sportId": 3, "name": "Basketball", "markets": 187 }
  ],
  "meta": { "total": 2 }
}

name is "Sport <id>" when the catalogue has no name for the sport.

GET /market-groups/sports/{sportId} ​

Scope sportsbook.view. The sport's tabs in display order with their market types (by name), plus the types drawn in no tab.

bash
curl "$OPERATOR_API/sites/site-42/market-groups/sports/1" \
  -H "Authorization: Bearer $KEY"
json
{
  "success": true,
  "code": "ok",
  "data": {
    "sportId": 1,
    "tabs": [
      { "id": 1, "name": "Main", "slug": "main", "sort": 10,
        "markets": [ { "marketType": 1, "name": "1X2" }, { "marketType": 18, "name": "Total" } ] },
      { "id": 9, "name": "Other", "slug": "other", "sort": 99,
        "markets": [ { "marketType": 301, "name": "Corner handicap" } ] }
    ],
    "hidden": []
  }
}
FieldNotes
tabs[]Only enabled tabs with at least one market in this sport, in display order. id/sort are numbers.
tabs[].slugother is the catch-all tab for types placed in no tab.
hidden[]Types the sport offers that appear in no tab (no catch-all tab is enabled).

A sport nothing is known about returns empty tabs and hidden. Per-site market settings are not applied here: a type you disabled still appears.

StatuscodeWhen
422validation.invalid_id{sportId} not a positive integer.

Combine bonus templates ​

Status: templates stored, not yet applied

Combine bonus templates are stored and validated, but no bet path applies them yet: a template grants nothing to a player today. Build the screen against this contract; we will announce when bonuses are paid.

A combine bonus template describes an accumulator bonus: a combo with N legs, every leg at or above a minimum odd, earns a payout multiplier chosen by the number of legs.

Configuration only

Templates are stored and validated, but no bet path reads them yet: creating one grants no bonus. Treat this surface as preparation for a later bet-engine release.

Template object ​

json
{
  "id": "4",
  "siteId": "site-42",
  "name": "Combi boost EUR",
  "currency": "EUR",
  "minOddLimit": "1.3",
  "tiers": [
    { "id": "11", "firstMatchCount": 3, "lastMatchCount": 4, "bonus": "1.05" },
    { "id": "12", "firstMatchCount": 5, "lastMatchCount": 7, "bonus": "1.1" },
    { "id": "13", "firstMatchCount": 8, "lastMatchCount": 20, "bonus": "1.25" }
  ],
  "createdAt": "2026-11-02T09:14:00Z",
  "updatedAt": "2026-11-18T16:40:12Z"
}
FieldTypeNotes
idstring
siteIdstring
namestringUnique per site.
currencystringOne of the site's currencies.
minOddLimitdecimal stringEvery leg must be at or above this odd. Trailing zeros are dropped ("1.3").
tiers[]arrayOrdered by firstMatchCount.
tiers[].firstMatchCount / lastMatchCountintegerInclusive leg-count band.
tiers[].bonusdecimal stringPayout multiplier ("1.1" = ×1.10). The schema documents "0" as a legal "no bonus" band; how a consumer will treat 0 against 1 is not defined yet, since nothing reads templates today.
createdAt, updatedAtstringRFC 3339, UTC.

GET /bonus-templates ​

Scope sportsbook.view. The site's templates, ordered by name. Not paged.

bash
curl "$OPERATOR_API/sites/site-42/bonus-templates" \
  -H "Authorization: Bearer $KEY"

POST /bonus-templates ​

Scope sportsbook.configure. 201 with the template.

FieldTypeRequiredNotes
namestringYesTrimmed; 1–100 characters.
currencystringYes3 letters, uppercased; must be one of the site's currencies (or its default currency).
minOddLimitdecimalYes1 … 1000, at most 4 decimals.
tiersarrayYes1 … 50 tiers.
tiers[].firstMatchCountintegerYes0 ≤ first ≤ last.
tiers[].lastMatchCountintegerYes≤ 100.
tiers[].bonusdecimalYes0 … 100, at most 4 decimals.

Bands must not overlap (3–5 and 5–8 overlap; 3–4 and 5–8 do not). Gaps are allowed. Decimals may be sent as strings ("1.25", recommended) or numbers.

Tolerated and ignored, so you can send back a GET object: id, siteId, siteName, createdAt, updatedAt, tiers[].id.

bash
curl -X POST "$OPERATOR_API/sites/site-42/bonus-templates" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Combi boost EUR",
    "currency": "EUR",
    "minOddLimit": "1.30",
    "tiers": [
      { "firstMatchCount": 3, "lastMatchCount": 4, "bonus": "1.05" },
      { "firstMatchCount": 5, "lastMatchCount": 7, "bonus": "1.10" },
      { "firstMatchCount": 8, "lastMatchCount": 20, "bonus": "1.25" }
    ]
  }'
StatuscodeWhen
422validation.bad_bodyname empty or too long; minOddLimit missing or out of range.
422validation.invalid_currencycurrency is not 3 letters.
422bonus_template.currency_not_on_siteThe currency is not configured on the site (the error lists the site's currencies).
422bonus_template.invalid_tiersNo tiers, more than 50, a missing field, a bound out of range, or overlapping bands (the error names the tier).
409bonus_template.duplicate_nameThe site already has a template with this name.

PUT /bonus-templates/{id} ​

Scope sportsbook.configure. Full replace: name, currency, minOddLimit and the whole tier set (tiers are recreated, so tier ids change). Same body and errors as POST, plus:

StatuscodeWhen
404not_foundNo such template on this site.
422validation.invalid_id{id} not a positive integer.
bash
curl -X PUT "$OPERATOR_API/sites/site-42/bonus-templates/4" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Combi boost EUR", "currency": "EUR", "minOddLimit": "1.40",
        "tiers": [ { "firstMatchCount": 4, "lastMatchCount": 20, "bonus": "1.15" } ] }'

DELETE /bonus-templates/{id} ​

Scope sportsbook.configure. 204; 404 not_found for an id unknown to the site, 422 validation.invalid_id for a bad id.

bash
curl -X DELETE "$OPERATOR_API/sites/site-42/bonus-templates/4" \
  -H "Authorization: Bearer $KEY" \
  -H "X-Actor: jane@yourplatform"

Admin API documentation for the Oddyne Sportsbook.