🛒
Order
Placing a new order.

Request object

username (required) string password (required) string country (required) string service (required) string
JSON Object
1
{
2
"auth": {
3
"username": "demo",
4
"password": "demo"
5
},
6
"country": "Russia",
7
"service": "ProtonMail"
8
}
Copied!

📃 Code example

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

Successful Response

JSON Object
1
{
2
"status": "success",
3
"data": {
4
"old_balance": 8,
5
"new_balance": 7.5,
6
"phone": {
7
"number": "number",
8
"id": "id"
9
}
10
}
11
}
Copied!
Last modified 8mo ago