Appearance
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.vieworsportsbook.configure. X-Actornames the admin on your side who made the change. It lands verbatim in our audit log: at most 128 letters, digits, spaces and@ . _ + - :. Optional onGET.
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
| Status | code | When |
|---|---|---|
| 400 | integration.actor_required | X-Actor missing on a non-GET, or malformed. |
| 400 | validation.bad_body | Malformed JSON, an unknown field, or a non-object body. |
| 401 | integration.invalid_key | Missing or unknown key. |
| 403 | integration.missing_scope | The key lacks the route's scope. |
| 403 | integration.site_not_allowed | The key may not act on {siteId} (also returned for a site that does not exist). |
| 500 | internal_error | Unexpected failure. Safe to retry reads. |
| 503 | db_unavailable | A 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 capsWhen a bet is placed, every limit is resolved most-specific-wins along a ladder:
| Scope | What | Configured here |
|---|---|---|
| 1 | match on site | no |
| 2 | group + tournament + market type | Market limits |
| 3 | group + category + market type | Market limits |
| 4 | group + sport + market type | Market limits |
| 5 | group + tournament | Nodes |
| 6 | group + category | Nodes |
| 7 | group + sport | Nodes |
| 8 | sport on site | no |
| 9 | site base (wildcard) | Seed defaults |
null= inherit. A field leftnullat a level says nothing and the next level down the ladder decides. This is how you "clear" a value.0is not "unlimited". At node and base scopes a0is a literal limit —maxStake: 0blocks the bet. There is no unlimited sentinel; leave the fieldnullto 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.
| Query | Type | Required | Notes |
|---|---|---|---|
currency | string | No | Only 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 }
}| Field | Type | Notes |
|---|---|---|
id | string | Server-assigned. |
site_id | string | Note the snake_case. |
name | string | "" if never set. |
currency | string | 3-letter code; limits of the group are compared in this currency. |
allowHigherPayout | boolean | true: 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.
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | Trimmed, must not be empty. No length limit, not unique. |
currency | string | Yes | 3 letters; trimmed and uppercased (eur → EUR). Not checked against the site's currency list. |
allowHigherPayout | boolean | No | Default 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 }'| Status | code | When |
|---|---|---|
| 422 | validation.bad_body | name empty. |
| 422 | validation.invalid_currency | currency is not 3 letters. |
| 409 | risk_group.duplicate | Id 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 }'| Status | code | When |
|---|---|---|
| 404 | not_found | No such group on this site. |
| 422 | validation.invalid_id | {id} is not an integer. |
| 422 | validation.bad_body / validation.invalid_currency | As 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"| Status | code | When |
|---|---|---|
| 409 | risk_group.in_use | A player or partner on the site is still assigned to the group. Reassign them first. |
| 404 | not_found | No such group on this site. |
| 422 | validation.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:
| Limit | Value |
|---|---|
| min bet size (selections) | 1 |
| max bet size (selections) | 20 |
| min stake | 1 |
| max stake | 1000 |
| max payout | 10000 |
| active / live active | true |
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
}| Field | Type | Notes |
|---|---|---|
id | string | The catalogue id of the sport / category / tournament. |
name | string | English catalogue name. May be "" in a PUT response when the catalogue is unreachable. |
active | boolean | null | false closes prematch betting on this entity for the group. null = inherit. |
liveActive | boolean | null | false closes live betting. null = inherit. |
prematch, live | limit block | Always present; each field null = inherit. |
…minBetSize / …maxBetSize | integer | null | Number of selections on the ticket (combo size), not money. |
…minStake | number | null | Minimum stake. |
…maxStake | number | null | Cumulative max stake per match (see the model above). 0 blocks. |
…maxPayout | number | null | Max payout. |
tMaxStake | number | null | Per-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.
| Query | Type | Required | Level returned |
|---|---|---|---|
| (neither) | Sports | ||
sport_id | integer | No | Categories of that sport |
sport_id + category_id | integer | No | Tournaments of that category |
q | string | No | Case-insensitive name substring. |
limit | integer | No | Default 50, max 200. |
offset | integer | No | Default 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.
| Field | Type | Required | Notes |
|---|---|---|---|
level | string | Yes | sport | category | tournament. |
sportId | integer | When level = sport | 1 … 2147483647. |
categoryId | integer | When level = category | Same range. |
tournamentId | integer | When level = tournament | Same range. |
active, liveActive | boolean | null | No | |
tMaxStake | number | null | No | |
prematch, live | limit block | No | Fields 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 }
}'| Status | code | When |
|---|---|---|
| 422 | risk_node.invalid_level | level is not one of the three. |
| 422 | risk_node.missing_scope_id | The level's id is missing, ≤ 0 or out of range. |
| 404 | not_found | No 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.
| Query | Type | Required | Notes |
|---|---|---|---|
level | string | Yes | sport | category | tournament. |
sportId / categoryId / tournamentId | integer | The one matching level | camelCase 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 }| Field | Type | Notes |
|---|---|---|
id | string | Market type id. |
name | string | Canonical market name. |
maxStakeP | number | null | Prematch cap. null = inherit. |
maxStakeL | number | null | Live cap. null = inherit. |
GET /risk-groups/{id}/markets
Scope risk.view. The market types under one node with the group's caps.
| Query | Type | Required | Notes |
|---|---|---|---|
level | string | Yes | sport | category | tournament. |
sportId / categoryId / tournamentId | integer | The one matching level | Picks the node. |
sportId | integer | Recommended at every level | Also narrows the list to the markets that sport offers. Without it at category/tournament level you get every market type. |
configured | boolean | No | true: only the markets with a cap, unpaged (q/limit/offset ignored). |
q | string | No | Market name substring, or an exact market type id. |
limit | integer | No | Default 50, max 200. |
offset | integer | No | Default 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 }
}| Status | code | When |
|---|---|---|
| 422 | risk_node.invalid_level | Bad level. |
| 422 | risk_node.missing_scope_id | The level's id is missing or invalid. |
| 503 | db_unavailable | The 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.
| Field | Type | Required | Notes |
|---|---|---|---|
level | string | Yes | sport | category | tournament. |
sportId / categoryId / tournamentId | integer | The one matching level | |
marketTypeId | integer | Yes | Must exist in the market registry. |
maxStakeP | number | null | No | > 0, or null. |
maxStakeL | number | null | No | > 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 }'| Status | code | When |
|---|---|---|
| 422 | risk_node.invalid_level | Bad level. |
| 422 | risk_node.missing_scope_id | The level's id is missing or invalid. |
| 422 | risk_market.unknown_market_type | marketTypeId missing, ≤ 0, or not in the registry. |
| 422 | risk_market.invalid_stake | A 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 → defaultThere 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.
level | entityId |
|---|---|
market | Market type id |
tournament | Tournament id |
category | Category id |
sport | Sport id |
default | Must 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.
| Field | Type | Required | Notes |
|---|---|---|---|
level | string | Yes | See the table above. |
entityId | integer | Yes | > 0; exactly 0 for default. |
delayMs | integer | Yes | 0 … 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 }'| Status | code | When |
|---|---|---|
| 422 | validation.bad_body | Unknown 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.
| Query | Type | Required | Notes |
|---|---|---|---|
level | string | Yes | |
entity_id | integer | Yes | snake_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"| Status | code | When |
|---|---|---|
| 422 | validation.invalid_id | entity_id missing or not an integer. |
| 422 | validation.bad_body | Unknown 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": {} }| Field | Type | Notes |
|---|---|---|
siteId | string | |
marketType | integer | Market type id (a number here). |
enabled | boolean | false = hidden on this site. |
displayName | string | "" = no override. |
settings | object | Layout 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"| Status | code | When |
|---|---|---|
| 422 | validation.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.
| Field | Type | Required | Notes |
|---|---|---|---|
displayName | string | null | Yes (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" }'| Status | code | When |
|---|---|---|
| 400 | validation.bad_body | Empty or malformed body. |
| 422 | validation.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": []
}
}| Field | Notes |
|---|---|
tabs[] | Only enabled tabs with at least one market in this sport, in display order. id/sort are numbers. |
tabs[].slug | other 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.
| Status | code | When |
|---|---|---|
| 422 | validation.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"
}| Field | Type | Notes |
|---|---|---|
id | string | |
siteId | string | |
name | string | Unique per site. |
currency | string | One of the site's currencies. |
minOddLimit | decimal string | Every leg must be at or above this odd. Trailing zeros are dropped ("1.3"). |
tiers[] | array | Ordered by firstMatchCount. |
tiers[].firstMatchCount / lastMatchCount | integer | Inclusive leg-count band. |
tiers[].bonus | decimal string | Payout 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, updatedAt | string | RFC 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.
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | Trimmed; 1–100 characters. |
currency | string | Yes | 3 letters, uppercased; must be one of the site's currencies (or its default currency). |
minOddLimit | decimal | Yes | 1 … 1000, at most 4 decimals. |
tiers | array | Yes | 1 … 50 tiers. |
tiers[].firstMatchCount | integer | Yes | 0 ≤ first ≤ last. |
tiers[].lastMatchCount | integer | Yes | ≤ 100. |
tiers[].bonus | decimal | Yes | 0 … 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" }
]
}'| Status | code | When |
|---|---|---|
| 422 | validation.bad_body | name empty or too long; minOddLimit missing or out of range. |
| 422 | validation.invalid_currency | currency is not 3 letters. |
| 422 | bonus_template.currency_not_on_site | The currency is not configured on the site (the error lists the site's currencies). |
| 422 | bonus_template.invalid_tiers | No tiers, more than 50, a missing field, a bound out of range, or overlapping bands (the error names the tier). |
| 409 | bonus_template.duplicate_name | The 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:
| Status | code | When |
|---|---|---|
| 404 | not_found | No such template on this site. |
| 422 | validation.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"