/assignFreeSpin to grant a player a number of free spins on a specific game. Free spins are bonus rounds where the player does not wager their own balance — GitSlotPark covers the stake. Once granted, the player launches the target game and the free spins are applied automatically. Save the freeSpinID returned in the response so you can track the bonus progress with /freeSpinStatus.
Endpoint
https://api.gitslotpark.com with the base URL provided to you by GitSlotPark.
Request parameters
Your API token provided by GitSlotPark.
Your Partner ID assigned by GitSlotPark.
The player’s ID in your system.
The target game for the free spins. Use a
gameID returned by /gameList.The number of free spins to grant to the player.
HMAC-SHA-256 signature of the concatenated request parameters using your secret key, expressed as an uppercase hex string. For this endpoint the signature input is:
agentID + userID + gameID + spinCount.Example request
Response fields
Result code.
0 indicates success; any other value indicates an error. See result codes below.Unique identifier for this free spin grant. Present when
result is 0. Pass this value to /freeSpinStatus to check how many spins the player has used.Human-readable error description. Present when
result is not 0.Example success response
Example error response (invalid game)
Result codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
2 | Wrong input parameters |
3 | Invalid sign |
4 | Invalid agent |
7 | Invalid API token |
Notes
Save the
freeSpinID from a successful response. You will need it to call /freeSpinStatus and check the player’s remaining spins.Free spins are tied to a specific game. The player must launch the game identified by
gameID to use them. Spins cannot be transferred to another game after granting.