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

Fund betting wallet

X-API-Key
POST/betting/fund

Top up a customer betting account. charge is the wallet debit (fund amount + service fee).

curl -X POST "https://api.vendpower.ng/api/v1/betting/fund" \
  -H "X-API-Key: YOUR_X_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "betting_code": "BET9JA",
    "customer_id": "user12345",
    "amount": 2000,
    "idempotency_key": "VP_UNIQUE_BET_001"
  }'

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
betting_codestringYesProvider code e.g. BET9JA
customer_idstringYesCustomer betting user id
amountnumberYesFund amount in NGN
idempotency_keystringYesYour unique purchase key (recommended VP…). Re-sending the same key returns 409 with the original transaction — never charges twice.

Responses

200 OK — Funded

{
  "success": true,
  "message": "Betting wallet funded successfully.",
  "data": {
    "id": 205,
    "reference": "VP_UNIQUE_BET_001",
    "idempotency_key": "VP_UNIQUE_BET_001",
    "status": "success",
    "category": "betting",
    "amount": 2000,
    "charge": 2030,
    "service_fee": 30,
    "fund_amount": 2000,
    "betting_code": "BET9JA",
    "customer_id": "user12345"
  }
}

Errors

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

CodeHTTPWhen
VALIDATION_ERROR422Request body failed validation or business rules.
INSUFFICIENT_BALANCE400 / 402Wallet balance is too low for this purchase.
DUPLICATE_IDEMPOTENCY409This idempotency_key was already used — requery the returned transaction.
SERVICE_UNAVAILABLE503Upstream provider or service is temporarily unavailable.

VendPower Developer API