Skip to main content

Reference

Wallet base​

One HTTPS URL. We derive the three addresses below by appending a fixed path to whatever you give us — there is no per-endpoint override, and an operator that cannot serve the three under one base does not integrate.

https://casino.example.com/api/sportsbook-wallet
→ {base}/balance
→ {base}/transaction
→ {base}/profile

A trailing slash is trimmed before a path is appended — .../wallet/ and .../wallet derive the same three addresses. A base carrying a query string or a fragment is refused outright: there is nowhere for the appended path to go, and we do not guess at what you meant.

Each address answers where it is. We do not follow a redirect: a 3xx is read as a refusal, on the profile, the balance and every movement alike.

EndpointMethodAnswers
Player profileGET{base}/profileWho the player is. This is what authenticates a token.
BalanceGET{base}/balanceWhat the player has. Money, and only money.
Debit · Credit · Rollback · PrizePOST{base}/transaction, one URLEvery movement. type tells them apart.
SimulationAny movement carrying simulation: trueA connection test. Ignore it, answer like a real success — no money moves.

Symptoms​

What you seeWhat it is
No player can sign in — every session is invalidA required field is missing from your profile response. All six, non-empty. See Player profile.
Players are sent back to /The widget found no session: you set no auth-token, your profile endpoint refused the one you set — or, if you verify the signature, refused our signature. All are sign-outs by design — see When there is no session. Cancel the event's default to keep an anonymous page.
Every player is signed out the moment the sportsbook opens, and your /profile answers 401 to a token your own site acceptsYou verify the signature and the key you verify with is not the one stored in the back-office. Prove the pair with Test connection; our log names what your wallet answered.
Empty widget, tenant error in the consoleWe do not recognise the domain. Check the exact host, www included — or, in an iframe, the tenantId parameter.
Empty widget; a blocked request to widget-config.json in the consoleYour CSP is missing connect-src for cdn.example.com. Allow the origins in Web component §3.
Works on production, not on stagingDifferent host. Pass tenant-id="<your UUID>".
Odds never moveThe websocket is blocked. Allow wss:// to api.example.com.
Bets refused with a generic errorYour transaction endpoint answered something other than 200 or 402.
A player was charged twiceA repeated reference moved money twice. It must replay.