Complete USSD Codes for Vending MTN Data Gifting

Complete USSD Codes for Vending MTN Data Gifting

The first ever USSD code on https://ussd.simhosting.ng was on December 5, 2019. It was a momentous day! While the technology, the system and the protocol has dramatically changed over time, our resolve to all who have been laboring under the heavy burden of manually vending airtime, data and bills has only gotten stronger - Help online vendors save time and money by automating airtime, bill and data vending to allow them focus on things are most important in their lives.

In pursuit of this goal, we have added another feature that affords online vendors the opportunity to automate data vending via data gifting. Many vendors already have a functioning system but need to know the code needed to vending each of the data packages.

We are very pleased to introduce all the MTN data packages, their face value and the USSD code in the table below.

 

Plan

Alternate Naming

Face Value

USSD

Multi-Step

Daily 40Mb

1-Day 40Mb

N50

*312*7*2*1*1*1*1#

Phone number

Daily 100Mb

1-Day 100Mb

N100

*312*7*2*1*1*2*1#

Phone number

Daily 1Gb

1-Day 1Gb

N300

*312*7*2*1*1*4*1#

Phone number

Daily 2Gb

1-Day 2Gb

N500

*312*7*2*1*1*5*1#

Phone number

Two Days 200Mb

2-Day 200Mb

N200

*312*7*2*1*1*3*1#

Phone number

Weekly 350Mb

7-Day 350Mb

N300

*312*7*2*1*2*1*1#

Phone number

Weekly 1Gb

7-Day 1Gb

N500

*312*7*2*1*2*3*1#

Phone number

Weekly 6Gb

7-Day 6Gb

N1,500

*312*7*2*1*2*4*1#

Phone number

Two Weeks 750Mb

14-Day 750Mb

N500

*312*7*2*1*2*2*1#

Phone number

Monthly 1.5Gb

30-Day 1.5Gb

N1,000

*312*7*2*1*3*1*1#

Phone number

Monthly 2Gb

30-Day 2Gb

N1,200

*312*7*2*1*3*2*1#

Phone number

Monthly 4.5Gb

30-Day 4.5Gb

N2,000

*312*7*2*1*3*3*1#

Phone number

Monthly 6Gb

30-Day 6Gb

N2,500

*312*7*2*1*3*4*1#

Phone number

Monthly 12Gb

30-Day 12Gb

N3,500

*312*7*2*1*3*5*1#

Phone number

Monthly 20Gb

30-Day 20Gb

N5,000

*312*7*2*1*3*6*1#

Phone number

Monthly 40Gb

30-Day 40Gb

N10,000

*312*7*2*1*3*7*1#

Phone number

Monthly 75Gb

30-Day 75Gb

N15,000

*312*7*2*1*3*8*1#

Phone number

Monthly 120Gb

30-Day 120Gb

N20,000

*312*7*2*1*3*9*1#

Phone number

Two Months 100Gb

60-Day 100Gb

N20,000

*312*7*2*1*4*1*1#

Phone number

Three Months 400Gb

90-Day 400Gb

N50,000

*312*7*2*1*5*1*1#

Phone number

 

Sample PHP Code for Implementation

For instance, if you would like to vend MTN Monthly 4.5GB data, your PHP code might look like the one below;

<?php


$servercode = "SERVER_CODE";
$token = "API_TOKEN";
$ussd_refid = "CUSTOM_REFID";
$ussd_base = "http://ussd.simhosting.ng/api/ussd/?";
$ussd_query = "*312*7*2*1*3*3*1#";
$multistep = "08000000000";
$ussd_data = array("servercode"=>$servercode,
"token"=>$token,
ussd"=>$ussd_query, "multistep"=>$multistep, "refid"=>$ussd_refid); 

$ussd_url = $ussd_base.http_build_query($ussd_data);
$run = file_get_contents($ussd_url);
echo $run;

?>


The SERVER_CODE, API_TOKEN are available upon registration and activation of a server. While the CUSTOM_REFID field is optional. You can learn more about the USSD query endpoint from the documenation.

 

If you would like to know how you too can join other happy online vendors currently using our services, kindly mail This email address is being protected from spambots. You need JavaScript enabled to view it. or call/chat/WhatsApp 090-1165-4077, we will be pleased to help.

Tags

Email
Image

USSD on SIMHosting is a product of HoRLaR I.T. Solutions. It automates data and airtime vending via HTTPS POST/GET requests to the hosted SIM.