CasinoRng · Connect & Play

Call us to open a game. We call your wallet.

Use one private Token for both directions. In Coordinator, save your HTTPS callback URL and enable Use the same token for wallet callbacks. Keep the token on your backend.

1. Get a session

Find the game_id in the game list or your company’s JSON list.

curl -X POST 'https://casinorng.du-cdn.org/coordinator/customer/launch' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "request_id": "opening-001",
    "player_id": "player-123",
    "agent_id": "agent-1",
    "game_id": "greentube.bookofradeluxe",
    "currency": "USD",
    "exit_url": "https://your-site.example/casino"
  }'

For this launch call, replace YOUR_TOKEN with the Token shown in Coordinator. Coordinator uses the same token when it calls your wallet.

Response:

{
  "session_id": "...",
  "launch_url": "https://casinorng.du-cdn.org/coordinator/play?..."
}

2. Open the returned URL

Open launch_url in the player's browser, unchanged. The Home button returns to the exit_url you supplied. No exit-domain registration is needed.

Use a new request_id for each opening. If a request times out, retry the same ID and body. We handle eligible saved-game recovery.

3. Answer our wallet callbacks

We POST JSON to your callback URL. Your backend receives these headers.

Content-Type: application/json
Authorization: Bearer YOUR_TOKEN

Check the bearer token against the same Token you use for launch requests. If the token is missing or wrong, reject the callback before processing it. On a balance check, agent_id, session_id, and game_id may be null.

{
  "transaction_id": "unique-saved-transaction-id",
  "player_id": "player-123",
  "agent_id": "agent-1",
  "session_id": "...",
  "game_id": "greentube.bookofradeluxe",
  "currency": "USD",
  "amount": "-100",
  "type": "spin",
  "description": "Spin stake"
}

Amounts are integer strings in minor units: USD "-100" = deduct $1.00; "250" = credit $2.50. "0" is a balance check or notification; do not change money.

Apply the amount and return HTTP 200 with the updated balance:

{
  "transaction_id": "unique-saved-transaction-id",
  "balance": "24900"
}

If you reject it, apply nothing and return:

{
  "transaction_id": "unique-saved-transaction-id",
  "error": "INSUFFICIENT_FUNDS"
}

type is spin, bonus, gamble, jackpot or balance. Wins awaiting Collect or Gamble remain pending on our side; only signed cash callbacks change your wallet.

Process each transaction ID once. Save the wallet change and response together. On an identical retry, return the original response without changing money again. Reject a changed body using the same ID.

No capability files, capacity-policy files, separate bonus/Gamble endpoints or per-spin polling are required.

Your company’s game list (JSON)

curl 'https://casinorng.du-cdn.org/coordinator/integration/gamelist.json?currency=USD' \
  -H 'Authorization: Bearer YOUR_TOKEN'

The response has a games array. Use a game’s id as game_id in the launch request. The currency filter is optional. The token selects your company’s catalogue.