GET
/api/v1/kenya/mpesaFeesM-Pesa fees
M-Pesa send and agent-withdrawal fees for a registered-to-registered transfer, from the Safaricom tariff. Returns the fees, total cost and net received.
Try it live
Request
GET https://www.leadafrik.com/api/v1/kenya/mpesa?amount=2500Response
…Parameters
| Name | Type | Required | Description |
|---|---|---|---|
amount | number | yes | Transaction amount in KES |
Call it from code
curl
curl "https://www.leadafrik.com/api/v1/kenya/mpesa?amount=2500"JavaScript
const res = await fetch("https://www.leadafrik.com/api/v1/kenya/mpesa?amount=2500");
const { ok, data, meta } = await res.json();