VendPower Developers

API Documentation

REST API for electricity, betting wallets, cable TV, mobile data, airtime, and Vend Airtime to Cash. Authenticate with an approved X-API-Key.

JSON over HTTPS X-API-Key auth Idempotent purchases
All systems normal

Base URL

https://api.vendpower.ng/api/v1

Check airtime balance

X-API-Key
POST/airtime-to-cash/balance

Optional refresh of the line's airtime balance using an active session_id.

curl -X POST "https://api.vendpower.ng/api/v1/airtime-to-cash/balance" \
  -H "X-API-Key: YOUR_X_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "session_id": "a2c_sess_abc123"
  }'

Authentication

Send your approved API key on every request. Keep it on your server only.

HeaderValueRequired
X-API-KeyYOUR_X_API_KEYYes
Content-Typeapplication/jsonYes
Acceptapplication/jsonRecommended

Authentication failures (401 / 403 / 429) are listed in Authentication.

Parameters

Body parameters

NameTypeRequiredDescription
session_idstringYesFrom verify OTP

Responses

200 OK — Balance

{
  "success": true,
  "message": "Balance retrieved.",
  "data": {
    "msisdn": "2348031234567",
    "airtime_balance": 2500.5,
    "airtime_value": "₦2,500.50"
  }
}

VendPower Developer API