PlayerBets() API

This API request enables the operator to get summarised betting activity for a player in a given period.

PlayerBets() Request

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/player/player-bets/
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
"api_key": "1pghjl4v5apt2bks",
"username": "test_username",
"start_date": "2020-02-20",
"end_date": "2020-02-21",
"amount_type": "real",
}
ParametersTypeDescription
api_keyStringAPI Key allocated to each front-end
usernameStringUsername of the player
start_dateStringStart date for period of interest
end_dateStringEnd date for period of interest
amount_typeStringType 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 ObjectTypeDescription
resultJSON ObjectKey result contains the JSON object as value.
statusStringResponse status
usernameStringUsername of the player
account_idIntegerAccount ID of the player
num_betsIntegerNumber of bets the player has placed during the given period
total_bet_amountIntegerTotal amount of money the player has bet during the given period
total_win_amountIntegerTotal amount of money the player has won during the given period
currencyString3 letter ISO currency code