# Pezesha Mpesa STK

## Initiate STK Push

<mark style="color:green;">`POST`</mark> `{{BASE_URL}}/mfi/v2/mpesa/stk`

Request merchant for funds using Mpesa's STK push to Pezesha's Paybill

#### Headers

| Name          | Type   | Description              |
| ------------- | ------ | ------------------------ |
| Authorization | String | Token from AUTH endpoint |

#### Request Body

| Name                                      | Type   | Description                               |
| ----------------------------------------- | ------ | ----------------------------------------- |
| amount<mark style="color:red;">\*</mark>  | String | Amount merchant wants to pay              |
| phone<mark style="color:red;">\*</mark>   | String | Phone number to make payment (+254)       |
| account<mark style="color:red;">\*</mark> | String | Account merchant wants to direct funds to |

{% tabs %}
{% tab title="200: OK STK requested successfully" %}

```javascript
{
    "status": 200,
    "response_code": 0,
    "error": false,
    "message": "STK Request Submitted Successfully"
}
```

{% endtab %}

{% tab title="400: Bad Request Validation Error" %}

```javascript
{
    "status": 422,
    "message": "Validation Error",
    "errors": {
        "amount": [
            "The amount field is required."
        ],
        "phone": [
            "The phone field is required."
        ],
        "account": [
            "The account field is required."
        ]
    }
}
```

{% endtab %}
{% endtabs %}
