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

Validate meter

X-API-Key
POST/electricity/validate-meter

Verify a meter before purchase. Use the returned customer details and amount limits on the purchase call. When the upstream provider reports it (e.g. BuyPower), meter_type may differ from your request (meter_type_corrected: true) and outstanding / outstanding_balance may be greater than 0 — customers can still proceed. VTPass and similar providers keep your requested meter_type and return outstanding: 0.

curl -X POST "https://api.vendpower.ng/api/v1/electricity/validate-meter" \
  -H "X-API-Key: YOUR_X_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "meter_number": "12345678901",
    "disco_code": "IKDC",
    "meter_type": "PREPAID"
  }'

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
meter_numberstringYesCustomer meter number
disco_codestringYese.g. IKDC from discos list
meter_typestringYesPREPAID or POSTPAID

Responses

200 OK — Validated · 200 OK — Validated · type corrected + outstanding (BuyPower)

{
  "success": true,
  "message": "Meter validated successfully.",
  "data": {
    "customer_name": "JOHN DOE",
    "customer_address": "12 Example St",
    "meter_number": "12345678901",
    "disco_code": "IKDC",
    "meter_type": "PREPAID",
    "requested_meter_type": "PREPAID",
    "meter_type_corrected": false,
    "min_amount": 500,
    "max_amount": 100000,
    "outstanding": 0,
    "outstanding_balance": 0,
    "debt_repayment": 0,
    "validation_note": null
  }
}

Errors

Errors specific to this endpoint, in addition to common authentication and validation failures.

CodeHTTPWhen
VALIDATION_FAILED422Meter / smartcard / customer could not be verified.
BILLER_NOT_FOUND404Unknown or inactive disco / biller for your API scope.

VendPower Developer API