POST /payouts/validate_account returns the account holder’s name and whether the account is frozen or restricted.
This matters because a payout to a valid-looking but wrong number will often succeed. Validating first turns a silent misdirected payment into a question you can ask the user: is this the right John Doe?
Validation is a read-only lookup. It moves no money, creates no payout, and does not reserve anything.
Request
Response
What each connector supports
Validation rules differ per connector, and a mismatch is rejected before any network call:Co-op supports M-Pesa payouts but not M-Pesa validation — Co-op has not provided a validation endpoint for it. Sending any
account_type other than pesalink to cooperativebank returns a “not supported” error rather than attempting it.Account types
mobile_mpesa
mobile_mpesa
A customer’s M-Pesa number. The most common lookup — use it to confirm a recipient’s name before a wallet payout.
mpesa_paybill and mpesa_till
mpesa_paybill and mpesa_till
A business paybill or till number, rather than a personal wallet. Validate these before a
pay_bill or pay_till payout.pesalink
pesalink
A bank account reachable over PesaLink. Needs
bank_code as well as account_id — the account number alone is ambiguous across banks. See PesaPay bank codes.bank_account
bank_account
A local bank account checked by name enquiry through AICAPAY.
bank_code is always required.airtel_money
airtel_money
An Airtel Money wallet.
currency is required, because Airtel runs a separate endpoint per country.momo_mtn
momo_mtn
An MTN MoMo account, checked through MTN’s own subscriber lookup. Only the
momomtn connector serves it.imt_validate
imt_validate
An international money transfer recipient. Only
choicebank and daraja can serve this — any other connector returns a “not supported” error.M-Pesa validation
Validating an M-Pesa account withconnector: "daraja" works, but the lookup itself does not go to Safaricom. Daraja has no account-validation API, so Pesaswap routes M-Pesa name checks through Choice Bank’s verification service using Pesaswap’s own credentials.
Two consequences:
- You do not need a Choice Bank account to validate M-Pesa numbers. It works whether your payouts run through Choice Bank or Daraja.
- M-Pesa validation depends on a third party. If Choice Bank’s verification service is down, M-Pesa name lookups fail even though M-Pesa payouts themselves are fine. Removing this dependency is on our roadmap.
connector: "airtel" directly, your own Airtel connector account is required.
Common errors
Missing bank_code
Missing bank_code
pesalink lookups, every cooperativebank lookup and every aicapay lookup need bank_code. The request fails validation before any connector is contacted.Missing currency on Airtel
Missing currency on Airtel
Airtel resolves which country’s endpoint to call from
currency. Omitting it fails immediately. connector: "choicebank" with account_type: "airtel_money" needs it too, since that lookup is handed to Airtel.Account type not supported for connector
Account type not supported for connector
Each row of the table above is enforced.
imt_validate on anything but Choice Bank or Daraja, any non-pesalink type on Co-op, or any non-momo_mtn type on MTN all return this.Treating a frozen account as payable
Treating a frozen account as payable
freeze_status: "frozen" or restrict_status: "restricted" arrives inside a 200. If your code only checks the HTTP status, it will send a payout that cannot land.Showing the returned name without a confirmation step
Showing the returned name without a confirmation step
The value of validation is a human confirming the name. Fetching
account_name and sending anyway gets you the same misdirected payout, one API call later.Next steps
Payouts
Send the payout once the account checks out.
Wallet balance
Confirm you have the funds to send.
Supported connectors
Which connectors support which flows.
Roadmap
What we are building next.