datavendor.ng merchant API
API Documentation
REST API for data, airtime, cable TV, electricity, exam pins, recharge cards and bulk SMS. Authenticate with your token and call the live base URL below.
JSON over HTTPSToken authenticationLive pricing
Base URL
https://datavendor.ngGET
/api/validatemeter/Validate Meter
GET — verify electricity meter before payment
api:readRequired headers
| Header | Value | Required |
|---|---|---|
| Authorization | Token YOUR_API_TOKEN | Yes |
| Content-Type | application/json | Yes (POST/PUT) |
| Accept | application/json | Recommended |
Endpoint
GET
https://datavendor.ng/api/validatemeter/Parameters / payload fields
| Query param | Type | Required | Description |
|---|---|---|---|
| meternumber | string | Yes | Meter number |
| disconame | string/int | Yes | Disco name or ID |
| mtype | string | Yes | PREPAID or POSTPAID (or 1/2) |
Code samples
cURL
curl -X GET "https://datavendor.ng/api/validatemeter/?meternumber=45012345678&disconame=1&mtype=PREPAID" \
-H "Authorization: Token YOUR_API_TOKEN"Response sample (200)
JSON
{
"invalid": false,
"name": "JOHN DOE",
"address": "12 Sample Street, Lagos"
}