Yaka - Electricity Bill payment

The FanitePay Yaka payment API allows you to Pay electricity bills for both Prepaid and Postpaid meters to electricity distribution company (UMEME)

How to make Yaka bills payment on FanitePay.

1. Verify the meter number

Make an API request to the Yaka verify endpoint to verify the meter number. If successful, you will receive a JSON snippet with details of verification.

Yaka verify:

POST
var axios = require("axios").default;
var options = {
method: 'POST',
url: '{host}/yaka/verify',
headers: {
Accept: '*/*',
Authorization: 'Bearer FNTPPUBK_LIVE-***************',
'Content-Type': 'application/json'
},
data: {
acc_no: "4xxxxxxxxx",
amount: "0",
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});

If successful, a JSON response containing details of the meter will be returned

Response:

Response
{
"CustomerName": "CUSTOMER NAME",
"outstanding": "70.82",
"type": "PREPAID"
}

2. Make your Yaka bill payment

After verifying the yaka meter number, the next step is to make your bill payment. This can be done by making a request to the yaka bill payment endpoint using the following parameters:

Parameters for the Yaka Payment endpoint.

FieldDescription
nameCustomer Full Names
emailThe Customer Email
phone_numberThis indicates the phone number of the user where token number shall be sent.
billtypeThe supported Bill type is umeme
typeThe supported types is UMEME
amountThe indicates the amount to be charged
acc_noThe UMEME Yaka meter number
currencyCurrency is UGX

Yaka Payment:

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