Quickstart
Make your first authenticated call in a few minutes.
Create an API key
Sign in to the merchant dashboard (opens in a new tab),
open API keys, and create one. Pick the scopes you need (e.g.
psp:nuvion-merchant for cards). Copy the key — it is shown only once.
A key looks like:
swh_live_7f3a9c2b1d4e5f60_a1b2c3d4...Make a request
Send the key as a Bearer token. For example, list your cards:
curl https://engine.swahilies.net/api/psp/nuvion/cards \
-H "Authorization: Bearer swh_live_<prefix>_<secret>"[
{
"card_id": "01M59EF0VT36XRRGHBWAZFE0ZR",
"name": "Daraja · Erick",
"card_type": "virtual",
"status": "active",
"last4": "3981",
"currency": "USD",
"merchant_ref": "daraja"
}
]Collect a payment
A minimal collection (money in):
curl -X POST https://engine.swahilies.net/api/psp/collections \
-H "Authorization: Bearer swh_live_<prefix>_<secret>" \
-H "Content-Type: application/json" \
-d '{
"merchant_txn_ref": "order_1042",
"merchant_ref": "daraja",
"provider": "airtel",
"msisdn": "255712345678",
"amount_minor": 50000,
"currency": "TZS"
}'You get back a collection in pending; the final result arrives via a
webhook.
Everything you can do from the dashboard, your server can do with an API key — see the guides and the API reference.