Top up a customer's wallet via M-Pesa or Airtel Money
POST/v1/wallets/:customerId/topup
Sends an M-Pesa STK prompt (or an Airtel Money prompt with provider: airtel) to the customer so they can fund their wallet under the authenticated company. The prompt goes to phoneNumber if given, otherwise to the customer's phone number on file. The request returns immediately with a pending transaction; the wallet is credited once the customer enters their PIN - poll GET /transactions/{id} for the outcome. Requires a company Bearer access token.
Request
Responses
- 201
- 400
- 404
- 422
Customer has no phone number on file and none was supplied
Customer or wallet not found under this company
Customer is not active