DEVELOPERS · SANDBOX ON REQUEST

Build on Sharet.

One API for every wallet in Kenya. JSON in, JSON out, idempotent writes, signed webhooks and plain errors. Start in the sandbox with simulated M-Pesa and banks.

# Send KES 1,500 to an M-Pesa number POST /v1/payments Idempotency-Key: 9f1c2a7e-4b2d { "amount": "1500.00", "currency": "KES", "to": { "type": "mpesa", "phone": "0722 000 904" }, "note": "Order 1042" } # 202 Accepted { "id": "pay_7Q2K81P", "status": "paying", "name": "WANJIKU MWANGI", "fee": "15.00" }
RESTJSON over HTTPS
IdempotentSafe to retry every write
HMACSigned webhooks
RFC 7807Errors you can read
FOR TESTING ONLY

Android test build.

A test build of the Sharet app for testers and developers. It talks to sharet.africa in test mode, so money is simulated. It isn't the store version: your phone may ask you to allow installs from your browser.

ENDPOINTS · V1

The whole surface, on one page.

Six endpoints for paying, checking and reconciling. Sandbox keys work the same as live ones.

POST/v1/paymentsSend to M-Pesa, Airtel Money, T-Kash, a bank or a Sharet wallet. Idempotent.
GET/v1/payments/{id}Status, fee, recipient name and settlement time.
POST/v1/quotesThe exact fee and, for other currencies, the locked rate before you send.
GET/v1/balanceYour wallet balance, available and held.
GET/v1/ledgerEvery entry, filterable by date, type and status. Paginated.
POST/v1/webhookspayment.paid, payment.failed and payment.refunded, signed with HMAC-SHA256.

Ready to build?

Tell us what you're making and we'll send sandbox keys.

SANDBOX ACCESS

Tell us what you're building.

We'll reply with sandbox keys and the docs.

We reply within one working day. No newsletter signup. No third-party sharing.