Skip to main content

Data Integration

Below you can find the documentation on API methods. For each method the following information is provided:

  • List of parameters.
  • List of errors returned by the method.
  • Data model returned.

POST v2/app/reports/ad_hoc

This method provides a report with Ah Hoc data for all players over a period of time.

Request URL

POST http(s)://API_URL//v2/app/reports/ad_hoc

ParameterValueDescriptionParameter TypeData Type
clientId(required)Identifier that is sent in the request linequerystring
sign(required)Request signatureheaderstring
userIdUser identifierformDatastring
currencyCurrency ISO codeformDatastring
dateFrom(required)The start date of the report. Example: 2017-12-01 00:00:00formDatastring
dateTo(required)The end date of the report. Example: 2017-12-01 00:00:00formDatastring
per-pageParameter to specify the number of records per pagequeryinteger
pageParameter to specify the page number to be retrievedqueryinteger

Errors returned

HTTP CodeMessage
400Bad Request
403Forbidden
404Not found
422Incorrect data
500Internal Server Error

Example of response

{
"data": [
{
"id": "116593-82-2018-04-23",
"type": "ad-hoc-report",
"attributes": {
"user-id": "116593",
"date": "2020-04-23",
"money-type": 82,
"currency": "USD",
"win": 0,
"loss": 0,
"deposit": 0,
"withdraw": 0,
"bets": 0,
"rake": 0,
"jackpot": 0,
"tournament-fee": 0,
"tournament-bet": 0,
"tournament-prize": 0,
"cash-result": 0,
"tournament-result": 0,
"ticket-fee": 0,
"ticket-bet": 0,
"slot-credit": 0,
"slot-debit": 0,
"rakeback": 0,
"rakeback-paid": 0,
"rakeback-unpaid": 0,
"rabbit-hunting": 0
}
}
],
"links": {
"self": {
"href": "string"
}
},
"meta": {
"total-count": 0,
"page-count": 0,
"current-page": 0,
"per-page": 0
}
}

Data aggregation in the system takes place every 10 minutes for the specified parameters. The displayed data corresponds to the period defined in the request. For instance, if parameters such as dateFrom = 2024-03-24 00:00:00 and dateTo = 2024-03-25 00:00:00 are included in the request, the returned data will represent the Ad Hoc information for the 24th of March.

GET v2/app/users/rake

This method provides information regarding the player's rake. It includes rake from cash tables as well as entryFee, rebuyAddonFee.

Request URL

GET http(s)://API_URL//v2/app/users/rake

ParameterValueDescriptionParameter TypeData Type
clientId(required)Identifier that is sent in the request linequerystring
sign(required)Request signatureheaderstring
userIdUser identifierformDatastring
currencyCurrency ISO codeformDatastring
dateFrom(required)The start date of the report. Example: 2017-12-01 00:00:00formDatastring
dateTo(required)The end date of the report. Example: 2017-12-01 00:00:00formDatastring
timeZoneExample: Asia/Calcutta, +03:00querystring
convertToPreferredCurrencyConvert the rake data to the user's preferred currency. If the preferred currency is not set, the default system currency is usedquerystring
per-pageParameter to specify the number of records per pagequeryinteger
pageParameter to specify the page number to be retrievedqueryinteger
sortField for the parameter by which to sort the tablesquerystring

Errors returned

HTTP CodeMessage
400Bad Request
403Forbidden
404Not found
422Incorrect data
500Internal Server Error

Example of response

{
"data": [
{
"id": "string",
"type": "players-rake",
"attributes": {
"user-id": "string",
"currency": "string",
"value": 0
}
}
],
"links": {
"self": {
"href": "string"
},
"first": {
"href": "string"
},
"last": {
"href": "string"
}
},
"meta": {
"total-count": 0,
"page-count": 0,
"current-page": 0,
"per-page": 0
}
}