For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pezesha Mpesa STK

This endpoint enables easier payment experience for Pezesha Partners

Initiate STK Push

POST {{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*

String

Amount merchant wants to pay

phone*

String

Phone number to make payment (+254)

account*

String

Account merchant wants to direct funds to

{
    "status": 200,
    "response_code": 0,
    "error": false,
    "message": "STK Request Submitted Successfully"
}
{
    "status": 422,
    "message": "Validation Error",
    "errors": {
        "amount": [
            "The amount field is required."
        ],
        "phone": [
            "The phone field is required."
        ],
        "account": [
            "The account field is required."
        ]
    }
}

Last updated

Was this helpful?