GlobalTopUp API Documentation
Recharge API for World Wide Mobile Operators
API Endpoint
POST https://rasi.top/api/recharge.php Content-Type: application/x-www-form-urlencoded
Required Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| api_key | string | Your API key | XXXAPIKEY |
| api_secret | string | Your API secret | XXXSECRETKEY |
| operator_id | integer | Operator ID | 23 |
| amount | float | Recharge amount | 20 |
| phone | string | Recipient mobile number | 01712xxxxxx |
| country_iso | string | Country ISO code | BD |
PHP Example
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rasi.top/api/recharge.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query([
"api_key" => "XXXAPIKEY",
"api_secret" => "XXXSECRETKEY",
"operator_id" => 23,
"amount" => 20,
"phone" => "01712xxxxxx",
"country_iso" => "BD"
]),
]);
$response = curl_exec($curl);
curl_close($curl);
$data = json_decode($response, true);
print_r($data);
?>
cURL Example
curl -X POST https://rasi.top/api/recharge.php \ -d "api_key=XXXAPIKEY" \ -d "api_secret=XXXSECRETKEY" \ -d "operator_id=23" \ -d "amount=20" \ -d "phone=01712xxxxxx" \ -d "country_iso=BD"
Responses
Success Response
{
"success": true,
"transactionId": 29814531,
"commission": "0.60",
"operator_transaction_id": "BD200226033740129794"
}
Note: operator_transaction_id only appears if recharge succeeds.
Error Responses
{
"error": "Missing required parameters."
}
{
"error": "Invalid API credentials."
}
{
"error": "Inactive: Your API is not active."
}
{
"error": "Banned: Your API has been banned."
}
{
"error": "Insufficient balance."
}
{
"error": "Recharge failed. Service unavailable."
}
Operator List
Click to expand country-wise operator list.
Default Bangladesh operators.
| Operator Name | Operator ID | Prefixes | Country ISO |
|---|---|---|---|
| Grameenphone / Skitto | 23 | 017, 013 | BD |
| Banglalink | 28 | 019, 014 | BD |
| Robi | 25 | 018 | BD |
| Airtel | 26 | 016 | BD |
| Teletok | 27 | 015 | BD |
Demo Indian operators for future integration.
| Operator Name | Operator ID | Prefixes | Country ISO |
|---|---|---|---|
| Airtel India | 101 | 981, 982 | IN |
| Vodafone Idea | 102 | 983, 984 | IN |
| Jio | 103 | 985, 986 | IN |