ThrillConnect: ThrillPots REST API
ThrillConnect provides a REST API for your applications (frontend or otherwise) to safely retrieve information about jackpots that are running in the environment.
Retrieving a Jackpot for a particular Source
If you want to retrieve a jackpot for a specific source_id
, you can call the following endpoint:
GET /v1/thrillpots/instances/source/:source_id/brand/:brand_id
Parameter | Type | Required | Description |
---|---|---|---|
source_id | Path | Yes | The source ID for the request |
brand_id | Path | Yes | The brand ID for the request |
player_id | Query | No | The player ID that the request should be specific for |
country_code | Query | No | The country code for the request |
This request will use the provided parameters to retrieve the most appropriate jackpot for the source_id, brand_id, player_id and country_code combination.
If you specific the player_id
, you will also receive the opt-in status for that player in the response.
HINT: Once you have retrieved the Jackpot for a source, you can use the
id
of the Jackpot instance for when you need to opt a player in or out
Retrieving Currency Exchange Rates
If you need to retrieve the active exchange rates in use by the ThrillPots system, you can call the currencies endpoint:
GET /v1/currencies
This will retrieve the current exchange rates from the base currency of the system, for example:
{
"last_updated": 1715126401000,
"base_currency": "EUR",
"multipliers": {
"EUR": 1.0,
"USD": 1.0762,
"GBP": 0.8592,
"CAD": 1.4753,
"PLN": 4.311,
...
"NZD": 1.7921,
"AUD": 1.6303,
"RON": 4.9753,
"SGD": 1.4567,
"SEK": 11.6761,
}
}
Retrieving ThrillPots Sources
You can retrieve all configured sources for a specific brand by using:
GET /v1/thrillpots/sources?owner_id=XXX
The response to this query, if any sources have been configured for the owner_id
will look something like this:
[
{
"owner_id": "thrilltech:brand1",
"source_name": "site-wide",
"source_id": "site-wide-source",
"jackpots": [
{
"priority": 0,
"owner_id": "thrilltech",
"instance_id": "209cc142-ccb2-4e28-a763-0a031b560d74"
}
]
},
{
"owner_id": "thrilltech:brand1",
"source_name": "Deposit jackpot",
"source_id": "deposit-source",
"jackpots": [
{
"priority": 0,
"owner_id": "thrilltech",
"instance_id": "0a031b56-4e28-a763-ccb2-2090d74cc142"
}
]
}
]