Connect to MELE DATA API
Vend automated MTN, Airtel, Glo, and 9mobile data bundles and airtime directly from your WordPress VTU plugin, custom script, or portal. Simple setup, instant automated delivery, and low wholesale prices.
Connecting from WordPress or a VTU Website? (3 Easy Steps)
Most VTU owners use ready-made software (like WordPress VTU plugins, Smart Recharge, or Monster VTU). You do not need to write code — just follow these 3 simple steps:
Get Your API Key
Log in to your account, go to the Developer / API tab, and click Generate API Key. Copy your live key (mele_live_...).
Fund Your Wallet
Transfer funds into your dedicated virtual account. Whenever your customers buy data on your site, your MELE DATA wallet is automatically debited at wholesale cost.
Paste Plan IDs
In your VTU plugin settings, enter our Base URL and match your data packages with the numerical Plan IDs in the table below. That is all!
Live Plan IDs & Pricing
Click the Copy ID button on any plan to paste the ID directly into your VTU portal or plugin.
| Network | Type | Plan Name & Size | PLAN ID (For Your Script) | Validity | Reseller Price |
|---|---|---|---|---|---|
| MTN | SME | 500MB SME Data | 401 | 30 Days | ₦130.00 |
| MTN | SME | 1.0 GB SME Data | 402 | 30 Days | ₦259.00 |
| MTN | SME | 2.0 GB SME Data | 403 | 30 Days | ₦518.00 |
| MTN | SME | 3.0 GB SME Data | 404 | 30 Days | ₦777.00 |
| MTN | SME | 5.0 GB SME Data | 405 | 30 Days | ₦1,295.00 |
| MTN | SME | 10.0 GB SME Data | 406 | 30 Days | ₦2,590.00 |
| MTN | Corporate Gifting | 1.0 GB Corporate Gifting | 411 | 30 Days | ₦265.00 |
| MTN | Corporate Gifting | 2.0 GB Corporate Gifting | 412 | 30 Days | ₦530.00 |
| MTN | Corporate Gifting | 5.0 GB Corporate Gifting | 413 | 30 Days | ₦1,325.00 |
| AIRTEL | Corporate Gifting | 500MB Corporate Gifting | 421 | 30 Days | ₦135.00 |
| AIRTEL | Corporate Gifting | 1.0 GB Corporate Gifting | 422 | 30 Days | ₦265.00 |
| AIRTEL | Corporate Gifting | 2.0 GB Corporate Gifting | 423 | 30 Days | ₦530.00 |
| AIRTEL | Corporate Gifting | 5.0 GB Corporate Gifting | 424 | 30 Days | ₦1,325.00 |
| AIRTEL | Corporate Gifting | 10.0 GB Corporate Gifting | 425 | 30 Days | ₦2,650.00 |
| GLO | Corporate Gifting | 500MB Corporate Gifting | 431 | 30 Days | ₦135.00 |
| GLO | Corporate Gifting | 1.0 GB Corporate Gifting | 432 | 30 Days | ₦260.00 |
| GLO | Corporate Gifting | 2.0 GB Corporate Gifting | 433 | 30 Days | ₦520.00 |
| GLO | Corporate Gifting | 5.0 GB Corporate Gifting | 434 | 30 Days | ₦1,300.00 |
| 9MOBILE | Corporate Gifting | 500MB Corporate Gifting | 441 | 30 Days | ₦120.00 |
| 9MOBILE | Corporate Gifting | 1.0 GB Corporate Gifting | 442 | 30 Days | ₦210.00 |
| 9MOBILE | Corporate Gifting | 2.0 GB Corporate Gifting | 443 | 30 Days | ₦420.00 |
| 9MOBILE | Corporate Gifting | 5.0 GB Corporate Gifting | 444 | 30 Days | ₦1,050.00 |
Authentication
Every request to the MELE DATA developer endpoints requires your API Key. Pass it in your HTTP headers using either the standard Authorization header or the X-API-Key header:
Check Wallet Balance
Check your available wallet balance to ensure you have sufficient funds before dispatching orders.
{
"status": "success",
"user": {
"username": "reseller@example.com",
"wallet_balance": 45200.00
},
"data": {
"balance": 45200.00,
"currency": "NGN"
}
}Purchase Data Bundle
Vends a specific data plan to the recipient's phone number. Delivery takes between 2 to 10 seconds.
| Field | Type | Required | Description & Aliases |
|---|---|---|---|
| phone | String | YES | Recipient 11-digit phone number (e.g. 08012345678). Aliases: phone_number, mobile_number. |
| plan | Integer | YES | The numerical Plan ID from the catalog table above (e.g. 402). Alias: plan_id. |
| network | String / Int | YES | Network identifier: 1 or "MTN", 2 or "GLO", 3 or "9MOBILE", 4 or "AIRTEL". |
| bypass | Boolean | Optional | Set to true if number is ported across carriers. Alias: Ported_number. |
| request-id | String | Optional | Unique reference string from your portal for idempotency. Alias: reference. |
curl -X POST "https://api.meledata.ng/api/v1/developer/data" \
-H "Authorization: Token YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"network": "MTN",
"phone": "08012345678",
"plan": 402,
"request-id": "ORD_17849201"
}'{
"status": true,
"message": "Transaction successful",
"data": {
"status": "success",
"reference": "ORD_17849201",
"amount": 259.0,
"network": "MTN",
"phone_number": "08012345678"
}
}Purchase Airtime Topup
Instant airtime recharge for MTN, Airtel, Glo, and 9mobile with wholesale discount.
{
"network": "MTN",
"phone": "08012345678",
"amount": 500,
"reference": "AIR_992182"
}Query Transaction Status
In case of carrier network delays or server timeouts, re-query the transaction by passing your unique reference.
HTTP Status & Error Codes
| Status Code | Meaning | How to Resolve |
|---|---|---|
| 200 OK | Transaction Successful or Processing | Order placed and dispatched to telecom network. |
| 400 Bad Request | Insufficient Wallet Balance or Invalid Phone | Fund your MELE DATA wallet or verify phone number is 11 digits. |
| 401 Unauthorized | Invalid or Missing API Key | Verify your Authorization: Token ... header. |
| 404 Not Found | Plan ID Not Found | Check the Plan IDs table above and ensure the plan ID is correct for the network. |
| 429 Rate Limited | Too Many Requests | Maximum 30 requests per minute per IP/account. |
Reseller Frequently Asked Questions
Do I get debited if an order fails?
No. If a telecom network rejects an order or times out, the system automatically marks the transaction as failed and refunds your wallet balance immediately with 0 deduction.
Where do I find my API Key?
Log into your Mele Data account, click on the Developer or API menu on the left (or your Profile), and click "Generate API Key". Your live secret key will be displayed once.
Can I test without spending real money?
Yes! Prefix your API key with mele_test_ (e.g. mele_test_pub_... or mele_test_live_...). Test mode provides a simulated ₦1,000,000 sandbox wallet and simulates real delivery without charging real funds.
Which WordPress / VTU plugins are compatible?
Any WordPress VTU plugin or script that supports standard token headers and custom plan ID mapping (such as Monster VTU, Smart Recharge, VTU Auto, or Telecomabode-compatible integrations) works out of the box.
Need help connecting your website?
Our integration team is available to assist you with API keys, plan IDs, and plugin setup.