Official API & Reseller Integration Guide

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.

BASE URL:https://api.meledata.ng/api/v1/developer
Copy My API Key
Non-Technical Guide

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:

1

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_...).

2

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.

3

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!

Reseller Mapping Catalog

Live Plan IDs & Pricing

Click the Copy ID button on any plan to paste the ID directly into your VTU portal or plugin.

NetworkTypePlan Name & SizePLAN ID (For Your Script)ValidityReseller Price
MTNSME500MB SME Data
401
30 Days₦130.00
MTNSME1.0 GB SME Data
402
30 Days₦259.00
MTNSME2.0 GB SME Data
403
30 Days₦518.00
MTNSME3.0 GB SME Data
404
30 Days₦777.00
MTNSME5.0 GB SME Data
405
30 Days₦1,295.00
MTNSME10.0 GB SME Data
406
30 Days₦2,590.00
MTNCorporate Gifting1.0 GB Corporate Gifting
411
30 Days₦265.00
MTNCorporate Gifting2.0 GB Corporate Gifting
412
30 Days₦530.00
MTNCorporate Gifting5.0 GB Corporate Gifting
413
30 Days₦1,325.00
AIRTELCorporate Gifting500MB Corporate Gifting
421
30 Days₦135.00
AIRTELCorporate Gifting1.0 GB Corporate Gifting
422
30 Days₦265.00
AIRTELCorporate Gifting2.0 GB Corporate Gifting
423
30 Days₦530.00
AIRTELCorporate Gifting5.0 GB Corporate Gifting
424
30 Days₦1,325.00
AIRTELCorporate Gifting10.0 GB Corporate Gifting
425
30 Days₦2,650.00
GLOCorporate Gifting500MB Corporate Gifting
431
30 Days₦135.00
GLOCorporate Gifting1.0 GB Corporate Gifting
432
30 Days₦260.00
GLOCorporate Gifting2.0 GB Corporate Gifting
433
30 Days₦520.00
GLOCorporate Gifting5.0 GB Corporate Gifting
434
30 Days₦1,300.00
9MOBILECorporate Gifting500MB Corporate Gifting
441
30 Days₦120.00
9MOBILECorporate Gifting1.0 GB Corporate Gifting
442
30 Days₦210.00
9MOBILECorporate Gifting2.0 GB Corporate Gifting
443
30 Days₦420.00
9MOBILECorporate Gifting5.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:

Standard Header Formats
Authorization: Token YOUR_API_KEY
Authorization: Bearer YOUR_API_KEY
X-API-Key: YOUR_API_KEY
GET

Check Wallet Balance

Check your available wallet balance to ensure you have sufficient funds before dispatching orders.

GEThttps://api.meledata.ng/api/v1/developer/user(or /developer/wallet)
Sample 200 Success Response
{
  "status": "success",
  "user": {
    "username": "reseller@example.com",
    "wallet_balance": 45200.00
  },
  "data": {
    "balance": 45200.00,
    "currency": "NGN"
  }
}
POST

Purchase Data Bundle

Vends a specific data plan to the recipient's phone number. Delivery takes between 2 to 10 seconds.

POSThttps://api.meledata.ng/api/v1/developer/data(or /developer/data/purchase)
Request Body (JSON)
FieldTypeRequiredDescription & Aliases
phoneStringYESRecipient 11-digit phone number (e.g. 08012345678). Aliases: phone_number, mobile_number.
planIntegerYESThe numerical Plan ID from the catalog table above (e.g. 402). Alias: plan_id.
networkString / IntYESNetwork identifier: 1 or "MTN", 2 or "GLO", 3 or "9MOBILE", 4 or "AIRTEL".
bypassBooleanOptionalSet to true if number is ported across carriers. Alias: Ported_number.
request-idStringOptionalUnique 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"
  }'
Sample 200 Success Response
{
  "status": true,
  "message": "Transaction successful",
  "data": {
    "status": "success",
    "reference": "ORD_17849201",
    "amount": 259.0,
    "network": "MTN",
    "phone_number": "08012345678"
  }
}
POST

Purchase Airtime Topup

Instant airtime recharge for MTN, Airtel, Glo, and 9mobile with wholesale discount.

POSThttps://api.meledata.ng/api/v1/developer/topup(or /developer/airtime/purchase)
Sample Request Payload
{
  "network": "MTN",
  "phone": "08012345678",
  "amount": 500,
  "reference": "AIR_992182"
}
GET

Query Transaction Status

In case of carrier network delays or server timeouts, re-query the transaction by passing your unique reference.

GEThttps://api.meledata.ng/api/v1/developer/data/status?ref=YOUR_REFERENCE

HTTP Status & Error Codes

Status CodeMeaningHow to Resolve
200 OKTransaction Successful or ProcessingOrder placed and dispatched to telecom network.
400 Bad RequestInsufficient Wallet Balance or Invalid PhoneFund your MELE DATA wallet or verify phone number is 11 digits.
401 UnauthorizedInvalid or Missing API KeyVerify your Authorization: Token ... header.
404 Not FoundPlan ID Not FoundCheck the Plan IDs table above and ensure the plan ID is correct for the network.
429 Rate LimitedToo Many RequestsMaximum 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.