Official Recharge API Documentation - v1.1
All endpoints require Bearer Token + IP Whitelisting.
| Header | Value |
|---|---|
| Authorization | Bearer YOUR_ACCESS_TOKEN |
| Accept | application/json |
| Content-Type | application/json |
/api/mobile-recharge
{
"mobile_number": "0791234567",
"amount": 100
}
$ch = curl_init("https://top-up.wafitelecom.net/api/mobile-recharge");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer YOUR_ACCESS_TOKEN",
"Accept: application/json",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"mobile_number" => "0791234567",
"amount" => 100
]));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
fetch("https://top-up.wafitelecom.net/api/mobile-recharge", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Accept": "application/json",
"Content-Type": "application/json"
},
body: JSON.stringify({
mobile_number: "0791234567",
amount: 100
})
})
.then(res => res.json())
.then(console.log);
/api/recharge-status
{
"success" => true,
"recharge_status" => "pending"
}
$ch = curl_init("https://top-up.wafitelecom.net/api/recharge-status");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer YOUR_ACCESS_TOKEN",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"transaction_id" => "com3123456782026"
]));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
fetch("https://top-up.wafitelecom.net/api/recharge-status", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({ transaction_id: "com3123456782026" })
})
.then(res => res.json())
.then(console.log);
/api/balance
{
"success": true,
"current_balance": 15000
}
$ch = curl_init("https://top-up.wafitelecom.net/api/balance");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer YOUR_ACCESS_TOKEN",
"Accept: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
fetch("https://top-up.wafitelecom.net/api/balance", {
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Accept": "application/json"
}
})
.then(res => res.json())
.then(console.log);