/BetWin endpoint for game types where the bet and win outcome are determined at the same moment — for example, instant-win games. Your server must deduct betAmount and credit winAmount in a single atomic operation, then return the resulting balance. If winAmount is "0.00", the player lost the bet entirely. You implement this endpoint on your own server.
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. 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.
The amount wagered, expressed as a string with exactly 2 decimal places (for example,
"10.00").The amount won, expressed as a string with exactly 2 decimal places. Use
"0.00" when the player lost the bet entirely.A unique identifier for this transaction, generated by GitSlotPark. Store this value so you can detect duplicate requests and handle any subsequent rollback.
The game round identifier this transaction belongs to.
HMAC-SHA-256 signature computed over
agentID + userID + betAmount + winAmount + transactionID + roundID (concatenated in that order) using your secret key. Expressed as a 64-character uppercase hex string.Example request from GitSlotPark (player bets 10.00, wins 5.00)
Response fields
Your server must respond withContent-Type: application/json and HTTP 200.
Result code. Use
0 for success, 6 for insufficient funds, or 11 for a duplicate transaction. See result codes below.The player’s balance after both the debit and credit have been applied. Required when
result is 0 or 11.Your internal transaction reference. Optional — include it if you want to correlate GitSlotPark transactions with your own records.
Example success response
Example insufficient funds response
Example duplicate transaction response
Result codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
3 | Invalid sign |
5 | User not found |
6 | Insufficient funds |
11 | Duplicate transaction |
Notes
A
winAmount of "0.00" is valid and means the player lost. The net effect on the player’s balance is always winAmount - betAmount.