Seamless wallet API or transfer wallet: how player money moves
Every casino API needs a wallet model. With the seamless wallet, balances stay on your platform and the API calls your backend for every bet and win. With the transfer wallet, you move funds into a game wallet by API and read them back after play.
Seamless wallet: your platform keeps the balance
Before and during play, the API calls your site endpoint. Your backend answers with the player's balance and applies every bet and win, so player funds stay in your database.
- user_balance: return the player's current balance, even when it is 0
- transaction: apply a bet, a win or both, and return the new balance
- One callback for slots, live casino, mini games, fish games and the sportsbook, with the game type in each request
- Answer within 5 seconds with status 1 and the new balance; status 0 refuses a bet you cannot cover, a win is never refused, and an unanswered transaction can come again with the same txn_id
- Deduplicate on txn_id, so a resent transaction is never applied twice
POST https://your-site.com/gold_api
{
"method": "transaction",
"agent_code": "your_agent_code",
"agent_secret": "your_agent_secret",
"agent_balance": 9999200,
"user_code": "player_1001",
"user_balance": 100000,
"game_type": "slot",
"slot": {
"provider_code": "PRAGMATIC",
"game_code": "vs20olympgate",
"type": "BASE",
"bet_money": 1000,
"win_money": 200,
"round_id": 63792613432127,
"txn_id": "64a83f2fc597acc9004eec52c3f84c30",
"txn_type": "debit_credit",
"is_end": true
}
}
{
"status": 1,
"user_balance": 99200
}Transaction and User balance in the documentation describe both callbacks field by field.
Transfer wallet: move funds by API
You move part of a player's balance into the game wallet with user_deposit. The API settles bets and wins in that wallet; after play, you read the balance and move it back with user_withdraw.
- user_deposit and user_withdraw move funds between your agent balance and the player
- agent_sign gives each transfer its own ID, so a resent transfer is not applied twice
- transfer_status confirms a transfer whose answer you did not receive
- No callbacks to build: the API keeps the game balance
POST https://{API_SERVER}
{
"method": "user_deposit",
"agent_code": "your_agent_code",
"agent_token": "your_agent_token",
"user_code": "player_1001",
"amount": 10000,
"agent_sign": "deposit_0001"
}
{
"status": 1,
"code": 7777777,
"msg": "SUCCESS",
"agent_balance": 990000,
"user_balance": 10000
}Deposit and withdraw in the documentation lists every field and answer.
Which one to choose
Both models use the same game API: provider and game lists, game launch and history, and on Pragmatic Play slots, bonuses and free-spin tours.
| Feature | Seamless wallet | Transfer wallet |
|---|---|---|
| Where balances live | On your platform | In the game wallet of the API |
| What you build | A site endpoint for balance and transaction callbacks | Deposit and withdraw calls around each session |
| Balance during play | Updated on your side for every bet and win | Updated in the API, read back after play |
| A good fit for | Platforms with their own wallet and many products | A fast start, or sites without a real-time wallet |
Frequently asked questions
Does the seamless wallet work for live casino and the sportsbook?
Yes. The same transaction callback carries slot, live casino, mini game, fish game and sportsbook bets, with the game type and the provider in each request.
How do I avoid applying a transaction twice?
Store the txn_id of every transaction you apply, and treat one you already have as done. round_id is shared by the bet and the win of a round, so it cannot be used for this.
Does my site endpoint need HTTPS?
Yes. Enter an https address on the API Settings page, without /gold_api at the end: it is added to every request.
Which wallet is faster to integrate?
The transfer wallet, because there are no callbacks to build. The seamless wallet takes more work but keeps every balance on your platform.
Launch your casino with NexusGGR
Tell us about your project, your markets and your currencies. We will set up your agent account, your API credentials and a test balance so your team can start integrating right away.