Freebets API
Freebets API Reference: Supplier API
Get a list of prepaids
Returns the list of available prepaids. A prepaid is a reward template which specifies obtainable rounds or spins (bet_count), value of each round or spin (bet_value), and the currency of the reward per game. For bonus_buy prepaids, the bet_count does not matter. bet_value specifies the worth of the bonus.
RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key associated with the provided operator_id.
The unique identifier of Hub88 configuration in the Supplier's system used to authorize incoming requests. Could be either interger or a string.
1The unique game identifier in Provider's system in the form of a string. game_code can be obtained from the /game/list endpoint and is a required parameter.
clt_dragonrisingOK
POST /freebet/prepaids/list HTTP/1.1
Host:
X-Hub88-Signature: text
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"operator_id": 1,
"game_code": "clt_dragonrising"
}OK
[
{
"prepaid_uuid": "0e6bde62-4713-4b85-b510-59f0d729d8f7",
"game_code": "clt_dragonrising",
"currency": "EUR",
"bet_value": 0,
"bet_count": 5,
"bonus_buy": true,
"meta": {}
}
]Create a reward
Endpoint for creating rewards. Should support creating rewards/bonuses.
Creating a single-use reward:
The
prepaid_uuidis specified in the request.If
bet_valueand/orbet_countin the prepaid isNULL, any values can be shared. Otherwise, the values from the prepaid will be used to create the reward.
RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key associated with the provided operator_id.
The unique identifier for an reward on Hub88 side in standard 16-byte UUID format.
a28f93f2-98c5-41f7-8fbb-967985acf8feThe ISO 4217 currency code. The following list contains all currencies supported by the Hub88 system. Note that native game play support with these currencies may vary per Provider.
EURPossible values: The unique user ID in the Hub88's system. In case of DEMO gameplay, this parameter may be omitted.
john12345ID of an Hub88's sub-partner (brand, whitelabel, site, etc.) which uses the same integration and credentials as the Hub88. Used for detailed reporting and integration type switching.
my-casino-idThe date and time combination in ISO 8601 Extended format (YYYY-MM-DDThh:mm:ss).
2017-11-05T13:15:30Standard 16-byte prepaid's unique ID (UUID) on Hub88 side referencing a prepaid reward.
0e6bde62-4713-4b85-b510-59f0d729d8f7The unique identifier of Hub88 configuration in the Supplier's system used to authorize incoming requests. Could be either interger or a string.
1The unique game identifier in Provider's system in the form of a string. game_code can be obtained from the /game/list endpoint and is a required parameter.
clt_dragonrisingThe date and time combination in ISO 8601 Extended format (YYYY-MM-DDThh:mm:ss).
2017-11-05T13:15:30The amount of money is displayed in integers (Int64). To convert real float value to integer Hub88 multiplys it by 100000. Example: $3.56 must be represented as 356000
The amount of spins / game rounds to be granted.
5OK
POST /freebet/rewards/create HTTP/1.1
Host:
X-Hub88-Signature: text
Content-Type: application/json
Accept: */*
Content-Length: 319
{
"reward_uuid": "a28f93f2-98c5-41f7-8fbb-967985acf8fe",
"currency": "EUR",
"user": "john12345",
"sub_partner_id": "my-casino-id",
"start_time": "2017-11-05T13:15:30",
"prepaid_uuid": "0e6bde62-4713-4b85-b510-59f0d729d8f7",
"operator_id": 1,
"game_code": "clt_dragonrising",
"end_time": "2017-11-05T13:15:30",
"bet_value": 0,
"bet_count": 5
}OK
{
"user": "john12345",
"start_time": "2017-11-05T13:15:30",
"reward_uuid": "a28f93f2-98c5-41f7-8fbb-967985acf8fe",
"prepaid_uuid": "0e6bde62-4713-4b85-b510-59f0d729d8f7",
"game_code": "clt_dragonrising",
"end_time": "2017-11-05T13:15:30",
"currency": "EUR",
"bet_value": 0,
"bet_count": 5
}Cancel a reward
Endpoint for canceling an reward. Please note that reward already claimed by user cannot be canceled.
RSA-SHA256 is used to sign the request body using the private key. The signature is validated using the public key associated with the provided operator_id.
The unique identifier for an reward on Hub88 side in standard 16-byte UUID format.
a28f93f2-98c5-41f7-8fbb-967985acf8feThe unique identifier of Hub88 configuration in the Supplier's system used to authorize incoming requests. Could be either interger or a string.
1OK
POST /freebet/rewards/cancel HTTP/1.1
Host:
X-Hub88-Signature: text
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"reward_uuid": "a28f93f2-98c5-41f7-8fbb-967985acf8fe",
"operator_id": 1
}OK
{
"user": "john12345",
"start_time": "2017-11-05T13:15:30",
"reward_uuid": "a28f93f2-98c5-41f7-8fbb-967985acf8fe",
"prepaid_uuid": "0e6bde62-4713-4b85-b510-59f0d729d8f7",
"game_code": "clt_dragonrising",
"end_time": "2017-11-05T13:15:30",
"currency": "EUR",
"bet_value": 0,
"bet_count": 5
}Last updated
Was this helpful?

