Data plans
X-API-KeyGET
/data/plansList data plans with optional network and period filters.
Language
curl -X GET "https://api.vendpower.ng/api/v1/data/plans?biller_code=MTN&weekly=true" \
-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
Responses
200 OK — Plans
{
"success": true,
"message": "Data plans retrieved.",
"data": [
{
"id": 501,
"api_plan_id": "501",
"name": "1GB Weekly",
"size_label": "1 GB",
"amount": 500,
"biller_code": "MTN",
"flags": {
"weekly": true,
"hot_deal": false
}
}
]
}