Grant FRB to players
Grant FRB to players
Grant a free round bonus to a player.
Request endpoint: /frb/grant/{version}/players
Request Method: POST
Usage information:
The request body includes the FRB template to granted to the specified players.
Starting of 2025-12-01, authorization token is required for this request. The authorization token must be Base64-encoded
as follows:
This request requires an authorization token: Bearer authorization token.
Token Format: The authorization token must be Base64-encoded as follows:
AuthorizationToken = encode(back_office_email:back_office_password)
For Playson and Evoplay Entertainment, only one player can be sent in the array.
Template ID should be the ID of the FRB template created in the Create FRB template endpoint.
In the response body, parameter templateId is used to get the FRB templates granted successfully to players from the succeededAwarded parameter list under the FrbTemplatesAwardedCollections object.
Request parameters:
| Parameter | Data type | Description |
|---|---|---|
| version | String required | The API version. Only version 1.0 is currently supported. Other version values are accepted, but are treated as 1.0. Example: 1.0 |
| Authorization | Yes (Header) | Sinatra back office user |
Request body:
body includes FRB template to be granted to specific players.
{
"templateId": "string",
"transactionId": "string",
"players": [
{
"playerId": "string",
"playerCurrency": "EUR",
"playerCountry": "USA"
}
]
}- transactionId - (optional) The unique transaction ID for this request, generated by the casino platform. This is used for idempotency, to avoid processing the same request multiple times. If a request with the same transactionId has already been processed, the system will return the result of the previous request instead of processing it again.
- Currency - ISO 4217 currency code, should be the same as the currency of the player, which is used to play the game.
- Country - alpha-3 country code, should be the same as the country (alpha-2) of the player, which is used to play the game.
Response parameters:
None
Example Response
Success response
{
"id": "string",
"templateId": "string",
"players": [
{
"playerId": "string",
"playerCurrency": "string",
"playerCountry": "string"
}
],
"status": "string",
"templatesAwardedCollections": {
"failed_frb_awarded": [],
"succeeded_frb_awarded": [
{
"templateId": "success_template_id",
"providerName": "string",
"players": [
{
"playerId": "string",
"playerCurrency": "string",
"playerCountry": "string"
}
],
"status": "string"
}
],
"partially_frb_awarded": []
}
}For transactions(wager/result), the frbid which will be sent in request is the template id within succeeded_frb_awarded, in this case “success_template_id”.
For Get / Cancel FRB requests, the id which should be sent is the template id within succeeded_frb_awarded, in this case “success_template_id”.
Error Response:
{
"errMsg": "bad request"
}Response codes:
| Code | Status | Message |
|---|---|---|
| 200 | success | 200 success Got games providers FRB metadata successfully |
| 400 | bad request | bad request |
| 422 | Invalid parameters | One of: • bet amount should be an integer • no metadata fields for this provider • Available date is empty • Available date should be with format yyyy-MM-dd HH:mm:ss • Available date should be a future date • Expiration date is empty • Expiration date should be with format yyyy-MM-dd HH:mm:ss • Expiration date should be a future date • Number of rounds is empty • Balance type id is empty • Balance type id allowed values are 0 or 1 • Wrong balance type id size - values are 0 or 1 • Offer name can not be more than 255 characters • Game info list is empty • Game id not exist in this provider • provider supports only single game |
| 500 | internal server error | internal server error |