Supported Payment Methods & Payload Requirements
Payment Flow: How It Works
Deposits (Collections via STK Push)
- Initiation: Send a signed POST request to the Unified Collections endpoint with
payment_method_type: "send money",country_id: 1,currency: "KES", and the customer’s phone number inmobile(format:2547XXXXXXXX). - Handset Prompt: The customer receives an on-screen prompt on their phone to enter their PIN and authorize the transfer.
- Initial Acknowledgement: Niobi returns an immediate response (
payment_step: 1) containing the assigneddepositId. - Webhook Delivery: Once the payment completes, Niobi sends an asynchronous webhook callback (
payment_step: 2,status: "success") to yourcallback_url.
Payouts (Disbursements)
When making a payout via the Unified Payments endpoint, pass the appropriatepayment_method_type along with its required nested method array:
- Send Money (B2C): Pass
payment_method_type: "send money"with asendmoneyarray carryingphone_number. - PayBill (B2B): Pass
payment_method_type: "pay bill"with apaybillarray containingpaybill_numberandaccount_number. - Till Number (Buy Goods): Pass
payment_method_type: "till number"with atillnumberarray containingtill_number. - Pesalink (Bank Transfer): Pass
payment_method_type: "pesalink"with apesalinkarray carryingbank_name,bank_code,branch_name,account_name, andaccount_number. - Airtel Money: Pass
payment_method_type: "Airtel"with anAirtelarray containingphone_number.
List of Supported Kenyan Banks for Pesalink
Pass one of the following codes asbank_code in the pesalink array when initiating a bank payout:
Supported Kenyan Banks for Pesalink
Supported Kenyan Banks for Pesalink
Sample Requests & Responses
M-Pesa STK Push Deposit Request
Deposit Response (Initiation)
payment_step: 1 means the request was accepted and the STK prompt was pushed to the user’s handset. Await the terminal callback (payment_step: 2).
Payout Request (M-Pesa Send Money)
Payout Request (Pesalink Bank Transfer)
Payout Response (Initiation)
Webhook/Callback Examples
Successful Deposit Callback
Successful Payout Callback
Try it
Try it: POST /api/v4/niobi-unified-collections
Collections API reference for Kenya deposits.
Try it: POST /api/v4/niobi-unified-payments
Payments API reference for Kenya payouts.


