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

MethodPathDescription
POST/api/v1/data/buyBuy data bundle for a phone number
POST/api/v1/airtime/buyBuy airtime for a phone number
POST/api/v1/cable/subscribeSubscribe to a cable TV plan
POST/api/v1/electricity/payPay an electricity bill
GET/api/v1/wallet/balanceFetch current wallet balance
GET/api/v1/transactionsList all transactions

Sample Request

POST /api/v1/data/buy
{
  "network": "mtn",
  "phone": "08012345678",
  "plan_id": "mtn-2g"
}