Paybill
This API enables you to pay bills directly from your business account to a pay bill number, or a paybill store. You can use this API to pay on behalf of a consumer/requester.
Creating a Paybill Request.
Request Body
Name
Type
Description
const axios = require('axios');
const data = {
amount: 10,
recipientSC: "000000",
accountNumber: "353353",
username: "username",
phone: "254722000000"
};
const config = {
headers: {
'Content-Type': 'application/json',
'Authorization': 'secret_key'
}
};
axios.post('https://api.rotsi.co.ke/payments/paybill/v1', data, config)
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
Last updated