Skip to content
Test environment

Sandbox environment

Build and test your integration against an isolated copy of your brand — test players, fake money, test cards and webhooks to your dev servers — without touching production.

Overview

Every operator on a plan with the Sandbox module (Growth and Enterprise) can have one sandbox: a separate tenant created from the live brand's configuration — branding, website content, menus, bonuses, games and roles — with its own website, its own players and its own API keys.

Create it in the backoffice under Tools → Sandbox (or ask your KinetX account manager). Your team gets access to the sandbox backoffice with the same roles; a yellow SANDBOX ribbon is always shown there, and the sandbox website shows a "Test environment — no real money" bar.

Nothing in the sandbox is real: its players are test players, its money is fake, and it is left out of invoices, platform reports, the cross-brand risk register, regulatory reports and uptime alerts.

Sandbox vs production

SandboxProduction
Operator API base URL https://api.sandbox.kinetx.bet/api/v1 https://kinetx.bet/api/v1
API keys kx_test_… kx_live_…
Player website your-brand.sandbox.kinetx.bet your brand domains
Payments KinetX sandbox gateway only (test cards) your configured payment providers
Games KinetX Originals with test money; provider games in demo mode the full catalogue with real money
Billing, reports, risk register never — isolated yes

Sandbox API keys

Keys created in the sandbox backoffice (Tools → API & Webhooks) start with kx_test_…. They sign requests exactly like production keys — same headers, same HMAC-SHA256 string to sign — but only work on the sandbox base URL.

Environments never mix: a sandbox key sent to the production API is refused with 401 TEST_KEY_ON_PRODUCTION, a production key sent to the sandbox API with 401 LIVE_KEY_ON_SANDBOX.

json
{
    "error": {
        "code": "TEST_KEY_ON_PRODUCTION",
        "message": "Sandbox keys (kx_test_…) only work on the sandbox API.",
        "details": {
            "sandbox_base_url": "https://api.sandbox.kinetx.bet/api/v1"
        }
    }
}

Every sandbox request is logged with its headers, bodies, signature check result and latency — open the request log in the sandbox developer tools to see exactly what the API received.

Test cards & scenarios

All sandbox payments go through the KinetX sandbox gateway — no real provider is ever called. Deposits open the sandbox payment page, where you enter a test card or press Approve / Decline; the result reaches the casino as a signed provider callback, exactly like a real PSP.

Test cardResult
4242 4242 4242 4242Approved immediately
5555 5555 5555 4444Approved immediately (Mastercard)
4000 0000 0000 0002Declined: card declined
4000 0000 0000 9995Declined: insufficient funds
4000 0000 0000 32203-D Secure challenge, approved after a short delay
4000 0000 0000 0077Stays pending (no callback) until the deposit is abandoned

Any expiry date in the future and any CVC work. The 3-D Secure card shows a challenge page that approves the payment after 4 seconds (or lets you fail the challenge). A pending payment is cancelled automatically when it is abandoned.

Payouts (withdrawals) are settled automatically a few seconds after approval. The cents of the amount choose the outcome:

…13Payout fails (e.g. 50.13)
…42Payout stays processing and is never settled automatically (e.g. 50.42)
any otherPayout is paid

Games & test money

  • KinetX Originals (slot, roulette, crash) are played for test money through the regular casino wallet, so rounds, limits, bonuses and webhooks behave exactly like production.
  • Third-party provider games open in their free-play demo mode only.
  • Top up any test player with "Add test funds" in the developer tools, or seed ready-made test players with balances and KYC states (verified, not verified, pending review, rejected). Seeded players sign in on the sandbox website with the password Sandbox-Test-1.

Webhooks & e-mails

Register your development endpoints in the sandbox backoffice (Tools → API & Webhooks → Webhooks). Sandbox events are signed and retried exactly like production events. The webhook tester in the developer tools sends any event type with a sample payload you can edit, and shows the request that was sent and your endpoint's response.

E-mails to sandbox players are only delivered to the developer addresses on the sandbox allow-list and always carry a [SANDBOX] subject prefix; e-mails to any other address are logged and skipped.

Developer tools & reset

The sandbox backoffice has Tools → Sandbox with everything for development:

  • Reset sandbox data — wipes the sandbox's players, transactions, payment requests, game rounds, API logs and webhook deliveries (configuration, staff, API keys and endpoints stay). Production is never touched.
  • Seed test players and add test funds.
  • Webhook tester and the API request log explorer (request, signature check result, response, latency).
  • The developer e-mail allow-list and the Postman downloads.

Postman collection

Import the collection and the sandbox environment into Postman, paste your sandbox key and secret into the environment, and send any request — the collection signs every request for you, and "Issue a player session token" stores the token for the player-session requests.