1. Authentication
Learn how to get your API key and shortcode tracking codes for secure API access.
Learn how to get your API key and shortcode tracking codes for secure API access.
Send STK Push requests to customer phones and handle payment processing.
Set up webhook endpoints to receive payment status updates and transaction notifications.
Complete list of API error codes and M-Pesa result codes with descriptions.
Security recommendations, performance tips, and integration best practices.
All API requests should be made to our secure endpoint.
Complete example for initiating a payment request.
Response format for successful payment initiation.