Developer API Gateway
Automated Flexiload Recharge API
Integrate Fun Top-Up automated recharge gateway directly into your website or server using our simple REST API.
Your Developer API Token
Keep your API Token secret. Do not expose it in client-side code.
Loading token... (Login required)
POST
https://flexiloadbd.net/api/gateway/v1/request
Request Headers
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
Content-Type: application/json
Request Payload (JSON)
{
"type": "recharge",
"operator_code": "GP",
"phone": "01718125175",
"amount": 20,
"ref_id": "TEST-01718125175-20"
}
Python Example (`RechargeAPI.py`)
import requests
TOKEN = "YOUR_API_TOKEN"
url = "https://flexiloadbd.net/api/gateway/v1/request"
payload = {
"type": "recharge",
"operator_code": "GP",
"phone": "01718125175",
"amount": 20,
"ref_id": "TEST-01718125175-20"
}
headers = {
"Authorization": f"Bearer {TOKEN}",
"Content-Type": "application/json"
}
try:
response = requests.post(url, json=payload, headers=headers, timeout=30)
print("HTTP Status:", response.status_code)
print("Response:", response.json())
except requests.RequestException as e:
print("Request failed:", e)