🔒
Balance
Retrieves your current balance.

📃 Code Example

PHP
1
$data = array();
2
3
$payload = json_encode($data);
4
5
$curl = curl_init();
6
curl_setopt_array($curl, [
7
CURLOPT_URL => 'https://smsverification.xyz/api/v2/balance',
8
CURLOPT_CUSTOMREQUEST => 'GET',
9
CURLOPT_POSTFIELDS => $payload,
10
CURLOPT_RETURNTRANSFER => true,
11
CURLOPT_HTTPHEADER => array(
12
'Authentication: testinga99d930a8a080314bd4c5563737e131',
13
'Content-Type: application/json',
14
'Content-Length: ' . strlen($payload)
15
)
16
]);
17
$response = curl_exec($curl);
18
curl_close($curl);
19
20
echo $response; // json
Copied!

Successful Response

JSON Object
1
{
2
"status": "success",
3
"data": {
4
"balance": 2.5
5
}
6
}
Copied!