Developer API
Getting Started
Integrate Ransarve into your platform with our REST API. Authenticate every request with a Bearer token from your dashboard.
curl https://api.ransarve.example/v1/wallet/balance \ -H "Authorization: Bearer YOUR_API_KEY"
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /api/v1/data/buy | Buy data bundle for a phone number |
| POST | /api/v1/airtime/buy | Buy airtime for a phone number |
| POST | /api/v1/cable/subscribe | Subscribe to a cable TV plan |
| POST | /api/v1/electricity/pay | Pay an electricity bill |
| GET | /api/v1/wallet/balance | Fetch current wallet balance |
| GET | /api/v1/transactions | List all transactions |
Sample Request
POST /api/v1/data/buy
{
"network": "mtn",
"phone": "08012345678",
"plan_id": "mtn-2g"
}