
Complete API documentation for Grameenphone, Robi, Airtel, Banglalink, and Teletalk mobile recharge services in Bangladesh. Integrate secure, real-time recharge APIs with comprehensive guides, code examples, and developer tools.
Boost your business with our professional mobile recharge API! Our comprehensive Recharge API allows you to seamlessly integrate mobile recharge functionality into your applications. With endpoints for recharging, bill payments, checking status, retrieving available drives, and checking your balance, you can provide a complete recharge and bill payment experience to your users.
Bank-level security with encrypted transactions
Instant recharge processing in seconds
99.9% uptime with robust infrastructure
Competitive rates and commission structure
Get your API credentials from the dashboard
Choose your integration method (REST API, SDK, or Webhook)
Test with our sandbox environment
Go live and start processing recharges
// Node.js Example - Recharge
const axios = require('axios');
const rechargeAPI = async (number, amount, operator) => {
try {
const response = await axios.post('https://api.successtopup.com/api/recharge', {
number: number,
type: 'prepaid',
operator: operator,
amount: amount,
trxid: Date.now().toString(),
successtopup_key: 'YOUR_API_KEY',
successtopup_secret: 'YOUR_API_SECRET'
}, {
headers: {
'Content-Type': 'application/json'
}
});
return response.data;
} catch (error) {
console.error('Recharge failed:', error.response?.data || error.message);
throw error;
}
};
// Usage
rechargeAPI('01712345678', 50, 'GP')
.then(result => console.log('Success:', result))
.catch(error => console.error('Error:', error));Replace YOUR_API_KEY and YOUR_API_SECRET with your actual credentials. Install required dependencies: npm install axios for Node.js,pip install requests for Python.
API endpoint for recharge
https://api.successtopup.com/api/recharge| Parameter | Description |
|---|---|
number | Mobile number to recharge |
type | prepaid, postpaid (use 'prepaid' for Skitto) |
operator | One of: BL, GP, RB, AT, TT, SK, BT |
amount | Amount >= 20 (optional when using package_id) |
package_id | Drive ID (required for drive purchases) |
trxid | Unique transaction ID |
successtopup_key | Your API key |
successtopup_secret | Your API secret |
Content-Type: application/json{
"result": true | false,
"message": "Recharge successful"
}API endpoint for status check
https://api.successtopup.com/api/status| Parameter | Description |
|---|---|
trxid | Transaction ID from recharge |
successtopup_key | Your API key |
successtopup_secret | Your API secret |
Content-Type: application/json{
"result": true | false,
"status": "Success" | "Pending" | "Failed"
}API endpoint for drive list
https://api.successtopup.com/api/drives| Parameter | Description |
|---|---|
operator | Operator code (optional) |
type | regular or drive (optional) |
successtopup_key | Your API key |
successtopup_secret | Your API secret |
Content-Type: application/json{
"result": true | false,
"drives": [
{
"driveId": "5837",
"commission": 315,
"duration": 30,
"operator": "BL",
"price": 1258,
"title": "2000 Min+ UNLIMITED INTERNET- (ALL BD CHECK)"
}
]
}API endpoint for balance check
https://api.successtopup.com/api/balance| Parameter | Description |
|---|---|
successtopup_key | Your API key |
successtopup_secret | Your API secret |
Content-Type: application/json{
"result": true | false,
"balance": 5446.2,
"driveBalance": 0
}API endpoint for bill payment
https://api.successtopup.com/api/bill-pay| Parameter | Description |
|---|---|
billOperator | Bill operator code (required). PBP (Palli Biddut Prepaid), PBD (Palli Biddut Postpaid), DSP (DESCO Prepaid), DSD (DESCO Postpaid), NSP (NESCO Prepaid), NSD (NESCO Postpaid), DPP (DPDC Prepaid), DPD (DPDC Postpaid). TTG (Titas Gas), KRP (Karnapuli), JLB (Jalalabad), SBG (Sundorbangas), BRD (Bakrabad), ART (Ambarit) |
billNumber | Biller number (required) |
billAmount | Bill amount (required, must be greater than 0) |
mobileNumber | Mobile number (required, 11 digits) |
monthName | Month name (required) |
note | Additional note (optional) |
trxid | Unique transaction ID (required) |
successtopup_key | Your API key (required) |
successtopup_secret | Your API secret (required) |
Content-Type: application/json{
"result": true | false,
"message": "Bill payment transaction successful"
}Use a unique trxid for each request. Keep your API credentials secure and never expose them publicly. Store them in environment variables or secure configuration files.