Cancel
Cancel a number.

Request object

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

📃 Code example

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

Successful Response

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