Casino Software Aggregator

Seamless wallet integration, explained for the developer who has to build it

With a seamless wallet, player balances never leave your system. We call your wallet URL with signed balance, debit and credit requests, and you answer. This page covers each request, the rules for idempotency and rollbacks, and the edge cases that break first integrations.

Updated 2026-11-25

The model in one paragraph

You keep the money. When a player opens a game through CSA and places a bet, we send a debit request to your wallet URL. You check the balance, take the stake and reply with the new balance. When the round pays out, we send a credit. When we need to show the balance in the game, we ask for it. There is no separate game wallet to fund and no transfers to reconcile. That is the core difference from a transfer wallet, covered in seamless vs transfer wallet.

The three requests

Balance

Asks for the player's current balance in the currency of the session. Answer with the amount in minor units. This request moves no money, so it is safe to answer from a read replica as long as that replica is not lagging.

Debit

Takes a stake from the player. It carries the player, the amount in minor units, the currency, the game and round references, and a unique transaction id. If the balance is sufficient, book it and return the new balance. If not, return the insufficient-funds response defined in the docs and do not change anything.

Credit

Adds a win to the player. Same fields as a debit, with its own transaction_id and a reference to the round it pays. Book it and return the new balance.

All amounts are integers in minor units: 1050 means 10.50 in a two-decimal currency. Never parse them as floating point.

Idempotency on transaction_id

This is the rule that matters most. Every debit and credit carries a transaction_id that is unique for that operation. Networks fail in the middle: your wallet may book a debit and the reply may never reach us. When that happens the same request can arrive again with the same transaction_id.

Your wallet must recognise it and return the result of the first processing, not book the money a second time and not return an error. In practice:

  1. Before touching the balance, look up the transaction_id in a table of processed transactions.
  2. If found, return the stored response.
  3. If not, book the movement and store the transaction_id with its response in the same database transaction.

A unique index on transaction_id is the cheapest safety net you can add. Keep these records for a long time: sports bets can settle days after the stake was taken.

Rollbacks

Sometimes a debit has to be reversed: the game could not start the round, the studio voided a live hand, a sports event was cancelled. In those cases we send a rollback, flagged as such and referencing the original transaction.

  • If you booked the original debit, return the stake and store the rollback.
  • If you never saw the original debit, we recommend recording the rollback anyway and replying successfully, then refusing to book that debit should it arrive later.
  • If the rollback itself is repeated, answer from your stored result, exactly as with debits and credits.

That second case catches many teams. When a network misbehaves, requests can arrive out of order, so a defensive wallet does not assume the debit always comes first.

Free-spin wins: a credit with no debit

When a player uses free rounds, no stake is taken, so there is no debit. If the free spin wins, you receive a credit with nothing before it. A wallet that insists every credit matches a prior debit will reject these wins, and the player will complain within minutes. Accept the credit, book it as a win, and tag it in your own ledger if your bonus rules need to treat it differently.

Signatures

Every request we send to your wallet is signed, and you should reject any request whose signature does not verify. Calls you make to our API are signed with HMAC-SHA256 using your key id and secret. Practical points:

  • Verify against the raw request body as received. Parsing and re-serialising JSON changes whitespace and key order and breaks the comparison.
  • Use a constant-time comparison function for the signature check.
  • Keep the secret in server configuration only. Rotate it from the portal if it is ever exposed.

Header names and the exact signing scheme are in the API documentation.

Timeouts and speed

Players feel wallet latency directly: a slow debit is a spin that hangs or a live bet that misses the window. If your wallet does not answer in time, the operation is treated as not confirmed and the round may be reversed with a rollback for that transaction_id, or the request may be retried. Your handler must cope with both, which is exactly what idempotency and out-of-order rollback handling give you.

  • Keep the request path short: verify, check idempotency, update balance, reply.
  • Push CRM events, bonus progress and analytics to a queue after replying.
  • Avoid long row locks on the player record; live and crash games can send several requests for one player very close together.
  • Monitor response times per request type. Debit latency is the number to watch.

Testing your wallet

The operator portal has a test-callback button that sends a signed request to your wallet URL and shows both sides of the exchange. Use it first to confirm your signature check. Then launch games in demo mode to check your lobby, and finish with small real-money rounds covering a win, a loss, a free-spin credit and a rollback. Teams that already have a wallet usually finish integration in a few days. Ready to start? Get your API key.

Frequently asked questions

What happens if my wallet receives the same debit twice?
Return the stored result of the first processing. Never book it again and never answer with an error.
Why did I get a credit without a debit?
Most often it is a free-spin win. No stake was taken, so only the credit arrives.
Can a rollback arrive before its debit?
It can happen when requests are delayed. The defensive approach is to record the rollback, reply successfully, and refuse to book the debit if it shows up later.
Are amounts decimal or integer?
Integers in minor units of the session currency.
Do you support a transfer wallet?
We run a seamless wallet model. See seamless vs transfer wallet for why.
How do I test the integration?
Use the test-callback button in the operator portal, then demo launches, then small real rounds.

Keys in minutes, not a sales cycle

Create your account, set your wallet URL and launch your first game today. GGR pricing only — no setup or monthly fee.

Get API key