Implementation Instructions

Our Api make use of a single api node to access all our robot services
https://megateq.net/megateq/api/third_party_access_right/{type} .

Explanation

The type can be 0 , 1 and 2.
0 for your account information including your account balance with Megateq
1 for vending data,airtime and other utility.
2 is to get Bundle Plan and Prices

Account Information and Balance

https://megateq.net/megateq/api/third_party_access_right/0

Post Parameters
{email} e.g i@i.com : your megateq email
{password} e.g mypass : your megateq password

RESPONSE:
{"UserID":"1111321233643453","rolename":"customer","roleid":"3","Balance":"497.00","Email":"example@gmail.com","AccountName":"dapo gabriel moshood","AccountNo":"9935682175","BankName":"Providus Bank","FirstName":"dapo","LastName":"gabriel","Phone":"07044449332","Pin":"4736","branch":null,"USERNAME":null,"success":"True","message":"Login Success."}

Get Bundle Plan

Bundle Plan is the list of all services including their prices that we have and you can choose them all. to view their list on our webpage. click here .
To generate this bundle plan and price list of all our services, you can make use of this API
https://megateq.net/megateq/api/third_party_access_right/2

Post Parameters
{email} e.g i@i.com : your megateq email
{password} e.g mypass : your megateq password
{userid} e.g 1111321233643453
you can get the userid from the response of "Account Information and Balance" in the previous API Examples.

RESPONSE

{"roleid":null,"rolename":null,"mtn":"4.00","glo":"4.00","air":"4.00","nine":"4.00","bundledata":[{"BundleID":"1","BundleName":"MTN Voucher 1.5GB","CompanyID":"1","ProductType":"data","ProductSubtype":"scratchcard","AgentPrice":"450.00","price":"450.00"},{"BundleID":"2","BundleName":"MTN Voucher 2GB","CompanyID":"1","ProductType":"data","ProductSubtype":"scratchcard","AgentPrice":"550.00","price":"550.00"},{"BundleID":"149","BundleName":"AIRTEL 2.0GB","CompanyID":"4","ProductType":"data","ProductSubtype":"","AgentPrice":"1116.00","price":"1116.00"}],"success":"True"}

Vending Data , Airtime and Utility

https://megateq.net/megateq/api/third_party_access_right/1

Note: Prices you see when you try the Bundle Plan API are prices that represent the current user level that your account is based. We have 3 user level and you can subscribe to any of them. If you registered, you are in Customer userlevel at default. and if you fund your megateq account with N5,000 below, you are at the customer level and if you fund it N5,000 above , you are migrated automatically to reseller and you have more discounted price compare to when you are in customer level. If you fund your account with N30,000 and above, you are migrated to Super Reseller and you have more competitve discounted price as when you are on Reseller.

FOR VTU
Note the bundleid of VTU are constant. VTU bundleid are given below
MTN:37
GLO: 22
9MOBILE:21
AIRTEL: 20
For other services, please get their bundleID from the Bundle Plan API.

Post Parameters
{email} e.g i@i.com : your megateq email
{password} e.g mypass : your megateq password
{bundleid} e.g 149 : you obtain this from Data Plan API
{price} e.g 200 : the price of what you want to buy
{phone} e.g 32662631771 : phone number you want to topup
{customername} e.g Ola : the name of the person
{customerphone} e.g 32662631771 : phone number you want to topup
{quantity} e.g 1 : quantity of the request

RESPONSE:
{"users":[{"UserID":"2336","USERNAME":null,"accountname":"dapo gabriel Kunle","accountno":"9953568175","bankname":"Providus Bank","REFERUSERNAME":"","Password":"$2y$10$oi6Yl2mktQyhdPFHU\/5lHuygmCLj3Y\/2ipJsPCSqjXdA4fze2PqoG","pin":"1921","SecurityStamp":null,"EmailConfirmed":"0","PhoneConfirmed":"0","FailedAttempts":"0","IsLockedOut":"0","LockedOutDate":null,"TraderID":"","Email":"dapos@gmail.com","Phone":"07040319372","FirstName":"dapo","LastName":"gabriel","IsActive":"1","TimeCreated":"2020-03-04 12:38:30","BranchID":null,"TitleID":null,"MiddleName":null}],"roledata":[{"RoleID":"3","Name":"customer","Weight":"0"}],"bundledata":[{"BundleID":"37","BundleName":"MTN VTU","CompanyID":"1","showbyadminandstaff":"0","Price":null,"CustomerPrice":"1.00","AgentPrice":"4.00","SuperPrice":"4.00","Priority":null,"LastModifiedMillis":"5822252","Trader":"086666208444",OperatorNumber":"","ProductType":"vtu","ProductSubtype":"vtu_airtime","IsActive":"1","IsDeleted":"0","TimeCreated":null}],"mtn":"4.00","glo":"5.00","air":"3.00","nine":"5.00","balance":497,"productsubtype":"vtu_airtime","scratchcard":"","success":"True","message":"Successful","all":[{"UserID":"40","USERNAME":"","accountname":"","accountno":"","bankname":"","REFERUSERNAME":"","Password":"$2y$10$Cid6PICHONEUo5SgtFGWuOetw6RIWsIY7MByHtw8uTOZdCflW.Meq","pin":"4444","SecurityStamp":"","EmailConfirmed":"0","PhoneConfirmed":"0","FailedAttempts":"0","IsLockedOut":"0","LockedOutDate":null,"TraderID":"08140208444","Email":"abiodun@megateq.net","Phone":"081402081238","FirstName":"MTN VTU","LastName":"Raug","IsActive":"1","TimeCreated":null,"BranchID":null,"TitleID":null,"MiddleName":null}]}