Get started with SacComply
Make your first automated API call to SacComply to ingest monthly returns, classify loan books, and calculate real-time SASRA statutory compliance ratios.
Prerequisites
- A SACCO Manager account on SacComply Console
- A provisioned
sk_live_...API key from /settings/api-keys - Your Core Banking or ERP database (Bankers Realm, CoreTec, Streamline, or custom database)
How to generate and export your secret key
Go to /settings/api-keys in your dashboard.
Click "Generate a new API key" and enter a label (e.g. "Core Banking Production").
Save your secret key. SacComply stores a one-way SHA-256 hash and will never display it again.
How Data Moves: Automated Outbound Push vs. Direct Database Queries
A SACCO's internal database (Oracle, MS SQL, Postgres) sits on a secure, private corporate network. Opening inbound database ports to an outside service would create a critical security vulnerability and violate SASRA IT Security & Data Protection guidelines.
Instead, the SACCO's Core Banking system (or an automated scheduled job) performs an outbound HTTPS POST to SacComply with your API key. Outbound traffic requires zero inbound firewall holes.
SacComply acts as an Anti-Corruption Layer (ACL). It does not require your internal tables or columns to match its database. Your IT team or vendor maps your local fields to SacComply's standard JSON contract:
| Core Banking Vendor | Internal Table Name | Internal Column | SacComply JSON Field |
|---|---|---|---|
| Bankers Realm | tbl_loan_master | cust_name, prin_bal, arr_days | borrower_name, amount, days_overdue |
| Temenos T24 | LD.LOANS.AND.DISCOUNTS | CUSTOMER.NAME, AMOUNT | borrower_name, amount |
| Microsoft Dynamics NAV | Member Loan Register | Member Name, Outstanding Bal | borrower_name, amount |
Call the API
- 1Set your API key
Export your API key as an environment variable or pass it directly in your HTTP client.
export SACCOMPLY_API_KEY="sk_live_9f8e4b7a1c3d5e2f..." - 2Prepare project & dependencies
Verify cURL is available on your terminal or server:
curl --version - 3Push monthly return payload
Submit balance sheet figures to
/api/v1/ingest/monthly-returnto trigger SASRA ratio calculations:quickstart.shcurl -X POST https://api.saccomply.co.ke/api/v1/ingest/monthly-return \ -H "Authorization: Bearer $SACCOMPLY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "period": "2026-08-01", "total_assets": 690000000, "core_capital": 70000000, "total_deposits": 160000000, "short_term_liabilities": 12000000, "gross_loans": 410000000, "npl_amount": 39000000, "liquid_assets": 20000000 }' - 4Inspect real-time SASRA compliance output
Query
GET /api/v1/statusto receive instant prudential ratio evaluations:Output (JSON){ "success": true, "period": "2026-08-01", "overall_status": "compliant", "ratios": [ { "ratio_type": "capital_adequacy", "value": 10.14, "threshold": 10.0, "status": "green" }, { "ratio_type": "liquidity", "value": 16.67, "threshold": 15.0, "status": "green" }, { "ratio_type": "core_capital_to_deposits", "value": 43.75, "threshold": 8.0, "status": "green" }, { "ratio_type": "npl_ratio", "value": 9.51, "threshold": 5.0, "status": "amber" } ], "open_risk_flags": { "critical": 0, "high": 0, "medium": 1, "low": 0 } }
Next steps
You made your first API call. Next, explore the full SASRA statutory automation modules:
Loan Portfolio Ingestion
Stream complete loan rosters and automate 5-tier SASRA loan classifications.
Prudential Risk Rules
Detect insider lending violations and single-borrower 25% capital exposure breaches.
Idempotency & Retries
Protect batch operations from duplicate processing during network drops.
API Key Governance
Rotate live keys and audit actor-level Core Banking integration logs.