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

Verify OTP

X-API-Key
POST/airtime-to-cash/otp/verify

Verify the OTP and receive a short-lived session_id. Use it for balance and convert. Response includes airtime balance and convert rate.

curl -X POST "https://api.vendpower.ng/api/v1/airtime-to-cash/otp/verify" \
  -H "X-API-Key: YOUR_X_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "biller_code": "MTN",
    "phone": "08031234567",
    "otp": "123456"
  }'

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
biller_codestringYesSame as send OTP
phonestringYesSame MSISDN
otpstringYesSMS OTP code

Responses

200 OK — Verified

{
  "success": true,
  "message": "OTP verified.",
  "data": {
    "session_id": "a2c_sess_abc123",
    "phone": "08031234567",
    "msisdn": "2348031234567",
    "airtime_balance": 2500.5,
    "airtime_value": "₦2,500.50",
    "convert_percent": 85,
    "expires_in": 900
  }
}

VendPower Developer API