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

Send OTP

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

Send a one-time password to the customer's MTN line. Use the same phone on verify and convert.

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

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_codestringYesFrom billers — currently MTN
phonestringYesNigerian MSISDN, e.g. 08031234567 (11 digits). Must match the network for airtime and data.

Responses

200 OK — OTP sent

{
  "success": true,
  "message": "OTP sent.",
  "data": {
    "phone": "2348031234567",
    "otp_sent": true
  }
}

VendPower Developer API