The FanitePay Airtime Recharge API allows you to recharge Airtime Balance.
Parameters for the Airtime Recharge endpoint.
| Field | Description |
|---|---|
| name | Customer Full Names |
| The Customer Email | |
| phone_number | This indicates the phone number of the user 07xxxxxxxx. |
| billtype | The supported Bill type are mtn, airtel and utl |
| type | The supported types are MTN, AIRTEL, and UTL |
| amount | The indicates the amount to be charged |
| currency | Currency is UGX |
Airtime Recharge:
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);});