Deposit from M-PESA

STK Push Deposit

POST /trans/depositFromMpesa

<Use this endpoint to request depositing from an M-PESA mobile. That mobile owner will receive STK Push and PIN code input is required from him/her to confirm the transfer.>

Parameters

Parameters
Type
Description
Is Required

accountId

string

The ID of the account that the money should be deposit to.

TRUE

mobile

string

The number of the mobile that is to make the transfer from (which will receive STK push and needs to input the PIN code)

TRUE

amount

decimal

Deposit amount (in KES only)

TRUE

Response

{
  "txId": ""
}

Paybill Deposit

Sandbox: make a transfer to Paybill Shortcode 4101847, and specify the number of the bank account that is to deposit to in the Account Number field in Mpesa App.

Prod: make a transfer to Paybill Shortcode 444174, and specify the number of the bank account that is to deposit to in the Account Number field in Mpesa App.

Last updated