API - Buy Data


Parameters:
Parameter_Name Description
username Your SubAndGain username
apiKey Your SubAndGain API Key
network MTN, GLO, AIRTEL or 9MOBILE (UPPERCASE)
dataPlan data plan code, click Here to see
phoneNumber recipient number

API Command:


https://subandgain.com/api/data.php?username=****&apiKey=****&network=****&dataPlan=****&phoneNumber=****
//Replace **** with your username, api key...

E.g.
https://subandgain.com/api/data.php?username=Peter&apiKey=sag8rqpfa8vkpn1ler56ygh8kxxw1aor8&network=MTN&dataPlan=1GB&phoneNumber=09067879810
//where username is Peter, apiKey is sag8rqpfa8vkpn1ler56ygh8kxxw1aor8, network is MTN, dataPlan = 1GB, phoneNumber is 09067879810

Response:


JSON Format:
{"status":"Approved","trans_id":"88c4r5one73","network":"MTN","dataPlan":"1GB","phoneNumber":"09067879810","api_response":"Dear Customer, You have successfully shared 1GB Data to 2349067879810.","balance":"2500"}

Else, if there is an error in your request, one of the responses below will be displayed in this format:
{"error":"ERR201","description":"Invalid Username or Api Key"}
status can be - Approved or Cancelled

Responses:
Error Description
ERR200 Username Field Is Empty
ERR201 Invalid Username or Api Key
ERR202 Invalid Recipient number
ERR203 Insufficient Balance
ERR204 Invalid Network
ERR206 Order Not Processed
ERR207 Data Plan does not tally with Network

API Query:


https://subandgain.com/api/query_data.php?username=****&apiKey=****&trans_id=****
//Replace **** with your username, api key...

E.g.
https://subandgain.com/api/query_data.php?username=Peter&apiKey=sag8rqpfa8vkpn1ler56ygh8kxxw1aor8&trans_id=88c4r5one73
//where username is Peter, apiKey is sag8rqpfa8vkpn1ler56ygh8kxxw1aor8, trans_id is 88c4r5one73

Response:


JSON Format:
{"status":"Approved","trans_id":"88c4r5one73","network":"MTN","phoneNumber":"09067879810","amount":"235","dataPlan":"1GB","api_response":"Dear Customer, You have successfully shared 1GB Data to 2349067879810."}

Else, if there is an error in your request, response will be displayed in this format:
{"error":"ERR210","description":"Transaction not found on SubAndGain"}

MTN:
Data Bundle dataPlan Type Durations
500MB 500MB SME (7 Days)
1GB 1GB SME (7 Days)
2GB 2GB SME (30 Days)
3.5GB 3.5GB SME (30 Days)
5GB 5GB SME (30 Days)
10GB 10GB SME (30 Days)
2.0000GB 2.0000GB GIFTING (30 Days)
5.00GB 5.00GB SME 2 (30 Days)
500.0MB 500.0MB CORPORATE GIFTING (30 Days)
1.0GB 1.0GB CORPORATE GIFTING (30 Days)
2.0GB 2.0GB CORPORATE GIFTING (30 Days)
1.8GB 1.8GB DATA AWOOF (30 Days) + 30mins free call
5.000GB 5.000GB CORPORATE GIFTING (30 Days)
10.0GB 10.0GB DATA AWOOF (30 Days) + 3,000 free airtime
3.0GB 3.0GB CORPORATE GIFTING (30 Days)
10.000GB 10.000GB CORPORATE GIFTING (30 Days)
1.000GB 1.000GB DATA AWOOF (1 Day)
1.50GB 1.50GB DATA AWOOF (2 Days)
3.2GB 3.2GB DATA AWOOF (2 Days)
75MB 75MB GIFTING (1 Day)
110.00MB 110.00MB GIFTING (1 Day)
230MB 230MB GIFTING (1 Day)
36GB 36GB GIFTING (30 Days)
750MB 750MB GIFTING (3 Days)
1.5000GB 1.5000GB GIFTING (2 Days)
2.5GB 2.5GB GIFTING (2 Days)
1.500GB 1.500GB GIFTING (7 Days)
2.000GB 2.000GB GIFTING (2 Days)
2.70GB 2.70GB GIFTING (30 Days)
25GB 25GB GIFTING (30 Days)
1.2GB 1.2GB GIFTING (7 Days)
12.5GB 12.5GB GIFTING (30 Days)
20GB 20GB GIFTING (30 Days)
16.5GB 16.5GB GIFTING (30 Days)
7.000GB 7.000GB DATA AWOOF (30 Days)
6GB 6GB GIFTING (7 Days)

