Developer documentation
Build on Paysasa
Accept M-Pesa and card payments, hold funds in wallets and escrow, pay out in bulk and react to events, all through one REST API. Start with the quickstart or jump straight to an endpoint.
QuickstartYour first payment in six steps.Checkout sessionsThe core payment endpoint, with splits and redirects.WebhooksEvents, payloads and signature checks.All endpoints84 endpoints, filterable by method and path.
The essentials
Base URL
https://api.paysasa.com/api/v1
Authentication
x-api-key header with a business API key
AmountsIntegers in minor units (
15000 = KES 150.00)
Requests and responsesJSON over HTTPS
Retries
X-Idempotency-Key on money-moving calls
WebhooksHMAC-SHA256 in
x-paysasa-signature
Browse by topic
Get started
Keys, amounts, retries and errors. The ground rules every call follows.
Accept payments
Checkout sessions, links, invoices, subscriptions and donations.
Wallets & money movement
Multi-currency wallets, virtual accounts, payroll and business transfers.
Savings & credit
Lengo savings goals and Deni IOUs, with their events.
Looking for how-to guides?
Plain-language help articles for merchants, buyers and chamas live in the help articles section, and product guides are on the blog.