Parameters:
Parameter_Name |
Description |
username |
Your Boompei username |
apiKey |
Your Boompei API Key |
network |
MTN, GLO, AIRTEL or 9MOBILE (UPPERCASE) |
dataPlan |
data plan code, click Here to see |
phoneNumber |
recipient number |
API Command:
https://boompei.com/api/data.php?username=****&apiKey=****&network=****&dataPlan=****&phoneNumber=****
//Replace **** with your username, api key...
E.g.
https://boompei.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","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://boompei.com/api/query_data.php?username=****&apiKey=****&trans_id=****
//Replace **** with your username, api key...
E.g.
https://boompei.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"}
Else, if there is an error in your request, response will be displayed in this format:
{"error":"ERR210","description":"Transaction not found on Boompei"}
MTN:
Data Bundle |
dataPlan |
Type |
Durations |
GLO:
Data Bundle |
dataPlan |
Type |
Durations |
AIRTEL:
Data Bundle |
dataPlan |
Type |
Durations |
9MOBILE:
Data Bundle |
dataPlan |
Type |
Durations |