ZentPay

API Documentation

Integrate ZentPay services into your platform. Airtime, data, electricity, cable, and more.

Authentication

All requests require your API key in the Authorization header.

Authorization: Bearer YOUR_API_KEY
How to get your key: Upgrade to the API Client plan, then go to Dashboard > API Keys.

Base URL

https://zentpay.com.ng/api/v1.php

Request Format

All POST requests use JSON body with Content-Type: application/json

GET Check Balance

?action=balance
// Response { "status": "success", "balance": 5000.00 }

POST Buy Airtime

?action=airtime
ParameterTypeStatusDescription
networkstringRequiredNetwork slug: mtn, glo, airtel, 9mobile
phonestringRequired11-digit phone number
amountnumberRequiredAmount in Naira (min 50)
referencestringOptionalYour unique reference
// Request curl -X POST "https://zentpay.com.ng/api/v1.php?action=airtime" \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "network": "mtn", "phone": "08012345678", "amount": 100 }' // Response 200 { "status": "success", "message": "Airtime delivered", "reference": "AIR_xxx" }

POST Buy Data

?action=data
ParameterTypeStatusDescription
networkstringRequiredNetwork slug
phonestringRequiredPhone number
plan_idintegerRequiredPlan ID from data-plans endpoint
referencestringOptionalYour unique reference
Important: Get plan IDs from the data-plans endpoint or the API Pricing page. Do not hardcode plan IDs.

POST Pay Electricity

?action=electricity
ParameterTypeStatusDescription
discostringRequiredDisco ID (e.g. ikeja-electric)
meter_numberstringRequiredMeter number
amountnumberRequiredAmount (min 500)
meter_typestringOptionalprepaid (default) or postpaid
// Success response includes token { "status": "success", "token": "1234-5678-9012-3456", "reference": "ELC_xxx" }

POST Pay Cable TV

?action=cable
ParameterTypeStatusDescription
providerstringRequireddstv, gotv, or startimes
iuc_numberstringRequiredSmartcard/IUC number
plan_idintegerRequiredCable plan ID from cable-plans

GET List Data Plans

?action=data-plans

Returns all data plans with pricing for your membership level.

// Response { "status": "success", "data": [ { "id": 1, "network": "MTN", "type": "SME", "name": "MTN 1GB SME 30 Days", "price": 430.00 } ] }

GET List Cable Plans

?action=cable-plans

Error Handling

{ "status": "error", "message": "Insufficient balance" }
CodeMeaning
200Success
400Bad request (missing or invalid parameters)
401Unauthorized (invalid or missing API key)
402Insufficient balance
429Rate limited (max 60 requests/min)
500Server error

Ready to Integrate?

Get your API key and start building

Get Started