🔒
Balance
Retrieves your current balance.

Request Object

username (required) string password (required) string
JSON Object
1
{
2
"auth": {
3
"username": "demo",
4
"password": "demo"
5
}
6
}
Copied!

📃 Code Example

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

Successful Response

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