Airtime Recharge - MTN and AIRTEL Uganda

The FanitePay Airtime Recharge API allows you to recharge Airtime Balance.

How to make Airtime Recharge payment on FanitePay.

1. Make your Airtime Recharge.

Parameters for the Airtime Recharge endpoint.

FieldDescription
nameCustomer Full Names
emailThe Customer Email
phone_numberThis indicates the phone number of the user 07xxxxxxxx.
billtypeThe supported Bill type are mtn, airtel and utl
typeThe supported types are MTN, AIRTEL, and UTL
amountThe indicates the amount to be charged
currencyCurrency is UGX

Airtime Recharge:

POST
var axios = require("axios").default;
var options = {
method: 'POST',
url: '{host}/telco',
headers: {
Accept: '*/*',
Authorization: 'Bearer FNTPPUBK_LIVE-***************',
'Content-Type': 'application/json'
},
data: {
name: "Customer Name",
email: "customer@email.com",
phone_number: "07XXXXXXXX",
billtype: "mtn",
type: "MTN",
amount: "5000",
currency: "UGX",
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});