Skip to content
NOSTREL
Integrations

No logo wall.
Here is the actual surface.

The convention for a page like this is a grid of company logos implying partnerships that, read closely, mean "we have an API and so do they". We are pre-launch and have signed nothing, so that grid would be a lie, and the one reader who checks is exactly the reader we need.

What exists is four ways in and out, five M-Pesa rails underneath them, and a bank directory that took longer to get right than the rest of this page put together. All of it is checkable, which is the only kind of claim worth making.

The surface

Four ways in and out

If your system can make an HTTPS request, receive one, or read a CSV, it can talk to this.

A REST API

JSON over HTTPS

Three endpoints move money: create a collection, create a payout, read your balance. Scoped keys, required idempotency keys, and everything the dashboard does on the same API.

The API

Signed webhooks

Events to your server

HMAC signed over the exact bytes, replay-proof, retried, dead-lettered where you can replay them. Written in the same transaction as the thing that happened.

Webhooks

CSV, in and out

For the spreadsheet half of the world

Payout runs up as a four-column CSV. Transactions and statements down, for any date range.

Bulk payouts

A statement an accountant accepts

Opening, in, out, fees, closing

Drawn from the same ledger postings as everything else, so it reconciles rather than nearly reconciles.

Collections

Underneath

Five Safaricom rails, one shape of record

Which rail a payment arrived on is a field, not a different data model and not a different screen.

  • M-Pesa STK push (money in)

    Lipa na M-Pesa Online. Prompt to a handset.

    in
  • M-Pesa paybill (money in)

    C2B, routed by account reference.

    in
  • M-Pesa till (money in)

    Buy Goods, for a counter.

    in
  • M-Pesa B2C (money out)

    Business to customer. Payouts to any number.

    out
  • M-Pesa B2B (money out)

    Business to paybill. How a withdrawal reaches a bank.

    out

In practice

What people actually wire this into

Not partnerships. Patterns, written by the person whose system it is, in an afternoon.

  • Your own order system

    A collection on order, a webhook that marks it paid, and your order number as the reference.

  • An accounting package

    A statement export per period, or the transactions endpoint on a schedule. Fees as their own ledger entries.

  • A spreadsheet

    Payouts up as a CSV, transactions down as a CSV. How a great many real Kenyan businesses run.

  • A messaging workflow

    A link per customer, sent from whatever already sends your messages. No integration at all.

  • An internal tool

    Scoped API keys, so the thing that reads balances cannot send money. A key that can only read is a key that cannot be used to steal.

the whole integration, honestlyts
// Mark an order paid when the webhook arrives, not before.import { verify } from './nostrel-signature'; export async function handler(req, res) {  // The bytes, not a re-serialised object.  const raw = await readRawBody(req);  if (!verify(process.env.NOSTREL_WEBHOOK_SECRET, req.headers['nostrel-signature'], raw)) {    return res.status(400).end();  }   const event = JSON.parse(raw);  if (event.type === 'collection.succeeded') {    await orders.markPaid(event.data.reference, {      amount: event.data.amount,      receipt: event.data.provider_receipt,    });  }   // Acknowledge fast; do the slow work elsewhere.  res.status(200).end();}

That is not a simplified excerpt. Verifying the signature and acting on one event type is most of what a collections integration is, and the webhooks page covers the rest, including why the raw bytes matter so much.

Not here yet

What we have not built

Written in the future tense, because that is what it is.

Plugins for the shop platforms

There is no WooCommerce or Shopify plugin. The API is public and small enough that one is a short afternoon, and if you build one we will link to it on the credits page and help you with the awkward parts.

Official client libraries

Three endpoints and an HMAC check is a thin wrapper in any language, and a badly maintained SDK is worse than none. If demand says otherwise, that changes.

Card payments

This is an M-Pesa platform. Adding cards would mean a different regulator, a different fraud model and a different set of promises, and doing it badly would be worse than not doing it.

Anything outside Kenya

One country, one currency, one regulator, done properly. Expanding before that is true is how a payments company ends up mediocre in four markets.

Integration requests

If an integration needs a field we do not return or an event we do not raise, send the details. Most such gaps are a small change.