Crediting the player's winnings for freespins
Overview
| Request type | URL |
|---|---|
| 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.
| Name | Type | Description | |
|---|---|---|---|
| amount | string | Transaction amount | |
| currency | string | The currency in which the game will be played | |
| partnerId | bigint | Unique partner identifier | |
| playerId | string | Unique player identifier in the partner’s system | |
| gameId | bigint | Unique identifier of the game | |
| roundId | bigint | Unique identifier of the betting round | |
| transactionId | bigint | Unique identifier of the provider's winning transaction | |
| freespinId | string | Unique identifier of the freespins | |
| campaignExtId | string | Unique identifier of the campaign in the partner’s system | |
| sessionId | string | optional* | Unique game session identifier in the partner’s system |
| hash | string | Signature (sha256 from encryption string) |
String to hash
“finish” + amount + currency + partnerId + playerId + gameId + roundId + transactionId + freespinId + campaignExtId + sessionId* + apiKey
Response
| Name | Type | Description |
|---|---|---|
| balance | string | Player's current balance |
| transactionId | string | Unique 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'
}
}