Save a Kenyan mobile wallet payee on the right operator row, check the wallet's name and send shillings.
7 min read
Use this recipe to save a Kenyan mobile wallet payee on the right operator row, check the wallet's name, and send shillings.
Who it is for. A payroll app for a Dubai logistics firm that pays a driver's mobile wallet in Nairobi every week.
Status. Available.
Money example
1.
The employer's USD account sends 200.00 USD. Say the fee on your plan is 1.00 USD.
2.
Say the rate is 129.00 KES per USD. The transfer response prices 25,800.00 KES for the driver.
3.
The driver's wallet receives the shillings.
Before you start
•
The sender has a name: first_name and last_name, or business_name for a business (GET /v1/customers/{customer_id}). Kenyan routes refuse a payout with no sender name. If you are unsure, send additional_information.remitter_full_name.
Pick the row named M-Pesa Kenya or Airtel Money Kenya. The rows with shorter names come from another list, and this route is not set up for them.
The phone number
A Kenyan mobile number is 254, then 7 or 1, then 8 digits. Gravv reads +254 712 345 678, 0712345678 and 712345678 all as 254712345678.
Check the number yourself before you save the payee. If the wallet's name check cannot find the number, the API refuses the save. Gravv refuses a number with any other wrong format only at payout.
To pay a Kenyan bank account, follow the same steps with "payee_type": "bank_account", an account_number of 8 to 20 letters or digits, and a bank's institution_id from institution_type=bank. You can pay only the banks that the institutions list returns for KE.
What can go wrong
Response
Why
Fix
400 kenyan account numbers must be 8-20 alphanumeric characters
The bank account number has the wrong format
Fix the number
400 account verification failed: bank could not resolve account holder: invalid input when saving
The wallet number is not registered
Check the number with the recipient
400 a recipient with the same account name, account number and bank already exists, with data.payee_id
A payee with the same name, phone number and operator exists
Use data.payee_id
400 the amount is below the minimum of 2.00 USD for this destination
On some destinations a payout needs at least 2.00 USD, fee included
Send 2.00 USD or more
400 the amount is too small for this destination
On some destinations the payout fee would take the whole amount
Send a larger amount
400 transfers to KE/KES are not available at this time
The route is not open for your business
Contact support
400 this payee is not yet set up for transfers — please contact support to complete its setup
The payee has no operator institution_id
Save the payee on the right operator row
transfer.status.failed after acceptance, and a refund row
The number is not a Kenyan mobile number in the form above, the sender has no name, or the amount is outside the route's limits
You cannot change a phone number, so save a new payee with the right number. Add remitter_full_name, or change the amount
transfer.status.failed, but the transaction is still pending
The transfer is in manual review because the outcome was unclear
Do not send it again. Contact support with the reference
Webhooks you will receive
1.
external_account.created.
2.
transfer.status.pending, several times, with workflow_typeglobal_remittance.
3.
transfer.status.completed or transfer.status.failed.
Testing in sandbox
You can save the wallet payee in sandbox. Its account_name becomes the phone number itself (254712345678), so do not show it as a person's name.
Gravv accepts a payout, and the payout goes through several pending steps. Then Gravv sends transfer.status.failed with transfer_statusmanual_processing_required, while the transaction stays pending. A Kenya payout cannot complete in sandbox, so use it to test how you handle manual review.