Platform fees are prepaid from your service wallet: every STK Push reserves its fee from this balance. Read the balance to decide when to top up.

Response

200 OK
integer
Available prepaid balance in whole KES — 482 = KES 482.
If the balance cannot cover an STK fee, Create STK Push fails with 402 INSUFFICIENT_CREDIT — so top up whenever this number gets low.

Top up your service wallet

Top-ups are requested from the Fortpesa dashboard (there is no top-up API endpoint) and are free — no platform fee applies to topping up:
  1. Sign in to your dashboard and open Wallet & top-ups in the sidebar.
  2. Enter the amount in whole KES and the M-Pesa phone that should receive the prompt.
  3. Press Send STK push and approve the prompt on your phone. The payment settles on Fortpesa’s M-Pesa collection account.
  4. The service wallet balance updates automatically once M-Pesa confirms — usually within seconds. Read it again with the endpoint above to confirm.
A prompt that is never completed does not credit anything.