Integration guide: connect the casino API step by step
What a development team does to connect a casino site to the NexusGGR casino API, from the first credentials to the first real player. Each step names the part of the documentation it needs.
The integration steps
Get your agent credentials
We create your agent and send the API endpoint, agent code, agent token and agent secret, with a test balance. The API Settings page of the back office shows them too.
Register your server IPs
Add the IPv4 or IPv6 addresses of your backend to the IP whitelist. Requests from any other address get no answer.
Load providers and games
Call provider_list and game_list to fill your lobby with names, codes, types and images.
Build your wallet
Seamless: answer the user_balance and transaction callbacks on your site endpoint. Transfer: call user_deposit before play and user_withdraw after.
Launch games
Call game_launch with the player, the provider and the game, and open the launch URL in your lobby.
Test and go live
Play every game type with the test balance, check the game history and balances, then open the games to your players.
Every request looks the same
One endpoint, a JSON body over HTTPS and a method field that names the call. This provider_list request is the first call most teams make:
POST https://{API_SERVER}
{
"method": "provider_list",
"agent_code": "your_agent_code",
"agent_token": "your_agent_token"
}
{
"status": 1,
"code": 7777777,
"msg": "SUCCESS",
"providers": [
{
"code": "PRAGMATIC",
"name": "Pragmatic Play",
"type": "slot",
"status": 1
}
]
}Provider list and Game list in the documentation show both answers in full.
Check every answer
- status 1 and code 7777777 mean success
- A failure has status 0, a 7770xxx code and a message for your logs
- Decide on status or code, never on the message text
- provider_list and game_list once per second, game logs once per minute
Response codes and Rate limit in the documentation list them all.
Choose your wallet first
The wallet model decides most of the work on your side: callbacks for the seamless wallet, transfers for the transfer wallet. Seamless wallet or transfer wallet compares them.
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
}Frequently asked questions
Which programming languages can I use?
Any language that sends JSON over HTTPS: PHP, Node.js, Python, Java, Go or .NET. The documentation includes a PHP sample.
Can I test before going live?
Yes. We create your agent with a test balance, so you can play every game type before you open the games to players.
Where do I find my credentials?
On the API Settings page of the back office: the API endpoint, agent token, agent secret and your site endpoint.
What happens to a request from an unregistered IP?
It gets no answer. Register every backend server in the IP whitelist before your first call.
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.