Casino
Real Time Events You Can Send
FT CRM will process the raw data feed of events and construct game rounds, game sessions and relevant segmentation data based on this.
POST /v1/integration/casino
Send each Bet and Win event separately.
Sample Request for initial "Bet" event:*
{
"activity_id": "2019020103308257480",
"amount": 0.2,
"balance_after": 193.83,
"balance_before": 194.03,
"bonus_wager_amount": 0.0,
"currency": "EUR",
"exchange_rate": 1,
"game_id": "10911",
"is_round_end": false,
"locked_wager_amount": 0.00,
"origin": "sub.example.com",
"round_id": "2019020103308257480",
"timestamp": "2018-02-18 18:13:06",
"type": "Bet",
"user_id": "52530",
"vendor_id": "1",
"wager_amount": 0.0
}
Sample Request for the following "Win" event:
{
"activity_id": "2019020103308257481",
"amount": 0.5,
"balance_after": 194.33,
"balance_before": 193.83,
"bonus_wager_amount": 0.0,
"currency": "EUR",
"exchange_rate": 1,
"game_id": "10911",
"is_round_end": true,
"locked_wager_amount": 0.00,
"origin": "sub.example.com",
"round_id": "2019020103308257480",
"timestamp": "2018-02-18 18:13:07",
"type": "Win",
"user_id": "52530",
"vendor_id": "1",
"wager_amount": 0.0
}
POST /v1/integration/bonus
Sending the bonus event will help you achieve better conversion tracking on activities, with ability to see actual bonus cost associated to your campaigns. Sending the bonus event will also provide capability of creating activities on different bonus statuses, for example, if its lost too quickly.
Request
{
"amount": 10.3,
"bonus_code": "CHRISTMAS2018",
"bonus_id": "9821",
"bonus_turned_real": 1.4,
"currency": "EUR",
"exchange_rate": 0.1,
"locked_amount": 2.3,
"origin": "sub.example.com",
"product": "Casino",
"required_wagering_amount": 1.2,
"status": "Forfeited",
"timestamp": "2015-03-02T8:27:58.721607+06:00",
"type": "WelcomeBonus",
"user_bonus_id": "863512",
"user_id": "7865312321"
}
POST /v1/integration/gameround
Sending each Game Round containing a consolidated view of game events.
Request
{
"user_id": "1234",
"round_id": "12384A",
"game_id": "1234",
"game_name": "Dead or Alive",
"game_type": "Slots",
"vendor_id": "12",
"vendor_name": "Netent",
"real_bet_user": 10.0,
"real_win_user": 5.0,
"bonus_bet_user": 0.0,
"bonus_win_user": 0.0,
"real_bet_base": 10.0,
"real_win_base": 5.0,
"bonus_bet_base": 0,
"bonus_win_base": 0,
"user_currency": "EUR",
"device_type": "desktop",
"timestamp": "2015-03-02T8:27:58.721607+06:00",
"origin": "sub.example.com"
}
Key | Type | Required? | Accepted Values | Description |
---|---|---|---|---|
user_id | string | Yes | N/A | User Id |
round_id | string | Yes | N/A | Gameround Id |
game_id | string | Yes | N/A | Game id |
game_name | string | Yes | e.g. Dead or Alive | Game name |
game_type | string | Yes | e.g. Slots | game_type |
vendor_id | string | Yes | N/A | Vendor Id |
vendor_name | string | No | N/A | N/A |
real_bet_user | number | No | N/A | N/A |
bonus_bet_user | number | No | N/A | N/A |
bonus_win_user | number | No | N/A | N/A |
real_bet_base | number | No | N/A | N/A |
real_win_base | number | No | N/A | N/A |
bonus_bet_base | number | No | N/A | N/A |
bonus_win_base | number | No | N/A | N/A |
user_currency | string | Yes | N/A | User currency |
device_type | string | yes | mobile, desktop, app, unknown | N/A |
timestamp | string | Yes | Format: RFC3339 2015-03-02T8:27:58.10Z | Timestamp |
origin | string | Yes | e.g. www.brand.com | N/A |