PlayerBonusBalance() API

This API request enables the operator to check the campaign history of specific player.

PlayerBonusBalance() Request

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/wallet/get-bonus-balance/
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
"api_key": "qg0pBDmfGEe4jbGm",
"campaign_id": "78005",
"player_id": "271061"
}
ParametersTypeDescription
api_keyStringAPI Key allocated to each front-end
campaign_idStringID of the respective campaign.
player_idStringId of the player

PlayerBonusBalance() Response & Example

{
    "result": {
        "player_id": "9",
        "state": "canceled",
        "bonus_balances": [{
            "bonusid":"9hTJa1QbqDgYGoiefFokxEmItaF28Foe87hxInIt",
            "awarded_date": "2023-05-25",
            "awarded_time": "13:40:51.584831",
            "rounds": 5,
            "rounds_left": 5,
            "game_ids": "[1236]",
            "start_time": "2023-05-25T13:40:51.584085Z",
            "expiration_time": "2023-05-25T19:10:00Z"
    }],
    "result": "OK"
    }
}

Object/Key in Response ObjectTypeDescription
resultJSON ObjectKey result contains the JSON object as value.
player_idStringId of the player
stateStringcampaign status
bonus_balancesJSON ObjectId belongs to respective campaign.
bonus_balances.bonusidStringunique ID of campaign record at Netgaming end
bonus_balances.awarded_dateStringCampaign awarded date
bonus_balances.awarded_timeStringCampaign awarded time
bonus_balances.roundsStringNumber of rounds awarded
bonus_balances.rounds_leftStringNumber rounds completed
bonus_balances.game_idslistCampaign created for the game_ids
bonus_balances.start_timeStringCampaign start time
bonus_balances.expiration_timeStringCampaign end time