⚡ Now Live
M-Pesa API
M-Pesa API
for developers
Connect your Till or Paybill in minutes. STK Push, webhooks, and real-time transaction tracking — built for scale.
50k+ transactions
99.9% uptime
24/7 support
# Initiate STK Push curl -X POST api.liparo.co.ke/v1/initiatestk \ -H "Content-Type: application/json" \ -d '{ "secret_key": "sk_...", "passkey": "pk_...", "shortcode": "1234567", "amount": 100, "phone": "254712345678" }' # Response { "success": true, "transaction_id": "LIP2024...", "message": "STK Push initiated" }
Features
Built for production
Everything you need to accept M-Pesa payments — simple, secure, and developer-first.
Instant STK Push
Single API call to initiate payments. Real-time responses with transaction IDs.
Secure by default
Unique secret keys + passkeys per account. All requests encrypted over TLS.
Webhooks
Automatic payment notifications sent to your server. No polling required.
Dashboard
Track every transaction, monitor performance, and export reports.
Till + Paybill
Flexible integration for both Till Numbers and Paybills. One API, two modes.
Developer friendly
Clean REST API, comprehensive docs, and a sandbox environment to test.
🚀 Quick Start
Get live in 5 minutes
- Create account — free, no card required
- Add your Till or Paybill — we generate credentials
- Copy your keys — secret_key, passkey, shortcode
- Make your first request — STK Push via curl or SDK
- Handle webhooks — we notify you on payment completion
Try it now
curl -X POST https://api.liparo.co.ke/v1/initiatestk \
-H "Content-Type: application/json" \
-d '{"secret_key":"sk_...","passkey":"pk_...","shortcode":"1234567","amount":10,"phone":"254712345678"}'
Start now →
Ready to integrate?
Join 1,000+ businesses already using Liparo API for M-Pesa payments.
Create free account →