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/billpayment/{id}/Query Electricity
GET — electricity transaction status & token
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/billpayment/{id}/Code samples
cURL
curl -X GET "https://datavendor.ng/api/billpayment/55/" \
-H "Authorization: Token YOUR_API_TOKEN" \
-H "Accept: application/json"Response sample (200)
JSON
{
"ident": "BILL1234567890",
"Status": "successful",
"token": "1234-5678-9012-3456"
}