Party Games All games

Embedding the games on your site

Each game is a web page shown in an <iframe>. Your server asks our integration API for a launch URL for the player, and your page puts that URL in the iframe. Wallet moves (bet, win, rollback, refund) come back to your server as signed callbacks, so the player's balance stays in your system.

1. Live demo (no integration needed)

Demo mode plays with FUN coins and needs no account. Any game opens with ?demo=true:

<iframe src="https://GAMES_HOST/dice/?demo=true"
        allow="autoplay; fullscreen" style="width:100%;aspect-ratio:16/10;border:0"></iframe>

2. Real play: get a launch URL from your server

Call POST /api/v1/game/init on the integration API from your backend (never from the browser). Sign each request with your merchant ID and private key:

x-merchant-id: <merchant id>
x-timestamp:   <unix ms>
x-nonce:       <hex sha1 of 16 random bytes>
x-hash:        base64(sha256(minifiedJsonBody + privateKey + merchantId + timestamp))

{ "gameID": "dice", "currency": "USD", "playerID": "u-123",
  "playerNickname": "nick", "sessionID": "your-session-id" }

→ 200 { "url": "https://GAMES_HOST/dice/?session=…", "sessionID": "…" }

Put url in the iframe. The session is valid for 24 hours of inactivity. POST /api/v1/game/init/demo with just gameID returns a demo URL.

3. Wallet callbacks to your server

We call your callback URL (same signature headers) with "action": "balance", "bet", "win", "rollback" or "refund". Every action carries a transactionId: treat it as idempotent (a repeat must return the same result, never move money twice). A self-test endpoint runs a 20-step check of your callbacks before go-live.

Game IDs

GamegameIDPath

Iframe notes