Developer Documentation
BILL PAYMENT
Data Subscription
Purchase corporate and regular data bundles for your users across all major networks seamlessly.
POST
/api/v1/data
Authentication & Headers
| HEADER | VALUE | REQUIRED |
|---|---|---|
Authorization |
Bearer YOUR_API_TOKEN |
Yes |
Content-Type |
application/json |
Yes |
Request Parameters
| PARAMETER | TYPE | DESCRIPTION | REQUIRED |
|---|---|---|---|
network |
string | Network ID (e.g., MTN, GLO, AIRTEL, 9MOBILE). | Required |
phone |
string | The 11-digit recipient phone number. | Required |
plan_id |
integer | The unique ID of the data plan. Check Pricing for IDs. | Required |
reference |
string | A unique transaction reference for your system. | Required |
JSON Payload
JSON{
"network": "AIRTEL",
"phone": "08012345678",
"plan_id": 25,
"reference": "DATA_REF_001"
}
Success Response
{
"status": true,
"message": "Data subscription successful",
"data": {
"transaction_id": "ASI-987654321",
"reference": "DATA_REF_001",
"network": "AIRTEL",
"phone": "08012345678",
"plan": "1.5GB 30Days",
"amount": 1000,
"balance_after": 5000
}
}