KENYAN M-PESA PAYMENT API
LeeTec M-Pesa API for Kenyan businesses
LeeTec Engine is a payment integration platform that gives Kenyan businesses a REST API for Lipa na M-Pesa STK Push. Start customer payment prompts from your backend, track confirmed outcomes, and route collections to your configured Till, PayBill, or Bank.
Use one secure workspace to manage API keys, payment activity, payout methods, and optional signed webhook notifications. LeeTec is an independent integration platform; M-Pesa transactions are processed through Safaricom and require the merchant configuration applicable to your account.
M-Pesa STK Push API
Send a server-to-server request with a Kenyan phone number, amount in Kenyan shillings, an order reference, and a unique request ID. The customer reviews and approves the M-Pesa prompt on their phone. LeeTec records the provider result so your integration can confirm payment status before fulfilling an order.
Direct payment routing for Till, PayBill, or Bank
Configure and activate the merchant destination in your LeeTec workspace. Collections route to the selected Till, PayBill, or Bank account. This makes LeeTec useful for businesses that need an M-Pesa API connection while receiving collections through their configured merchant payment method.
Payment status, history, and optional webhooks
Check a transaction using its request ID or review payment history in the workspace. Merchant webhooks are optional: LeeTec records payment callbacks without requiring you to operate a webhook endpoint. Add signed webhook events only when your backend needs automatic notifications.
How to connect the LeeTec API
Set up your payment destination
Add and activate the Till, PayBill, or Bank where customer collections should be routed.
Create an API key
Keep the secret key on your backend and authenticate your LeeTec API requests securely.
Send an STK Push request
Use the documented endpoint, phone number, amount, reference, and unique request ID.
Confirm the final status
Check the transaction result before fulfilling the customer’s order. An accepted prompt is not proof of payment.
Who is the LeeTec M-Pesa API for?
LeeTec is designed for Kenyan merchants, developers, online businesses, and payment teams integrating M-Pesa STK Push into a website, app, or backend. The public API guide covers authentication, payment requests, status checks, idempotent retries, common errors, and optional webhooks.