Airtime Purchase API

Integrate using a secure HTTPS GET API. Responses are returned in JSON.

GET HTTPS JSON
Your Credentials
UserID
APIKey
********************************
Endpoints
Buy Airtime
APIAirtimeV1.asp
https://www.nellobytesystems.com/APIAirtimeV1.asp?UserID=your_userid&APIKey=your_apikey&MobileNetwork=mobilenetwork_code&Amount=order_amount&MobileNumber=recipient_mobilenumber&RequestID=request_id&CallBackURL=callback_url
Query Transaction
By OrderID
https://www.nellobytesystems.com/APIQueryV1.asp?UserID=your_userid&APIKey=your_apikey&OrderID=order_id
By RequestID
https://www.nellobytesystems.com/APIQueryV1.asp?UserID=your_userid&APIKey=your_apikey&RequestID=request_id
Try It (Quick Test)

Build a request URL and test quickly. (Uses browser fetch; CORS depends on server settings.)

Idle
Request URL
-
Response
-
Request Parameters
Parameter Description
UserIDYour account UserID.
APIKeyYour API key used to authenticate requests.
MobileNetwork Mobile network code (see “Available Mobile Networks” below)
AmountMinimum: 50 | Maximum: 200,000
MobileNumberRecipient mobile number.
RequestIDUnique request ID for tracking and reconciliation.
CallBackURLYour callback URL. We will return transaction status details after processing.
BonusType (Optional) Apply a promo/bonus.
03 = MTN GistPlus (400%)
Append as &BonusType=03
Available Mobile Networks

You can fetch available networks in JSON using:
https://www.nellobytesystems.com/APIAirtimeNetworkV2.asp?UserID=

Network Mobile Network ID Minimum Amount Maximum Amount Discount Amount Discount
MTN0150.00200,000.000.9703%
Glo0250.00200,000.000.9208%
t2mobile0350.00200,000.000.9307%
Airtel0450.00200,000.000.9703%
Examples
Sample: Buy N100 MTN for 08149659347
Replace credentials with yours
https://www.nellobytesystems.com/APIAirtimeV1.asp?UserID=CK123&APIKey=456&MobileNetwork=01&Amount=100&MobileNumber=08149659347&CallBackURL=http://www.your-website.com
JSON response (order received)
{
  "orderid": "789",
  "statuscode": "100",
  "status": "ORDER_RECEIVED"
}
Query transaction (sample)
https://www.nellobytesystems.com/APIQueryV1.asp?UserID=CK123&APIKey=456&OrderID=789
Query response
{
  "date": "22th-Jul-2023",
  "orderid": "6501321715",
  "requestid": "",
  "statuscode": "200",
  "status": "ORDER_COMPLETED",
  "remark": "You have successfully topped up N100.00 to 2348149659347.",
  "ordertype": "100 Credit",
  "mobilenetwork": "MTN",
  "mobilenumber": "08149659347",
  "amountcharged": "96.5",
  "walletbalance": "3651.449"
}
Cancel transaction (sample)
https://www.nellobytesystems.com/APICancelV1.asp?UserID=CK123&APIKey=456&OrderID=789
Cancel response
{
  "status": "ORDER_CANCELLED",
  "orderid": "789"
}
Callback (CallBackURL)

After processing, we will call your CallBackURL with the OrderID, StatusCode, OrderStatus, and OrderRemark.

Query string format
http://your_callback_url?orderdate=22th-Jul-2023&orderid=6501321715&statuscode=200&orderstatus=ORDER_COMPLETED&orderremark=You%20have%20successfully%20topped%20up%20N100.00%20to%202348149659347
JSON format
{
  "orderdate": "22th-Jul-2023",
  "orderid": "6501321715",
  "requestid": "",
  "statuscode": "200",
  "orderstatus": "ORDER_COMPLETED",
  "orderremark": "You have successfully topped up N100.00 to 2348149659347."
}
Status Codes

Common errors and statuses are listed below. For the full list, use: View full list of Status Code and Descriptions

STATUS DESCRIPTION
INVALID_CREDENTIALSUserID and APIKey combination is not correct.
MISSING_CREDENTIALSURL format is not valid (missing required parameters).
MISSING_USERIDUserID field is empty.
MISSING_APIKEYAPIKey field is empty.
MISSING_MOBILENETWORKMobileNetwork is empty.
MISSING_AMOUNTAmount is empty.
INVALID_AMOUNTAmount is not valid.
MINIMUM_50Minimum amount is 50.
MINIMUM_200000Maximum amount is 200,000.
INVALID_RECIPIENTAn invalid mobile phone number was entered.
ORDER_RECEIVEDYour order has been received.
Since we use a GET API, responses are returned in JSON.
Style Switcher
Theme Colors
Theme Skins

Layout Styles

Theme Types and Versions