# Deposit from M-PESA

## STK Push Deposit

<mark style="color:green;">`POST`</mark> `/trans/depositFromMpesa`

Use this endpoint to directly prompt an M-pesa mobile money wallet holder to pay into a API-onboarded Choice Bank account. Session lasts 30 seconds; all the M-pesa user needs to do is key in and submit their M-pesa PIN.&#x20;

{% hint style="info" %}
NOTE: For current accounts and wallets, the STK Push can only prompt the Safaricom phone number attached to the account . SME accounts can prompt any active M-pesa account.&#x20;
{% endhint %}

<table data-full-width="false"><thead><tr><th width="131.066650390625">Parameters</th><th width="87">Type</th><th width="352.86669921875">Description</th><th width="235.13330078125">Required?</th></tr></thead><tbody><tr><td><code>accountId</code></td><td>string</td><td>Account number to be credited</td><td>TRUE</td></tr><tr><td><code>mobile</code></td><td>string</td><td>M-pesa mobile number to be debited</td><td>TRUE</td></tr><tr><td><code>amount</code></td><td>integer</td><td><p>Deposit amount </p><p></p><p>(in <strong>KES</strong> only and should be a <strong>whole number</strong>, not decimal)</p></td><td>TRUE</td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="00000" %}

```json
{
  "txId": ""
}
```

{% endtab %}
{% endtabs %}

## Paybill Deposit

Sandbox: make a transfer to Paybill Shortcode <kbd>4101847</kbd> and specify, in the Account Number field in Mpesa App/USSD, the Choice Bank account number to be credited.&#x20;

Prod: make a transfer to Paybill Shortcode <kbd>444174</kbd> and specify, in the Account Number field in Mpesa App/USSD, the Choice Bank account number to be credited.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://choice-bank.gitbook.io/choice-bank/deposit/deposit-from-m-pesa.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
