Skip to content

Crediting the player's winnings for freespins ​

Overview ​

Request typeURL
POST<server-partner>/finish

This method allows you to credit the player's winnings for freespins.

Notice

The request is executed by the provider.

If /bet/win per free spin setting is applied, the request will not be triggered.

Parameters ​

Request ​

Optional fields are excluded from hash calculations.
Optional* fields are included in hash calculations only if they are provided.

NameTypeDescription
amountstringTransaction amount
currencystringThe currency in which the game will be played
partnerIdbigintUnique partner identifier
playerIdstringUnique player identifier in the partner’s system
gameIdbigintUnique identifier of the game
roundIdbigintUnique identifier of the betting round
transactionIdbigintUnique identifier of the provider's winning transaction
freespinIdstringUnique identifier of the freespins
campaignExtIdstringUnique identifier of the campaign in the partner’s system
sessionIdstringoptional*Unique game session identifier in the partner’s system
hashstringSignature (sha256 from encryption string)

String to hash

“finish” + amount + currency + partnerId + playerId + gameId + roundId + transactionId + freespinId + campaignExtId + sessionId* + apiKey

Response ​

NameTypeDescription
balancestringPlayer's current balance
transactionIdstringUnique identifier of the winning transaction in the partner’s system

Example ​

Request ​

js
{  
    amount: '20.00',  
    currency: 'USD',  
    partnerId: 1,  
    playerId: '432',  
    gameId: 3,  
    roundId: 7665,  
    sessionId: '123',  
    transactionId: 36,
    freespinId: '123',
    campaignExtId: '1',
    hash: 'd919a11d4cb1b0dc4cc0d5f880c6970fd160d434b3a779a66a9a7f6451d108fd'  
}

Response ​

js
{  
    status: 'success'  
    data: {  
        balance: '10103.63',
        transactionId: '1234567890'  
    }  
}