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.
| Endpoint | Method | Answers |
|---|---|---|
| Player profile | GET{base}/profile | Who the player is. This is what authenticates a token. |
| Balance | GET{base}/balance | What the player has. Money, and only money. |
| Debit · Credit · Rollback · Prize | POST{base}/transaction, one URL | Every movement. type tells them apart. |
| Simulation | Any movement carrying simulation: true | A connection test. Ignore it, answer like a real success — no money moves. |
Symptoms
| What you see | What it is |
|---|---|
| No player can sign in — every session is invalid | A 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 accepts | You 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 console | We 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 console | Your CSP is missing connect-src for cdn.example.com. Allow the origins in Web component §3. |
| Works on production, not on staging | Different host. Pass tenant-id="<your UUID>". |
| Odds never move | The websocket is blocked. Allow wss:// to api.example.com. |
| Bets refused with a generic error | Your transaction endpoint answered something other than 200 or 402. |
| A player was charged twice | A repeated reference moved money twice. It must replay. |