This API request enables the operator to get summarised betting activity for a player in a given period.
PlayerBets() Request
Type | Input |
---|---|
HTTP Method | POST |
API URL | https://<API_BASE_URL>/player/player-bets/ |
Headers | "Content-Type": "application/json" |
POST Parameters | json object e.g.: { |
Parameters | Type | Description |
---|---|---|
api_key | String | API Key allocated to each front-end |
username | String | Username of the player |
start_date | String | Start date for period of interest |
end_date | String | End date for period of interest |
amount_type | String | Type of play |
PlayerBets() Response + Example
{
"result": {"status": "success",
"username": "test_username",
"account_id": "10032",
"num_bets": 50,
"total_bet_amount": 1050,
"total_win_amount": 920,
"currency": "GBP"
}
}
Object/Key in Response Object | Type | Description |
---|---|---|
result | JSON Object | Key result contains the JSON object as value. |
status | String | Response status |
username | String | Username of the player |
account_id | Integer | Account ID of the player |
num_bets | Integer | Number of bets the player has placed during the given period |
total_bet_amount | Integer | Total amount of money the player has bet during the given period |
total_win_amount | Integer | Total amount of money the player has won during the given period |
currency | String | 3 letter ISO currency code |