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/get/network/Get Data Plans
Networks & plan IDs for data purchase
api:readReturns all networks with plan IDs and prices for your account type.
Required 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/get/network/Parameters / payload fields
| Parameter | Type | Description |
|---|---|---|
| — | — | No query parameters required |
Code samples
cURL
curl -X GET "https://datavendor.ng/api/get/network/" \
-H "Authorization: Token YOUR_API_TOKEN" \
-H "Accept: application/json"Response sample (200)
JSON
{
"MTN": {
"network_info": { "id": 1, "name": "MTN" },
"data_plans": [
{ "id": 212, "plan_size": "1", "plan_Volume": "GB", "plan_amount": "500.00" }
]
},
"GLO": { "network_info": { "id": 2, "name": "GLO" }, "data_plans": [] }
}