Airtel Money Developer API ExpressJS Client
Documentation and official resources can be found at Airtel Developer Portal: https://developers.airtel.africa/
-
You have Signed Up at: https://developers.airtel.africa/signup
-
You have created at Application on Airtel Developers Portal: https://developers.airtel.africa/developer/register
-
You possess both Client ID and Client Secret Key
After cloning or downloading this repo, run npm install
.
Then npm run start
to start the client API.
Visiting http://localhost:3000/
should display; Welcome to your Airtel Money API Client!.
-
Collection Payment POST -
http://localhost:3000/airtel/collection
Sample Payload
{ "amount": 1000, "number": 9999999999, "reference": "Testing transaction" }
-
Collection Refund POST -
http://localhost:3000/airtel/collection/refund/{airtelMoneyId}
-
Collection Payment Txn Enquiry GET -
http://localhost:3000/airtel/collection/txnEnquiry/{transactionId}
-
Disbursement Payment POST -
http://localhost:3000/airtel/disbursement
Sample Payload
{ "amount": 1000, "number": 9999999999, "reference": "ABCD07026984141", "pin": 1234 }
-
Disbursement Refund POST -
http://localhost:3000/airtel/disbursement/refund/{airtelMoneyId}
Sample Payload
{ "pin": 1234 }
-
Collection Payment Txn Enquiry GET -
http://localhost:3000/airtel/collection/txnEnquiry/{transactionId}