const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
merchantTransactionId: 'payout_97233',
amount: 420000,
phoneNumber: '+254701234567',
narration: 'Salary payout'
})
};
fetch('https://api.fingopay.io/v1/mpesa/b2c', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Transaction initiated successfully",
"data": {
"merchantTransactionId": "mtx_123",
"transactionId": "txn_01j7b6f9p5y9h"
}
}Send funds directly to a customer’s M-Pesa wallet. The disbursement will be processed asynchronously. Optional fields are advanced; send only required fields unless your integration needs this behavior.
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
merchantTransactionId: 'payout_97233',
amount: 420000,
phoneNumber: '+254701234567',
narration: 'Salary payout'
})
};
fetch('https://api.fingopay.io/v1/mpesa/b2c', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Transaction initiated successfully",
"data": {
"merchantTransactionId": "mtx_123",
"transactionId": "txn_01j7b6f9p5y9h"
}
}Use your API key as a Bearer token. Example: Authorization: Bearer sk_live_...
Unique key to safely retry POST without duplicates. Required in live environment.
Merchant-side reference used for payout reconciliation. Accepts 1-64 characters (letters, numbers, dot, underscore, or hyphen).
1 - 64^[A-Za-z0-9._-]{1,64}$"payout_97233"
Amount in smallest currency unit (cents). Range 1-15,000,000 (KES 0.01-150,000.00).
1 <= x <= 15000000420000
Recipient MSISDN in Kenyan format (+2547/2547/07 or +2541/2541/01 followed by eight digits).
^(?:\+254|254|0)(?:7|1)\d{8}$"+254701234567"
Optional narration displayed to the recipient. Maximum 140 characters.
140"Salary for Aug 2025"
Override webhook destination for this payout.
"https://merchant.example/webhooks/fingo"
[Enterprise] Optional shortcode to use for this B2C transfer.
"600123"
[Enterprise] Optional internal sub-merchant identifier configured under your organization.
"SM-NAIROBI-001"
Accepted — final result will be delivered via webhook.
Was this page helpful?