NSWC - Water Bill payment

The FanitePay NSWC payment API allows you to Pay water bills.

How to make NSWC bills payment on FanitePay.

1. Verify the meter number

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

NSWC verify:

POST
var axios = require("axios").default;
var options = {
method: 'POST',
url: '{host}/nswc/verify',
headers: {
Accept: '*/*',
Authorization: 'Bearer FNTPPUBK_LIVE-***************',
'Content-Type': 'application/json'
},
data: {
acc_no: "2xxxxxx",
}
};
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, the response will contain the Name under meter number as well as the outstanding balance

Response:

Response
{
"CustomerName":"Customer name",
"outstanding":"234730"
}

2. Make your NSWC bill payment

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

Parameters for the NWSC Payment endpoint.

FieldDescription
nameCustomer Full Names
emailThe Customer Email
phone_numberThis indicates the phone number of the user.
billtypeThe supported Bill type is nwsc
typeThe supported types is NWSC
amountThe indicates the amount to be charged
acc_noThe NWSC account number
currencyCurrency is UGX

NSWC 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: "nwsc",
type: "NWSC",
amount: "70000",
acc_no: "2XXXXXX",
currency: "UGX",
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});