MobileNig API

Developers can use the following APIs to connect to MobileNig from their applications. NO ACTIVATION FEE REQUIRED!

BALANCE CHECK API

Command:

https://mobilenig.com/api/balance.php/?username=****&password=****

Replace **** with your username and password. E.g. https://mobilenig.com/api/balance.php/?username=PAUL&password=1234 where username is PAUL and password is 1234.
Response:
Invalid User: Username and Password incorrect

DATA API

Command:

https://mobilenig.com/api/data.php/?username=****&password=****&network=****&phoneNumber=***&amount=****&ref=12345&return_url=****

Parameters:
username: Use your MobileNig Username
password: Your MobileNig account password
network: MTN, 9MOBILE, GLO or AIRTEL (UPPERCASE)
phoneNumber: The beneficiary (080*** format)
amount: Use the price of the data plan e.g. 250 for Etisalat 250mb
ref: Give us your preferred reference number
return_url: Provide the url for order status.
Api Example: https://mobilenig.com/api/data.php/?username=PAUL&password=1234&network=9MOBILE&phoneNumber=08142290649&amount=250&ref=11225588&return_url=https://subnig.com/order_response.php
Response:
00 = Success
01 = Unsuccessful
02 = Incomplete Parameters
03 = Insufficient Balance
04 = Wrong Username or Password
05 = Invalid recipient
06 = Duplicate Order. Same network, dataplan and phone number had been ordered for in the last few minutes.
07 = Invalid Data Amount
08 = Invalid network
09 = Return Url empty
10 = Ref is empty

These parameters will be returned in the return_url:
status, beneficiary and ref
status: Can be Approved or Cancelled
beneficiary: The phone number you ordered the data plan for
ref: The reference number you provided.

AIRTIME VTU API

Command:

https://mobilenig.com/api/airtime.php/?username=****&password=****&network=****&phoneNumber=****&amount=****

Parameters:
username: Use your MobileNig Username
password: Your MobileNig account password
network: MTN, 9MOBILE, GLO or AIRTEL (UPPERCASE)
phoneNumber: The beneficiary (080*** format)
amount: airtime amount (50 - 50000)
Api Example: https://mobilenig.com/api/airtime.php/?username=PAUL&password=1234&network=MTN&phoneNumber=08011223344&amount=200

Response:
00 = Success
01 = Unsuccessful
02 = Incomplete Parameters
03 = Insufficient Balance
04 = Wrong Username or Password.

Thanks for choosing MobileNig.