Obtain your API credentials
Contact GitSlotPark to receive the following:
- API token — passed in every request you make to GitSlotPark
- Secret key — used to compute the HMAC-SHA-256 signature for each request
- agentID — your Partner ID, included in every request body
- GitSlotPark API base URL — the root URL for all platform API calls
https://casino.com/WalletService. GitSlotPark registers this URL and uses it to call your wallet endpoints whenever game events occur.Implement your callback service
Your server must expose HTTPS endpoints for the five wallet operations. GitSlotPark sends an HTTP POST with a JSON body to each endpoint as players interact with games. Your server must always respond with HTTP 200 and a JSON body.The five required endpoints are:
POST /GetBalance— return the player’s current balancePOST /Withdraw— debit the player’s balance for a betPOST /Deposit— credit the player’s balance for a winPOST /BetWin— process a combined bet and win in a single callPOST /RollbackTransaction— reverse a previously processed transaction
Callback service reference
See request fields, response fields, and examples for all five endpoints.
Verify your sign implementation
Every request — both from GitSlotPark to your callback service and from you to the GitSlotPark platform APIs — includes a
sign field. The signature is an HMAC-SHA-256 digest of the concatenated request fields, computed using your secret key.Validate your implementation against this test vector:| Field | Value |
|---|---|
| Input string | Partner01Player0112.30474e1a293c2f4e7ab122c52d68423fcbab9c15f2efdd46278e4a56b303127234 |
| Secret key | 1234567890 |
| Expected sign | 475D834ACC3AB61D7DF4EA42751C6275387BC1787A098D2D0E091698D9BF2043 |
Data signing reference
Learn how to compute the HMAC-SHA-256 signature and see field concatenation rules for each endpoint.
Fetch the game list
Call
POST /gameList on the GitSlotPark API to retrieve all games available to your players. The response includes each game’s gameID, which you use when launching a session.Game list API
View the full request and response schema for the /gameList endpoint.
Implement game launching
To start a game session for a player, call
POST /userAuth with your API token, the player’s userID, and the gameID you want to launch. GitSlotPark returns an authenticated gameURL. Redirect the player’s browser to that URL to start the session.Game launch guide
Step-by-step instructions for launching games and supported language codes.
User auth API
Full request and response schema for the /userAuth endpoint.
Test and go live
Before enabling production traffic, verify the following:
- All five callback endpoints return HTTP 200 with the correct JSON structure
- Your sign computation matches GitSlotPark’s expected signatures
- Withdraw correctly rejects requests when the player has insufficient funds (result code
6) - RollbackTransaction returns result code
9when the transaction was already rolled back - Duplicate
transactionIDvalues return result code11without re-processing