Connect docs

Public reference for the partner API only. Internal product APIs, admin tools, and proprietary operating procedures are not documented here.

Base URL: /api/v1/connect. Send Content-Type: application/json on every body. Every success is { "success": true, "data": … }.

Access model

  1. Apply for a developer organization
  2. Agree your price with Sika and sign the order form
  3. Pay your first invoice from the console (bank teams are included)
  4. Create sandbox keys after activation; register apps, then request live access for live keys
  5. Call /api/v1/connect/* with Bearer key

Without a paid contract, Connect returns 402 PAYMENT_REQUIRED. A bank's own team gets Connect free with the bank's Sika subscription.

Authentication

Authorization: Bearer sk_sandbox_…
Accept: application/json

A missing, revoked, or unknown key is 401. A key without the route scope is 403 INSUFFICIENT_SCOPE.

Sandbox and live

  • sk_sandbox_… reads two demo accounts and creates payments that succeed immediately. No real money.
  • sk_live_… — production traffic after an approved app and live-access approval

A sandbox key never reads or replays a live payment. Usage in the console is broken down by key.

Scopes

  • org:read: GET /me
  • accounts:read: GET /accounts and GET /accounts/:id
  • payments:read: GET /payments and GET /payments/:id
  • payments:write: create, cancel, and settle
  • webhooks:manage: list, register, and delete endpoints

The same list is at GET /api/v1/developer/catalog. Limit: 120 requests a minute per key.

GET /me

Confirms the key, the organisation, and the scopes on that key.

GET /api/v1/connect/me

{
  "success": true,
  "data": {
    "organization": { "id": "…", "name": "Acme Payments", "slug": "acme-payments", "status": "ACTIVE" },
    "key": { "environment": "SANDBOX", "scopes": ["org:read", "accounts:read", "payments:read", "payments:write", "webhooks:manage"] }
  }
}

GET /accounts

Sandbox demo accounts only. Each account is { id, currency, available, pending, status }. Read one with GET /accounts/:id. Unknown ids are 404 ACCOUNT_NOT_FOUND.

GET /api/v1/connect/accounts

acct_sandbox_demo_001   GHS   available 12500.00   pending 0.00
acct_sandbox_demo_002   GHS   available 840.50     pending 120.00

POST /payments

amount is a positive number in major units, at most two decimal places, and at most 1,000,000. currency defaults to GHS. idempotencyKey is required, 8 to 128 characters. The same key with the same amount and currency returns the original payment. The same key for a different request is 409 IDEMPOTENCY_KEY_REUSED.

POST /api/v1/connect/payments
{
  "amount": 125.5,
  "currency": "GHS",
  "description": "Invoice 42",
  "metadata": { "invoiceId": "42" },
  "idempotencyKey": "inv-42-attempt-1"
}

201 returns data.payment with id, amount as a string, currency, status (pending, succeeded, failed, or cancelled), reference, description, metadata, and timestamps. Do not parse reference. Sandbox payments are succeeded at once. Live payments start pending.

GET /payments?limit=20 lists your payments in this key's environment, newest first. limit is 1 to 100. GET /payments/:id reads one.

POST /payments/:id/settle

Completes a pending payment and sends the matching webhook. Use it with a live key. A sandbox payment is already succeeded, so settle on it returns 409 PAYMENT_NOT_PENDING. This records the outcome on the payment. It does not post to a bank ledger.

POST /api/v1/connect/payments/PAYMENT_ID/settle
{ "outcome": "SUCCEEDED" }

outcome is SUCCEEDED or FAILED

POST /payments/:id/cancel

Cancels a pending payment and sends payment.cancelled. No body. Only a pending payment can be cancelled (409 PAYMENT_NOT_PENDING otherwise).

POST /api/v1/connect/payments/PAYMENT_ID/cancel

POST /payment-links

Creates a hosted page the customer can pay with mobile money. The organisation must already be bound to an active merchant at a bank, and the key must be live. The full amount is credited to that merchant's account at the bank. Sika does not hold it. Omit amount and the customer enters it.

POST /api/v1/connect/payment-links
{
  "title": "Invoice 42",
  "amount": 125.5,
  "idempotencyKey": "inv-42-link"
}

201 returns data.link with url. Send that URL to the customer. A successful payment then appears on GET /payments. A sandbox key gets 403 LIVE_KEY_REQUIRED. An organisation with no merchant gets 409 SETTLEMENT_NOT_BOUND. GET /payment-links lists the active links.

POST /webhooks

Register a public https URL. Loopback, private, and link-local addresses are refused, and the URL must not contain a username or password. Store whsec_… from the 201 response. It is not shown again. GET /webhooks lists endpoints. DELETE /webhooks/:id turns one off.

POST /api/v1/connect/webhooks
{
  "url": "https://acme.example/hooks/payments",
  "events": ["payment.succeeded", "payment.failed", "payment.cancelled"]
}

Delivery is at-least-once. Answer with a 2xx status. Dedupe on eventId (payment:{id}:{status}). Poll GET /payments/:id if a delivery does not arrive. Your URL must be reachable from the public internet. A laptop address cannot receive events.

Verify X-Sika-Signature. It is the hex HMAC-SHA256 of timestamp.body, where timestamp is the X-Sika-Timestamp header (unix seconds) and body is the raw request body. Also read X-Sika-Event-Id, X-Sika-Event-Type, and X-Sika-Delivery-Attempt. Compare the signature in constant time, and reject a timestamp more than a few minutes from your clock.

{
  "eventId": "payment:PAYMENT_ID:SUCCEEDED",
  "eventType": "payment.succeeded",
  "occurredAt": "2026-10-24T12:00:00.000Z",
  "payment": {
    "id": "PAYMENT_ID",
    "amount": "125.5",
    "currency": "GHS",
    "status": "succeeded",
    "reference": "pay_…",
    "description": "Invoice 42",
    "metadata": { "invoiceId": "42" },
    "createdAt": "2026-10-24T12:00:00.000Z",
    "updatedAt": "2026-10-24T12:00:00.000Z"
  }
}
import { createHmac, timingSafeEqual } from 'node:crypto';

export function verifySikaSignature(secret, rawBody, timestamp, signature) {
  const expected = createHmac('sha256', secret).update(timestamp + '.' + rawBody).digest('hex');
  const a = Buffer.from(expected);
  const b = Buffer.from(signature);
  return a.length === b.length && timingSafeEqual(a, b);
}

Errors

Failures are { "success": false, "error": { "code", "message" } }.

  • 401 missing, invalid, or revoked key
  • 402 PAYMENT_REQUIRED subscription is not active
  • 403 INSUFFICIENT_SCOPE, ORG_SUSPENDED, ORG_REVOKED
  • 400 VALIDATION_ERROR, INVALID_AMOUNT, AMOUNT_TOO_LARGE, INVALID_WEBHOOK_URL
  • 404 PAYMENT_NOT_FOUND, ACCOUNT_NOT_FOUND, WEBHOOK_NOT_FOUND
  • 409 IDEMPOTENCY_KEY_REUSED, PAYMENT_NOT_PENDING
  • 429 CONNECT_RATE_LIMIT with Retry-After
  • 501 LIVE_ACCOUNTS_UNAVAILABLE

SDK

The HTTP calls above are the complete surface. Package @sdbi/developer-sdk wraps the same routes (me, listAccounts, createPayment, settlePayment, cancelPayment, createWebhook). It is not on the public npm registry yet. Until it is published, call the HTTP API.

import { SikaConnect } from '@sdbi/developer-sdk';

const client = new SikaConnect({
  apiKey: process.env.SIKA_CONNECT_API_KEY,
  baseUrl: 'https://<api-host>',
});

await client.createPayment({
  amount: 10,
  currency: 'GHS',
  idempotencyKey: crypto.randomUUID(),
});

OpenAPI

Machine-readable Connect schema: /api/v1/developer/openapi.json

Out of scope

White-label operator APIs, staff consoles, KYC vendor wiring, ledger posting, fraud tooling, Susu internals, and other proprietary systems are not part of Connect and will not be exposed through this portal.

Looking for the full banking product? →