Bet/Win Events
Operators that offer a Casino product can send information about players' gaming experience either with Game Round events or Bet/Win Events. A guide on how to send the latter is provided below.
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 the ability to see actual bonus cost associated with your campaigns. Sending the bonus event will also provide the capability of creating activities on different bonus statuses, for example, if it's 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"}