Country: Kenya info@stabexinternational.com · +254 726 337 777
Home / Developers

Build on Stabex

REST and JSON APIs for cards, fills, statements and the Stabex app. Connect station POS, your ERP or a fleet system, and test everything in the sandbox first.

6 API groupsREST + JSONSandbox from week oneWebhooks for every fill
How it connects

Plugs into what Stabex already runs

The APIs sit between the forecourt, payments and the systems your business already uses. Nothing has to be replaced.

Station POS and pumps
Existing fuel-card system
Stabex ERP and finance
Stabex APIsAccounts · Cards · Authorisation · Transactions · Statements · Webhooks
M-Pesa and banks
Visa network
Customers' fleet systems
API catalogue

Six groups, one key

Final scope is agreed with Stabex IT. Every group below already answers in the sandbox on this page.

Quick start

First call in five minutes

Sandbox keys work only against sandbox data. Nothing is charged and no card is real.

1

Get a sandbox key

Stabex IT issues keys per system. This page uses a sample key:

2

Make a call

Send the key as a bearer token.

curl https://sandbox.api.stabex.co.ke/v1/cards \
  -H "Authorization: Bearer $STABEX_KEY"
3

Listen for events

Register an HTTPS URL and get every fill, decline and top-up as it happens.

Webhooks
API reference

Try every endpoint

Pick an endpoint, edit the request and send it. The sandbox runs in this page, so you can break things freely.

GET/v1/cards


    
ResponseNot sent yet
// Press "Send request"
Sample Android app

The Stabex app, wired to the sandbox

A working sample of the motorist app from the design deck: sign up, prepay at the pump, pump code, cashback, wallet top-ups, LPG shop and station finder, plus the fleet driver's card view. Use it on the left, or install it on an Android phone.

To install, allow your browser to install unknown apps when Android asks. Debug build for testing only, sandbox data, nothing is charged.

Live API calls from the app0 calls
  1. Tap around the app. Every request it makes shows here.
Webhooks

Events as they happen

Stabex POSTs a JSON event to your URL. Verify the Stabex-Signature header with your endpoint secret, then reply 2xx within 10 seconds. Failed deliveries retry for 24 hours.

EventSent when
fill.approvedA card fill passed the card's rules at the pump
fill.declinedA fill broke a rule: product, station, hours or limit
card.frozen · card.unfrozenA card was frozen or unfrozen
card.issued · card.updatedA card was issued or its rules changed
payment.completedAn app user paid at the pump
wallet.topped_upAn M-Pesa top-up landed in a wallet
account.createdA business account was opened
{
  "id": "evt_x8k2m1qa",
  "type": "fill.approved",
  "created_at": "2026-11-23T05:10:00Z",
  "data": {
    "id": "fill_A1",
    "card_id": "card_F1trk",
    "station": "Stabex Mombasa Rd",
    "product": "diesel",
    "litres": 63.0,
    "amount": 12028,
    "status": "approved"
  }
}
Errors and limits

Plain errors you can show users

Every error has an HTTP status, a stable code and a message written for people. The sandbox allows 100 requests a minute per key.

StatusCodeMeaning
401unauthorizedMissing or wrong API key
402insufficient_fundsWallet or account balance too low
402card_frozenThe card is frozen
404card_not_foundNo card with that id
422invalid_amountAmount outside the allowed range
429rate_limitedToo many requests; retry after the given seconds
From workshop to live

How integration rolls out

Decision needed: nominate an IT lead and 2–3 pilot fleet customers.

Weeks 1–2Discover

Map POS, fuel-card and ERP systems with IT

Weeks 3–6Sandbox

Stabex IT tests the APIs; cards designed

Weeks 7–11Integrate

POS authorisation and ERP feed

Weeks 12–22Pilot

2–3 fleet customers live on cards and dashboard

Ready to build?

Ask Stabex IT for sandbox keys, or talk to Fleet Sales about a pilot.

Contact Stabex