/freeSpinStatus to check the current state of a free spin grant. The response tells you how many spins were originally granted, how many the player has used, and how many remain. Use this endpoint after game sessions to keep your bonus tracking records up to date.
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 unique identifier for the free spin grant, returned by
/assignFreeSpin.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 + freeSpinID.Example request
Response fields
Result code.
0 indicates success; any other value indicates an error. See result codes below.Current state of the free spin grant. One of
"active", "completed", or "expired". Present when result is 0.Total number of free spins originally granted. Present when
result is 0.Number of free spins the player has already used. Present when
result is 0.Number of free spins still available to the player. Present when
result is 0.Human-readable error description. Present when
result is not 0.Example success response (in progress)
Example success response (completed)
Example error response (not found)
Status values
| Status | Description |
|---|---|
active | The player still has free spins remaining and can continue using them. |
completed | All free spins have been used; the grant is fully consumed. |
expired | The grant reached its expiry time before all spins were used. |
Result codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
2 | Wrong input parameters |
3 | Invalid sign |
4 | Invalid agent |
7 | Invalid API token |
8 | Free spin grant not found |
Notes
You obtain the
freeSpinID when you call /assignFreeSpin. If you did not store it at grant time, you will not be able to query the status of that bonus.