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

Requery electricity

X-API-Key
GET/transactions/{id}

Look up an electricity purchase by numeric id or VP reference string.

curl -X GET "https://api.vendpower.ng/api/v1/transactions/VP_UNIQUE_KEY_001" \
  -H "X-API-Key: YOUR_X_API_KEY" \
  -H "Accept: application/json"

Authentication

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

HeaderValueRequired
X-API-KeyYOUR_X_API_KEYYes
Acceptapplication/jsonRecommended

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

Parameters

Path parameters

NameTypeRequiredDescription
idstringYesNumeric transaction id or reference / idempotency key

Responses

200 OK — Transaction

{
  "success": true,
  "message": "Transaction retrieved.",
  "data": {
    "id": 101,
    "reference": "VP_UNIQUE_KEY_001",
    "status": "success",
    "category": "electricity",
    "token": "1234-5678-9012-3456",
    "units": "45.2"
  }
}

VendPower Developer API