Balance


balance

Shows the current account balance.

No additional parameters.

Request Parameters

$curl_url = 'https://api.jump.bg/api.php';

$curl_post = [
    'api_userid' => 'API_USER_ID',
    'api_password' => 'API_PASSWORD',
    'type' => 'balance',
];

$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_URL => $curl_url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_POSTFIELDS => $curl_post,
]);

$response = curl_exec($curl);
curl_close($curl);

var_dump($response); //It will return the result in JSON

Response Parameters:

{
    "success": 1,
    "balance": "9.60"
}