Skip to main content

Reward API

  • Requests and responses contain the header Content-Type: application/json
  • All requests passed from/to the Operator’s system have a signature header, except options.
  • Request Direction: Operator => Veligames

FreeBet Options

Request

Using this method Operator can retrieve available config options per providerId

OPTIONS /free-bet

Response

{
"freeBetOptions": {
"pragmatic": {
"betAmount": [{ "fieldName": "betAmount", "required": true }],
"betPerLineAmount": [
{ "fieldName": "betPerLineAmount", "required": true },
{ "fieldName": "lines", "required": false }
]
},
"veliplay": {
"betLevel": [{ "fieldName": "betLevel", "required": true }]
},
"spribe": {
"betAmount": [{"fieldName": "betAmount", "required": true}]
}
}
}

Assign FreeBet

Request

Using this method Operator can assign free bet to a player.

POST /free-bet/assign
PropertyTypeDescriptionRequired
freeBetIdstringOne-time unique identifier generated by OPERATORYes
providerIdstringIdentifier of the game providerYes
gameIdstringIdentifies specific gameYes
playerIdstringIdentifier of the playerYes
currencystringPlayer's ISO 4217 currency code. Examples: EUR, USDYes
brandIdstringCasino Brand IdentifierYes
endDatestringFree bets end date (timezone UTC)Yes
quantitystringFree bets quantity assigned to a playerYes
configobjectRequired/Optional fields and values are based on providerId and should be checked according to freeBetOptionsYes
config.betAmountnumberBet amount per spinNo
config.betLevelnumberBet LevelNo
config.betPerLineAmountnumberAmount of bet per line (Relevant for some slot games)No
config.linesnumberTotal Bet will be calculated by other fields * lines, for example betPerLineAmount * linesNo, Default 1
config.denominationnumberBet denomination, If set to null, the default number will be used based on selected game.No
config.coinsnumberNumber of coins. Must match the number of coins available in the selected game. If set to null, the default number of coins will be used.No

Response

PropertyTypeDescriptionRequired
acknowledgedbooleantrue if no errorYes

Error Protocol

warning

Veligames will asynchronously request provider to assign a freebet. Success response does not guarantee you will not get an ERROR status callback. This is pre-provider validation protocol.

PropertyTypeDescriptionRequired
errorErrorTypeError Code if something went wrong with the requestyes
detailsobject [fieldName]: 'error description'Error descriptionNo

Cancel FreeBet

Request

Using this method Operator can cancel existing free bet of a player.

POST /free-bet/cancel
PropertyTypeDescriptionRequired
freeBetIdstringPreviously assigned unique identifier generated by OPERATORYes
brandIdstringCasino Brand IdentifierYes

Response

PropertyTypeDescriptionRequired
acknowledgedbooleantrue if no errorYes

Error Protocol

warning

Veligames will asynchronously request provider to cancel a freebet. Success response does not guarantee you will not get an ERROR status callback. This is pre-provider validation protocol.

PropertyTypeDescriptionRequired
errorErrorTypeError Code if something went wrong with the requestyes
detailsobject [fieldName]: 'error description'Error descriptionNo

FreeBet Info

Request

Using this method Operator can get information about the existing free bet of a player and get its status.

POST /free-bet/info
PropertyTypeDescriptionRequired
freeBetIdstringPreviously assigned unique identifier generated by OPERATORYes
brandIdstringCasino Brand IdentifierYes

Response

PropertyTypeDescriptionRequired
freeBetIdstringOne-time unique identifier generated by OPERATORYes
brandIdstringCasino Brand IdentifierYes
statusstringCREATED, ASSIGNED, CANCELLED, ERROR, PLAYED (status will be changed to PLAYED as soon as we receive first win for that freebet. Freebet can not be cancelled after PLAYED status is assigned)Yes
reasonstringRelevant if status=ERRORNo

FreeBet Status Event

  • Request Direction: Veligames => Operator
POST [operator-defined-base-url]/status

Request

PropertyTypeDescriptionRequired
freeBetIdstringOne-time unique identifier generated by OPERATORYes
brandIdstringCasino Brand IdentifierYes
operationTypeenumASSIGN, CANCELYes
statusstringASSIGNED, CANCELLED, ERRORYes
reasonstringRelevant if status=ERRORNo

Response

HttpCode 200

Error Types

ErrorTypeStatus CodeDescription
UNKNOWN_ERROR500General error, internal server error
BAD_REQUEST400Missing/invalid parameters
UNAUTHORIZED401Invalid signature
FREE_BET_EXISTS409Free bet exists (Assign)
FREE_BET_NOT_FOUND404Free bet not found (Cancel/Info)
NOT_ALLOWED405For example cancel not allowed. (Cancel/Assign)