REST API v1

BongoPay Developer API

Integrate mobile money into any website or app. BongoPay makes every Selcom call server‑side — your customers never leave your platform, and your keys never touch the browser.

Base URL

https://bongopay.net/api/v1

Authentication

Every request needs your secret API key. Generate one from your dashboard.

Authorization: Bearer sk_live_xxxxxxxxx Content-Type: application/json
Never expose your secret key in frontend JavaScript or mobile apps — use it only from your server.

Endpoints

MethodEndpointDescription
POST/payments/createCreate a hosted checkout link
POST/pay-via-mobileUSSD push to the customer's phone
GET/payments/{reference}Get a payment's status
GET/transactionsList recent transactions
GET/balanceAccount balance
POST/webhooks/testTrigger a test webhook event

Quick example — USSD push

curl -X POST https://bongopay.net/api/v1/pay-via-mobile \ -H "Authorization: Bearer sk_live_xxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "name": "John Doe", "phone": "255744000000", "amount": 5000, "transaction_id": "ORDER-1001" }'

Webhook events

BongoPay sends signed POST requests to your callback_url on every status change.

{ "event": "payment.paid", "data": { "payment_reference": "BPY-20260518-AB12CD34", "status": "paid", "amount": 5000 }, "sent_at": "2026-05-20T04:24:51+00:00" }

Ready to integrate?

Sign in to view your personalised docs with your live key, or create an account to get started.