মেনু

Mobile RechargeAPI Documentation

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.

RESTful API
Real-time Integration
Complete Documentation
Code Examples
5+
Mobile Operators
99.9%
API Uptime
24/7
Developer Support

API Overview

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, checking status, retrieving available drives, and checking your balance, you can provide a complete recharge experience to your users.

Secure

Bank-level security with encrypted transactions

Fast

Instant recharge processing in seconds

Reliable

99.9% uptime with robust infrastructure

Profitable

Competitive rates and commission structure

Quick Start

1

Get your API credentials from the dashboard

2

Choose your integration method (REST API, SDK, or Webhook)

3

Test with our sandbox environment

4

Go live and start processing recharges

API Status & Performance

99.9%
Uptime
<2s
Response Time
24/7
Support
All systems operational
Last updated: 8:15:40 PM

Supported Mobile Operators

Grameenphone
Grameenphone
Code: GP
Robi
Robi
Code: RB
Airtel
Airtel
Code: AT
Banglalink
Banglalink
Code: BL
Teletalk
Teletalk
Code: TT
Skitto
Skitto
Code: SK

Code Examples

// Node.js Example
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));

Getting Started

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.

Recharge

API endpoint for recharge

Endpoint

https://api.successtopup.com/api/recharge

Parameters

ParameterDescription
numberMobile number to recharge
typeprepaid, postpaid (use 'prepaid' for Skitto)
operatorOne of: BL, GP, RB, AT, TT, SK
amountAmount >= 20 (optional when using package_id)
package_idDrive ID (required for drive purchases)
trxidUnique transaction ID
successtopup_keyYour API key
successtopup_secretYour API secret

Headers

Content-Type: application/json

Response Example

{
  "result": true | false,
  "message": "Recharge successful"
}

Status Check

API endpoint for status check

Endpoint

https://api.successtopup.com/api/recharge/status

Parameters

ParameterDescription
trxidTransaction ID from recharge
successtopup_keyYour API key
successtopup_secretYour API secret

Headers

Content-Type: application/json

Response Example

{
  "result": true | false,
  "status": "Success" | "Pending" | "Failed"
}

Get Drives

API endpoint for get drives

Endpoint

https://api.successtopup.com/api/drives

Parameters

ParameterDescription
operatorOperator code (optional)
successtopup_keyYour API key
successtopup_secretYour API secret

Headers

Content-Type: application/json

Response Example

{
  "result": true | false,
  "drives": [
    {
      "driveId": "5837",
      "commission": 315,
      "duration": 30,
      "operator": "BL",
      "price": 1258,
      "title": "2000 Min+ UNLIMITED INTERNET- (ALL BD CHECK)"
    }
  ]
}

Balance Check

API endpoint for balance check

Endpoint

https://api.successtopup.com/api/balance

Parameters

ParameterDescription
successtopup_keyYour API key
successtopup_secretYour API secret

Headers

Content-Type: application/json

Response Example

{
  "result": true | false,
  "balance": 5446.2,
  "driveBalance": 0
}

Security Notice

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.