Back to all articles
Product·5 min read·

How KodiiPay Processes Direct PayBill Rent Payouts

A look at how configured PayBill rent payments move through KodiiPay's payout pipeline, including landlord eligibility checks and payment-status tracking.

K

kodiipay Team

5 March 2026 · kodiipay.co.ke

PRODUCTHow KodiiPay ProcessesDirect PayBill RentPayoutsKkodiipay5 min read

When a landlord configures PayBill as a rent method, KodiiPay uses a payout pipeline to route eligible rent payments to that PayBill destination. The tenant sees the method only when it is available for the rent schedule. The payout is asynchronous, and its final status depends on landlord eligibility and the payment gateway's response.

Why B2B?

M-Pesa offers several APIs for moving money:

  • C2B (Customer to Business) — used when a tenant pays a bill via PayBill or Till
  • B2C (Business to Customer) — used to disburse money to a single recipient
  • B2B (Business to Business) — used to move money between business accounts

For a configured PayBill rent method, KodiiPay queues a Business-to-Business payout to the landlord's saved PayBill destination. The app records the payout state so it can be checked rather than promising that every payment reaches the destination immediately.

The Payout Flow

At a high level, the direct PayBill rent flow works as follows:

  • The tenant selects an enabled PayBill rent method in KodiiPay
  • KodiiPay validates the rent payment and places the B2B payout in its processing queue
  • Landlord KYC and subscription eligibility checks determine whether the payout can proceed
  • The payment provider processes the payout and returns a result
  • KodiiPay updates the transaction and rent schedule with the recorded status
  • If delivery fails, the applicable failure and reversal handling is used; check the transaction record for its result

Why It's Fast

Payout processing is asynchronous. Network conditions and provider response times can vary, so tenants and landlords should use the transaction record to confirm the current status rather than assume immediate delivery.

NOTEIdempotency
Every transaction is assigned a unique reference. If the B2B callback is delayed or duplicated, kodiipay's idempotency layer ensures the landlord is never credited twice. This is critical for financial systems where double-payouts can cause real money loss.

B2C Withdrawals

Wallet withdrawals are a separate flow from direct PayBill rent payouts. A landlord requests a withdrawal to an eligible saved M-Pesa or PayBill method; the minimum withdrawal is KES 10, and processing time depends on eligibility checks and the provider response.

Reliability and Monitoring

kodiipay monitors every B2B and B2C transaction in real time:

  • Automatic retry on transient failures (network issues, timeout)
  • Alert system for any transaction stuck in pending state for more than 60 seconds
  • Daily reconciliation reports comparing kodiipay wallet balances with Safaricom statements
  • Cron-based sweep job that identifies and resolves any orphaned transactions
  • Real-time dashboard for the operations team to monitor all payment flows

The Result

All of this infrastructure work means that tenants, landlords, and property managers experience what feels like magic: tap to pay, instant confirmation, instant wallet credit, instant withdrawal. But under the hood, it's thousands of lines of code, dozens of API integrations, and a relentless focus on reliability, security, and reconciliation.

PayBill rentpayoutspayment statustechnical
Share this article