List discos
X-API-KeyGET
/electricity/discosReturns prepaid/postpaid disco rows granted to your API key.
Language
curl -X GET "https://api.vendpower.ng/api/v1/electricity/discos" \
-H "X-API-Key: YOUR_X_API_KEY" \
-H "Accept: application/json"Authentication
Send your approved API key on every request. Keep it on your server only.
| Header | Value | Required |
|---|---|---|
| X-API-Key | YOUR_X_API_KEY | Yes |
| Accept | application/json | Recommended |
Authentication failures (401 / 403 / 429) are listed in Authentication.
Parameters
This endpoint takes no parameters.
Responses
200 OK — Discos
{
"success": true,
"message": "Distribution companies retrieved.",
"data": [
{
"id": 1,
"name": "Ikeja Electric",
"code": "IK-PR",
"disco_code": "IKDC",
"vend_type": "PREPAID",
"min_amount": 500,
"max_amount": 100000
}
]
}