Portal deweloperski

Portal deweloperski / Przewodnik dla operatorów

Dokumentacja techniczna w języku angielskim

OPERATOR GUIDE

Other operator endpoints and public feeds

SPILVON Jackpot Network is the independent site-wide product. It uses these signatures and a sessionless wallet win, not a game launch. See the casino integration guide and standalone OpenAPI.

Sign /api/v1/operator/* on your server with your API secret and call it on the API host (https://api.spilvon.com; on the games host it answers 421 WRONG_HOST). Public feeds do not use that secret and answer on both hosts. The machine-readable contract is openapi/operator-api.yaml.

EndpointPurpose
GET /api/v1/operator/gamesCatalogue, below.
GET /api/v1/operator/rounds/{round_id}Everything about one finished round: bet, win, result, fairness data, transactions, the jurisdiction and RTP variant it was played under, and details_url (below). A free round shows bet: "0.00" and free_round: { award_id, stake }. A round that is still open or settling is not in the ledger yet: add ?player_id=… and we ask the player's state directly (in_ledger: false, status, and the pending transaction with its attempts and last_error). With ?player_id=… a finished round is also found the moment it is final (in_ledger: true), even before it appears in the reports below.
GET /api/v1/operator/rounds?transaction_id=tx_…The same, found by a game transaction id. For a jackpot credit, match transaction_id in /operator/jackpots/wins (section 6.3). Finished rounds reach this index (and reports/daily) normally within a few seconds; if a just-finished round answers ROUND_NOT_FOUND, retry shortly or use the round id with ?player_id=….
GET /api/v1/operator/reports/daily?from=YYYY-MM-DD&to=YYYY-MM-DDPer day, game and currency (UTC), at most 366 days per request. Real money: rounds, bets, wins, ggr. Free rounds: free_rounds, free_round_stakes, free_round_wins. Game net_ggr = ggr − free_round_wins; jackpot prizes and contributions are reconciled separately (section 6.3). Reconcile daily against your own ledger (a day is complete a few minutes after it ends, UTC).
POST /api/v1/operator/players/{player_id}/revokeEnd all of a player's game sessions (self-exclusion, logout). Open rounds are still settled.
…/free-rounds…Free-round awards, section 6.1.
…/jackpots…Pool catalogue, prize payments and contribution reports, section 6.3.
GET/PUT /api/v1/operator/games/{code}/configRTP variant and game configuration, section 6.4.
POST /api/v1/operator/sandbox-wallet/players/{player_id}/sessionSandbox on the hosted reference wallet only. A session token for a test player (201 {"token": "sbx_…", "expires_at"}), to pass as token when you open a session.
POST /api/v1/operator/sandbox-wallet/players/{player_id}/depositSandbox on the hosted reference wallet only. Top a test player up: {"currency", "amount"} → {"balance"}.
POST /api/v1/operator/sandbox-wallet/players/{player_id}/balanceSandbox on the hosted reference wallet only. {"currency"} (default USD) → balance and the last 50 transactions. Limits and errors: "Sandbox first" above.

Catalogue. Every game has the same typed fields: code, name, kind (slot, instant, crash), enabled, client_ready, demo, free_rounds, rtp (string, e.g. "96.10"), max_win_x (number: largest payout of a round as a multiple of the stake), volatility, hit_frequency (string or null), features, platforms, languages, currencies[] (see section 5), assets (square 600×600 and wide 1200×675 WebP tile URLs, served cross-origin for your lobby) and details (the game's own facts, e.g. pay tables). The response may be cached for 5 minutes.

Round details link. details_url is a signed, read-only page of the round for your support staff, valid for 30 days. It can be embedded only by your registered origins. It shows nothing but that round.

Crash entries. Each kind: "crash" has its own room and non-operator-tunable chain edge. details contains edge_bps, curve_k (per ms), max_multiplier and min_auto_cashout (decimal strings), betting_ms, pause_ms, max_bets_per_round and partial_cashout. demo: false means no demo launch; never fall back to real money. Non-reviewed clients have client_ready: false and must not be listed in a player lobby.

Public endpoints (no authentication): GET /healthz; GET /.well-known/spilvon-wallet-keys.json (section 1.1); GET /api/v1/public/crash/{game_code} (that game’s real-money fairness record, no demo data); the lobby and jackpot fairness feeds in section 6.3.

Errors from our API: { "error": { "code": "…", "message": "…" }, "request_id": "…" }. Some errors carry extra fields (e.g. retry_after_ms). Quote the request_id when you contact us.

Rate limit. Each operator may make 3,000 requests per minute to this API (more on request), counted per calendar minute across all endpoints. Beyond it we answer 429 RATE_LIMITED with Retry-After (seconds) and X-RateLimit-Limit; wait that long, then retry (with a fresh signature). Requests with a bad signature do not count against your limit; an IP address that keeps failing authentication may be refused (429) for the rest of the minute.

6.1 Free rounds (free spins / free bets)

You can give players free rounds in our games through this API: N rounds at a fixed stake, in a list of games, inside a validity window. The player wagers nothing; we never debit the wallet for them. Each award round is an ordinary round of the game at the award stake, with the game's normal maths and RTP. Its result is paid with one win per round, flagged as free (section 3), including "0.00" wins: the win with free_round_number = free_rounds_total tells you the award is used up.

Issue — POST /api/v1/operator/free-rounds (body up to 64 KB)

json
{
  "reference": "xmas-2026-welcome",
  "players": ["u-48213", "u-48214"],
  "currency": "USD",
  "game_codes": ["thunder-anvil", "magma-vault"],
  "rounds": 10,
  "stake": "0.20",
  "valid_from": "2026-12-20T00:00:00Z",
  "valid_until": "2026-12-31T23:59:59Z"
}
FieldRequiredNotes
referenceyesYour own id for the campaign or award, 1–64 chars of A–Z a–z 0–9 _ . : -. Idempotency key together with each player.
players or player_idyesUp to 500 player ids per request (send more requests with the same reference for more).
currencyyesOne currency per award; the player must play in it.
game_codesyes1–50 round-based games (free_rounds: true in the catalogue; not Zenith).
roundsyes1–1000 rounds per player.
stakeyesStake per round, decimal string. Must be a stake a paying player could choose in every listed game (minimum bet, maximum bet, and each game's maximum-win ceiling).
valid_untilyesISO 8601 with a time zone. At most 366 days after valid_from.
valid_fromnoDefault: now. At most 180 days ahead.

Answer 201 (something was created) or 200 (everything already existed):

json
{ "reference": "xmas-2026-welcome", "created": 2, "existing": 0, "awards": [
  { "award_id": "fra_…", "reference": "xmas-2026-welcome", "player_id": "u-48213", "currency": "USD", "game_codes": ["thunder-anvil", "magma-vault"],
    "rounds_total": 10, "rounds_played": 0, "rounds_remaining": 10, "stake": "0.20", "win_total": "0.00",
    "valid_from": "2026-12-20T00:00:00.000Z", "valid_until": "2026-12-31T23:59:59.000Z", "status": "active", "claimed": false,
    "created_at": "…", "ended_at": null, "created": true } ] }

Idempotency. Sending the same request again creates nothing and returns the same awards (created: false on each). Adding players under an existing reference with the same terms creates awards only for the new players. The same reference with different terms is refused with 409 REFERENCE_CONFLICT; a cancelled reference with 409 CAMPAIGN_CANCELLED. Retry freely after a timeout: nothing is ever awarded twice.

Read — GET /api/v1/operator/free-rounds/{award_id} (exact live counts) and GET /api/v1/operator/free-rounds?reference=…&player_id=…&status=active|completed|cancelled|expired&limit=1..500&after={award_id} (pages in next).

Cancel — POST /api/v1/operator/free-rounds/{award_id}/cancel, or every award of a reference with POST /api/v1/operator/free-rounds/cancel and { "reference": "…" }. Cancelling a cancelled award is a no-op (200); a completed or expired award answers 409 AWARD_NOT_ACTIVE.

Lifecycle.

statusMeaning
activePlayable (from valid_from) while rounds remain.
completedEvery round has been played.
cancelledYou cancelled it. No new round starts; rounds_remaining is 0.
expiredvalid_until passed. No new round starts.
  • A round already in progress when an award is cancelled or expires (a multi-step game such as mines, waiting for the player's next move) finishes normally and is paid with its free-round win. A single-step round (a slot spin) is indivisible: it either happened before the cancellation or not at all.
  • The count is exact: each award round is consumed in the same atomic step that fixes its outcome, by the one process that owns the player. Retries, reloads, several open tabs and lost connections never play a round twice or lose one.
  • A free-round win your wallet does not acknowledge is retried exactly like any win (section 3); the award round stays counted.
  • claimed becomes true the first time the player opens one of our games after the award was issued. From then on the player sees the award in every eligible game; the game shows "Free round 3/10" and the stake.
  • Awards are for real-money sessions only; demo sessions never see them.

Money and reports. The award stake is not money the player wagered, so it never appears in bets or ggr; it is reported as free_round_stakes. Free-round wins are real payouts from your wallet: reported as free_round_wins, and deducted from game GGR to give net_ggr. The ledger records each award round with bet: "0.00", the stake and the award id (GET /rounds/{round_id}), and its only transaction is the win.

6.2 Jurisdictions and responsible gaming

Games behave according to the licence a session plays under. Your account holds one or more jurisdictions (agreed with us; default is the offshore profile where everything is allowed); each session names one (jurisdiction in section 2) or gets your default. The rules come from a profile published by our compliance team (versioned, never edited once published), may be tightened for your account, and may be tightened again per session; they can never be loosened. The effective rules are fixed for the session and recorded with every round (jurisdiction, profile_version in the round lookup).

SwitchWhat happens
Feature buyOff: the game hides it; a buy is refused (403 FEATURE_NOT_AVAILABLE) before any wallet call.
Autoplay, maximum rounds, loss limitThe game shows only what is allowed; autoplay rounds are flagged to us and refused when not allowed.
Minimum cycle time (slots / other games)A round cannot start sooner than this after the player's previous one (409 ROUND_TOO_FAST with retry_after_ms; the game waits it out by itself).
Turbo, quick spin, slam stopHidden where not allowed (or allowed only inside free-stake features).
Maximum stake (per currency, optionally per age band)The uk profile caps a slot cycle at £2.00 for 18-24 and £5.00 for 25+. A cap applies directly in its currency or is converted to the session currency at the stored USD rates, rounded down. Stakes above the cap (including a buy's price) are refused. An unconvertible cap allows no stake.
Jackpots, simultaneous games, certified games only, free playEnforced at launch (403 GAME_NOT_AVAILABLE_IN_JURISDICTION, 403 DEMO_NOT_AVAILABLE_IN_JURISDICTION); with simultaneous games off, opening a game ends the player's sessions in other games.
Session clock, net positionShown by every game in a thin strip at the top.
Reality checkEvery game shows the same check (time played, wagered, won, net, Continue / Leave, link to history_url) in the player's language; no round starts while a check is due (409 REALITY_CHECK_PENDING) until the player continues. If you run your own check in your page instead, ask us to leave the interval empty and use the realityCheck messages (section 2).
RTP variantsA game with an adjustable RTP plays only RTP values certified for it (and allowed by the jurisdiction).

6.3 SPILVON Jackpot: reconciliation and lobby display

Sign these operator GETs with your API secret. Pool amounts are converted from nano-USD to decimal strings in the display currency (default USD); the wallet prize itself is fixed in the player's currency.

Endpoint under /api/v1/operatorReturns
/jackpots?currency=EURNon-closed network pools (including ones not joined) and your local pools, with opted_in, excluded_jurisdictions, games, status, min_bet, rtp_contribution and live tiers. min_bet: null means that currency cannot participate.
/jackpots/wins?from=YYYY-MM-DD&to=YYYY-MM-DDYour players' prizes. Match win_id to wallet jackpot_win_id; transaction_id and paid_at are null until the wallet acknowledges. round_id identifies the triggering play.
/jackpots/contributions?from=YYYY-MM-DD&to=YYYY-MM-DDrows by UTC day, pool, game and currency: eligible_bets, eligible_stake and contribution_usd (six decimals). Contributions are already part of stakes; do not debit them again.

Both reports include the end dates, at most 92 days apart, and return at most 5,000 rows. Reconcile jackpot credits here, separately from base-game wins in reports/daily.

Public, read-only GETs on the games host (no signature, session or player data; successful feeds allow CORS * and are cacheable for 3 seconds):

Endpoint under /api/v1/publicReturns
/jackpots?operator=op_…&currency=EUR&game=dice{currency, pools} for the operator's local and joined network pools. operator is required (op_ + 32 lowercase hex); game and currency are optional. This is a display feed, not proof a particular player is eligible.
/jackpots/{pool_id}?currency=EUROne pool with current tier amounts and seeds, trigger (average turnover, amount cap or deadline), cycle numbers and commitments.
/jackpots/{pool_id}/cycles?tier=0The latest 100 cycles, newest first, for tier 0–7 (default 0), with how_to_verify. For must-drop cycles the secret and drop point are revealed only after the cycle ends. Amount fields ending in _nano are nano-USD integer strings; times are Unix milliseconds.

Lobby ticker. Add <div id="spilvon-jackpots"></div> to your lobby, then run this from your lobby's JavaScript module (replace the host and operator id):

js
import { mountJackpotTicker } from "https://games.example.com/static/common/jackpot/jackpot.js";
const ticker = await mountJackpotTicker(null, {
  container: document.getElementById("spilvon-jackpots"), layout: "bar", lang: "en",
  source: { base: "https://games.example.com", operator: "op_…", currency: "EUR" },
});
// When unmounting the lobby: ticker.destroy();

Use layout: "stack" for a column or source.game to filter the feed. Allow the games host in your CSP for scripts, styles and connections: the module loads its CSS and language pack under /static/common/jackpot/. It polls every 10 seconds and pauses in hidden tabs. Inside a game, the ticker uses the session's bearer-authenticated GET /api/v1/game/jackpots instead (5 seconds); demo sessions may display real amounts but cannot win. Never put an operator or wallet secret in the lobby. See the jackpot operator guide for eligibility and settlement.

6.4 RTP variants — configuring a game

GET /api/v1/operator/games/{code}/config and PUT /api/v1/operator/games/{code}/config use §1 HMAC over the exact path, method and raw body, including the expected version. One configuration per operator/title; no player, session, region override, segment or arbitrary edge parameter. The partner portal offers the same controls under Games → Game configuration. SPILVON staff use Operators → Games → Configure.

GET returns version (0 = inherited legacy settings), settings, available_variants (build-matched certificates and floor in every held jurisdiction), non-selectable math_candidates, pre-age-band currency ranges, and whether approval is required. rtp_bps=9400 means 94% return, not 94% house edge. Non-default instant models use ids such as edge-200-v1 (2% edge); shared crash games cannot change odds per tenant. A blank available list means there is nothing you can activate. Local unconfigured development defaults are not a lab certificate; production launches need a matching certificate, including the default.

PUT replaces the settings. Send all five fields, omit currency overrides to inherit. Example (only if this id was listed):

~~~json {"expected_version":0,"reason":"Signed release for the USD lobby","settings":{"variant_id":"rtp-94-v1","enabled":true,"feature_buy":"off","pool_jackpots":"inherit","currencies":{"USD":{"min_bet":"0.10","max_bet":"1.00","max_win":"500.00"}}}} ~~~

  • Limits are decimal strings in the indicated currency. enabled:false at title or currency level refuses new sessions. Max win is a per-round exposure ceiling. Fixed-multiplier games reduce the maximum base stake in advance; whole-line variants round the stake ladder inwards. Jurisdiction and age limits still win, including the full feature-buy price. External pools require their separate membership (§6.3); a per-title opt-out never removes an intrinsic jackpot or alters the base RTP. No daily payout truncation or withdrawal limit is available here.
  • 200 means a demo-only account published the returned version. 202 on a casino or aggregator is a proposal, not a release. A shared HMAC credential cannot count as a person: a named staff member sponsors it, then a different authorised staff member approves the follow-up. A named partner admin or staff maker needs one distinct staff approver. Re-fetch to see the active version. The shared global safety stop continues to override every tenant.
  • 409 STALE_GAME_CONFIG: read again and review the intervening changes. 409 APPROVAL_PENDING: review the existing request. 409 OFFLINE_CHANGE_REQUIRED: a self-service cutover is forbidden (notably GB); contact Compliance. Unknown, expired or wrong-build variants and below-floor returns are rejected (403); malformed limits/unknown fields (400). Revalidation occurs at approval and launch. No operator route can issue or edit a certificate.
  • A launch URL pins terms when it is created, not when exchanged. Keep a session's rules/paytable/RTP from its init data (SDK sv.game.rtp); never substitute a cached lobby value. The rules that produced each settled round are in its hash-covered result.terms and the support API also returns variant_id, config_version, rtp_bps. If a previously loaded build is retired, reopen the game rather than replaying an old bet against new math. Existing stakes and wins are always honoured.