Back to Explore

M-Pesa Daraja API

Online
Fintech & PaymentsKenya

Safaricom's official API for M-Pesa - mobile money payments, C2B, B2C, STK Push and transaction status for the largest mobile money service in East Africa.

Technical Details

API Type

REST

Authentication

OAuth

Category

Fintech & Payments

Author Country

Kenya

Available in Countries
KE
Main Endpoint
https://api.safaricom.co.ke
Endpoints
POST/mpesa/stkpush/v1/processrequest

POST/mpesa/b2c/v1/paymentrequest

Example Request
curl -X POST https://api.safaricom.co.ke/mpesa/stkpush/v1/processrequest \
  -H 'Authorization: Bearer ACCESS_TOKEN' -H 'Content-Type: application/json' \
  -d '{"BusinessShortCode":"174379","TransactionType":"CustomerPayBillOnline",...}'
View Documentation

Status

Online

Open Source

No

Available in Countries

1 countries