Integration hub
What Sergios connects to, and where each one is configured.
Quick start
Four things to know before your first call.
Authenticate with your session token
Every request is a POST with JSON. Send the token from sign-in in the body; the server works out your organization from it.
curl -X POST https://api.sergios.africa/api/los/subscriptions/ \ -H "Content-Type: application/json" \ -d '{"token": "<your token>"}'
Read the envelope
Every answer says what happened in plain language. HTTP 400 is invalid, 403 not allowed, 404 not found.
{
"status": "success",
"message": "Subscribed to Metropol credit report.",
"data": { … }
}
Retry safely with a request_id
Send a unique request_id with each KYC request. Repeat it after a timeout to get the same result, without querying or paying again.
{
"token": "<your token>",
"customer_id": "8c1d…", "run": true,
"service_codes": ["IPRS"], "consent": true,
"request_id": "6f2c9a1e-3b4d-4e5f-8a9b-0c1d2e3f4a5b"
}
Know what's billed
Each successful live query costs your price plus VAT on the query date. Failed and sample queries are free.
# one successful Metropol query amount 50.00 VAT 16% 8.00 total 58.00 KES
🔒Callbacks from your CBS are signed: X-Zerahi-Signature: sha256=HMAC_SHA256(secret, "<timestamp>.<raw body>"),
with X-Zerahi-Timestamp and X-Zerahi-Integration-Id. Replays of the same event_id are accepted once.
Sergios