Reseller & API Dashboard

Login to your MTNPlug Account to use this feature

 

API Integration

Unfortunately, we currently do not have the Sandbox environment where you can do your tests on but don’t get frightened, our HTTPS GET API is very easy to integrate. With the help of our super free API documentation below, you can safely write your codes, believing that it will work and it will work as long as it’s about our simple yet robust API.

API BASE URL

The Live API BASE URL: https://mtnplug.com/wp-json/api/v1/

Authentication

The API uses Basic Authentication. You need to always pass your token as part of the URL parameters.

Request Methods

All requests methods are GET.

Response

All responses from the API are returned in the JSON format.

Available Products and Services on the  API include:

MTN DATA

How to Purchase Data (MTN) via HTTP API

Airtime Endpoint URL: https://mtnplug.com/wp-json/api/v1/data

Request Method: GET

Parameters

Field NameExample ValueDescription
token9d4f89904352767e2f980705Unique API Token generated in the Reseller Dashboard
phone07045461790The phone number that will receive the airtime
networkmtnThe network is used to make each network unique. They include mtn. Notice that they are all in small letters.
size1GBThe available data size on the platform

500MB = MTN Data 500MB (SME) – 30 Days
1GB = MTN Data 1GB (SME) – 30 Days
2GB = MTN Data 2GB (SME) – 30 Days
3GB = MTN Data 3GB (SME) – 30 Days
5GB = MTN Data 5GB (SME) – 30 Days
10GB = MTN Data 10GB (SME) – 30 Days

Example [Purchasing Data]

https://mtnplug.com/wp-json/api/v1/data?token=9d4f89904352767e2f980705&network=MTN&phone=08056708975&size=1GB

Sample Response on Success

{"code":"success","message":"Data successfully delivered","data":{"network":"mtn","data_plan":"1gb","phone":"08056708975","amount":"NGN250","order_id":236}}

Sample Response on Failure

{"code":"failure","message":"Insufficient Balance"}