Developer API

Build on Sakura Pay.

Integrate mobile money payments into your application with our REST API, webhooks and SDKs.

Quick Start

Start building in minutes

Subscribe to payment events with a single API call.

# Create a webhook subscription
curl -X POST https://pay.sakuragroup.co.tz/api/webhooks \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "event": "payment.received",
    "callback_url": "https://your-app.com/webhook"
  }'

# Response
{
  "id": "wh_abc123",
  "event": "payment.received",
  "status": "active",
  "created_at": "2026-03-01T12:00:00Z"
}
Platform

Developer tools

Everything you need to integrate Sakura Pay.

REST API

Simple, predictable REST endpoints for transactions, channels, merchants and more.

API reference

Webhooks

Real-time payment events delivered to your endpoint with HMAC signatures for verification.

SDKs

Official client libraries for JavaScript, Python and PHP. Install and start building in minutes.

API Keys

Test and live API keys. Switch between sandbox and production with one config change.

Security

HMAC-signed webhooks, TLS encryption, and rate limiting built into every endpoint.

Low Latency

Sub-second response times. Webhook delivery within 3 seconds of payment confirmation.

Endpoints

API reference

Key endpoints for the Sakura Pay REST API.

GET/api/transactions
GET/api/transactions/:id
GET/api/channels
POST/api/webhooks
GET/api/webhooks
DELETE/api/webhooks/:id
Authentication

Secure by default

Every request is authenticated with your API key. Webhooks are signed with HMAC-SHA256.

API Keys

Include your API key in the Authorization header of every request. Use test keys for development and live keys for production.

Authorization: Bearer sk_live_...

Webhook Signatures

Every webhook includes an HMAC-SHA256 signature in the X-Sakura-Signature header. Verify it to ensure the payload hasn't been tampered with.

X-Sakura-Signature: sha256=...

Ready to start building?

Create your account and get API keys in less than a minute.