Developer‑Friendly APIs

Build, test, and deploy payment integrations quickly with our robust APIs and documentation.

REST APIs

Integrate M‑Pesa payments, payment links, wallet management, and withdrawals using our secure REST APIs.

Webhooks

Receive real‑time payment notifications and transaction updates directly to your application.

SDKs & Docs

Detailed documentation with code examples, test environments, and SDKs for faster integration.

Quick Start – STK Push (PHP)

<?php $apiUrl = 'https://lipaharakaapis.co.ke/api.php?action=api_stk'; $data = [ 'api_key' => 'YOUR_API_KEY', 'phone' => '254712345678', 'amount' => '100', 'channel_id' => '16' ]; $ch = curl_init($apiUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true));
Full API Documentation →