STK Query

Look up the status of an STK Push by its CheckoutRequestID.

Endpoint

Request
POST https://kipay.benfex.net/mpesa/stkpushquery/v1/query

Example

cURL
curl -X POST "https://kipay.benfex.net/mpesa/stkpushquery/v1/query" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "BusinessShortCode": "123456",
    "Password": "<base64-password>",
    "Timestamp": "20260101120000",
    "CheckoutRequestID": "ws_CO_191220191020363925"
  }'

Response

JSON
{
  "ResponseCode": "0",
  "ResultCode": "0",
  "ResultDesc": "The service request is processed successfully.",
  "MerchantRequestID": "29115-34620561-1",
  "CheckoutRequestID": "ws_CO_191220191020363925"
}
While the customer has not yet responded, the query returns a 500.001.1001 error saying the transaction is being processed. Try again shortly, or wait for your callback. You can only query transactions made with your own credentials and environment.