GLO:
Data Bundle dataPlan Type Durations
200.0MB 200.0MB CORPORATE GIFTING (14 Days)
500.0MB 500.0MB CORPORATE GIFTING (30 Days)
1.0GB 1.0GB CORPORATE GIFTING (30 Days)
2.0GB 2.0GB CORPORATE GIFTING (30 Days)
3.0GB 3.0GB CORPORATE GIFTING (30 Days)
5.0GB 5.0GB CORPORATE GIFTING (30 Days)
10GB 10GB CORPORATE GIFTING (30 Days)
750MB 750MB SME (1 Day)
1.5GB 1.5GB SME (1 Day)
2.5GB 2.5GB SME (2 Days)
10.0GB 10.0GB SME (7 Days)

AIRTEL:
Data Bundle dataPlan Type Durations
100MB 100MB CORPORATE GIFTING (7 Days)
300MB 300MB CORPORATE GIFTING (7 Days)
500MB 500MB CORPORATE GIFTING (MONTHLY)
1GB 1GB CORPORATE GIFTING (MONTHLY)
2GB 2GB CORPORATE GIFTING (MONTHLY)
5GB 5GB CORPORATE GIFTING (MONTHLY)
10GB 10GB CORPORATE GIFTING (MONTHLY)
500.000MB 500.000MB GIFTING (7 Days)
1.50GB 1.50GB GIFTING (7 Days)
3.5GB 3.5GB GIFTING (7 Days)
3.00GB 3.00GB GIFTING (30 Days)
4.0GB 4.0GB GIFTING (30 Days)
8GB 8GB GIFTING (30 Days)
10.00GB 10.00GB GIFTING (30 Days)
40.00GB 40.00GB GIFTING (30 Days)
1.5GB 1.5GB GIFTING (2 Days)
800MB 800MB GIFTING (7 Days)
150.00MB 150.00MB AWOOF GIFTING (2 Days)
300.00MB 300.00MB AWOOF GIFTING (2 Days)
1.000GB 1.000GB AWOOF GIFTING (1 Day)
2.00GB 2.00GB AWOOF GIFTING (5 Days)
600MB 600MB AWOOF GIFTING (1 Day)
3GB 3GB AWOOF GIFTING (7 Days)
7GB 7GB AWOOF GIFTING (7 Days)
10.000GB 10.000GB AWOOF GIFTING (30 Days)

9MOBILE:
Data Bundle dataPlan Type Durations
1.5GB 1.5GB GIFTING (30 Days)
2GB 2GB GIFTING (30 Days)
3GB 3GB GIFTING (30 Days)
4.5GB 4.5GB GIFTING (30 Days)
1GB 1GB CORPORATE GIFTING (30 Days)
5GB 5GB CORPORATE GIFTING (30 Days)
1.50GB 1.50GB CORPORATE GIFTING (30 Days)
2.0GB 2.0GB CORPORATE GIFTING (30 Days)
3.0GB 3.0GB CORPORATE GIFTING (30 Days)
10.0GB 10.0GB CORPORATE GIFTING (30 Days)
500.0MB 500.0MB CORPORATE GIFTING (30 Days)

Alternative:

You can use the link below to get the all result checker bundles and prices in JSON format
https://subandgain.com/api/databundles.php