Skip to Content
API MethodsGift Spins

Gift Spins

Gift Spins (free rounds) let the casino grant a player a number of rounds on a given game. Only games with has_freespins: 1 in the Gamelist support them.

Rounds played from a Gift Spin session are reported through the normal bet and win callbacks, carrying the freespins_id you supplied here, and freespins_finished on the last one.

Create Gift Spin

Request

[POST] {PROVIDER_URL}/v1/create-freespins
ParameterTypeRequiredDescription
casino_idintegeryesprovided by the game provider
user_idintegeryesuser’s ID at the casino
usernamestringyesuser’s username
currencystring(3)yescurrency code in ISO 4217 format
game_idintegeryesunique game id
freespins_idstringyesyour unique Gift Spin ID, echoed back in the bet and win callbacks
start_atstringnostart date of the Gift Spin, format Y-m-d H:i:s
valid_untilstringyesexpiry date of the Gift Spin, format Y-m-d H:i:s
countintegeryesnumber of rounds granted
betintegernofixed bet in cents per payline, defaults to the game’s minimum bet
lineintegernofixed number of paylines for the session

Request body:

{ "casino_id": 1, "user_id": 10000, "username": "user123", "currency": "USD", "game_id": 19773, "freespins_id": "gs-2024-0001", "start_at": "2024-09-23 10:00:00", "valid_until": "2024-09-30 23:59:59", "count": 20, "bet": 25, "line": 10 }

bet is an integer in cents, unlike the amount of the bet and win callbacks, which is a decimal in the major currency unit. bet: 25 means 0.25 USD.

Response

Successful response will be returned as a json object.

{ "code": 200, "message": "Freespins created successfully" }

A Gift Spin that is no longer valid is rejected with error 1011.

Cancel Gift Spin

Cancels a Gift Spin that has been created but not yet played out.

Request

[POST] {PROVIDER_URL}/v1/cancel-freespins
ParameterTypeRequiredDescription
casino_idintegeryesprovided by the game provider
game_idintegeryesunique game id
freespins_idstringyesthe Gift Spin ID used at creation
user_idintegeryesuser’s ID at the casino
usernamestringyesuser’s username
currencystring(3)yescurrency code in ISO 4217 format

Request body:

{ "casino_id": 1, "game_id": 19773, "freespins_id": "gs-2024-0001", "user_id": 10000, "username": "user123", "currency": "USD" }

Response

Successful response will be returned as a json object.

{ "code": 200, "message": "Freespins [ID] cancelled successfully" }
Last updated on