/GetBalance endpoint to check a player’s current balance before launching a game and at various points during gameplay. You implement this endpoint on your own server. Your server must return the player’s balance immediately — this callback is called frequently, so keep your response times low.
Endpoint
{your_callback_base_url} with the HTTPS base URL you registered with GitSlotPark (for example, https://casino.com/WalletService).
Your endpoint must be served over HTTPS and must always return HTTP 200, even when reporting an error. Use the
result field in the JSON body to communicate success or failure.Request parameters
GitSlotPark sends the following JSON body to your endpoint.Your Partner ID assigned by GitSlotPark.
The player’s ID in your system.
HMAC-SHA-256 signature computed over
agentID + userID (concatenated in that order) using your secret key. Expressed as a 64-character uppercase hex string.Example request from GitSlotPark
Response fields
Your server must respond withContent-Type: application/json and HTTP 200.
Result code. Use
0 for success. See result codes below.The player’s current balance, expressed to exactly 2 decimal places (for example,
150.75). Required when result is 0.ISO 4217 currency code for the player’s wallet (for example,
"USD"). Optional but recommended.Example success response
Example error response (player not found)
Result codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
3 | Invalid sign |
5 | User not found |