M-Pesa Daraja API (Safaricom)

Safaricom's developer portal and APIs for M-Pesa: STK Push, C2B, B2C, transaction status and more.

Daraja exposes M-Pesa services to developers in Kenya, including Lipa na M-Pesa Online (STK Push), customer-to-business, business-to-customer, reversals and balance queries, with a sandbox for testing. Safaricom launched a re-architected Daraja 3.0 platform in late 2025. For provider comparisons, fees and integration guides, see Metatron's Payment Intelligence, which covers payments in depth.

Type
API
Category
APIs
Maintainer
Safaricom PLC
First released
2017
License
Proprietary
Pricing
Mixed — API access is free to register; M-Pesa transaction tariffs apply to production use.
Level
Intermediate
Technologies
api, payments, mobile-money, rest
Last verified
26 Nov 2026

What M-Pesa Daraja API (Safaricom) is used for

  • Accepting M-Pesa payments (STK Push)
  • Disbursements (B2C)
  • Payment reconciliation

Strengths

  • Direct access to Kenya's dominant mobile-money rail
  • Sandbox environment

Limitations

  • Go-live process and callbacks can be tricky
  • Kenya-focused

M-Pesa Daraja API (Safaricom) alternatives

How it relates to other tools

  • M-Pesa Daraja API (Safaricom) works with Africa's Talking
  • M-Pesa Daraja API (Safaricom) works with Node.js
  • M-Pesa Daraja API (Safaricom) works with Python

Built with the same technologies

Learn M-Pesa Daraja API (Safaricom)

Official links

Sources

Explore