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.
REST API
RabbitMQ Connector
Kafka Connector
⬆️ POST /v1/integration/casino
RabbitMQ Message Properties
key | value |
---|---|
key | value |
type | CASINO |
The type is expected as a property (but not in the payload) of the RabbitMQ Message. Any header will be ignored.
Kafka Message Headers
key | value |
---|---|
key | value |
type | CASINO |
Send each Bet and Win event separately.
If you are planning on sending "Rollback" as "status", please inform your integration manager.
Sample Request for initial "Bet" event
Bet
Win
Key | Type | Required? | Accepted Values | Description |
---|---|---|---|---|
Key | Type | Required? | Accepted Values | Description |
activity_id | string | Yes | N/A | Unique ID for each event |
amount | float | No | N/A | The total amount (bonus_wager_amount + wager_amount ) |
balance_after | float | No | N/A | Player balance after the round is finished. |
balance_before | float | No | N/A | Player balance before the round started. |
bonus_wager_amount | float | No | N/A | Amount (either bet or win) if the round was played using bonus money. |
currency | string | Yes | Format: ISO 4217 e.g. EUR | Player currency |
exchange_rate | float | Yes | e.g. 0.1 | Exchange rate |
game_id | string | Yes | N/A | Game ID |
game_name | string | No | e.g. Dead or Alive | Game name |
game_type | string | No | Slots, Live Casino, Table | Game type |
is_round_end | boolean | No | true/false | If the round is ended |
locked_wager_amount | float | No | N/A | Amount (either bet or win) if the round was played using money from a "locked" wallet (when bonus and real money is combined) |
origin | string | Yes | e.g. www.brand.com | N/A |
round_id | string | No | N/A | Send same for Bet & Win |
timestamp | string | Yes | Format: RFC3339
2015-03-02T8:27:58.10Z | Timestamp |
type | string | Yes | "Bet", "Win" | If the event is a Bet or Win |
user_id | string | Yes | N/A | User id |
vendor_id | string | Yes | N/A | Vendor id |
vendor_name | string | No | e.g. NetEnt | Vendor name |
wager_amount | float | No | N/A | Amount (either bet or win) if the round was played using real money. |
meta | object | No | { "key1": "value1", "key2": "value2" } | Used for misc/aux values that is brand specific |
status | string | No | Approved, Rollback | Indicates whether the event should be reversed or not |