Projects

Kadara Pay payments reconciliation platform

A platform that matches every payment across ledger, card processor and bank each day, classifies every mismatch by cause, and sends only true exceptions to a person.

Kadara Pay reconciliation: ledger, settlement and bank data ingested, standardised and matched, with exceptions routed to review
Status
In progress
My role
Solo project
Areas
Data engineeringData validation
Tools
Python, PostgreSQL, Great Expectations, pytest, GitHub Actions, Docker, Excel, Power BI
Skills
Idempotent ingestion, Data contracts and quarantine, Three-way reconciliation, Entity resolution, Exception workflows, Audit trails, Precision and recall evaluation
Data
Simulated company, with planted defects and an answer key

The problem

A payments company records every transaction three times: in its own ledger, in the card processor’s settlement files, and on its bank statement. When the three disagree, money is missing, duplicated or late, and someone has to find out which. Done by hand across hundreds of thousands of transactions, that is slow and error-prone.

This platform ingests all three every day, proves they agree, classifies every disagreement by cause, and sends only the genuine exceptions to a person, with the evidence and a full audit trail.

How it works

  1. Ingest. Each file is identified by a fingerprint of its contents, so it can only ever load once, whatever it is called. Registration and loading happen in one transaction, so a failure leaves nothing half-loaded.
  2. Standardise. Amounts become whole kobo, timestamps become UTC, and each transaction gets its business date in West Africa Time. A row that breaks a rule goes to quarantine with the rule’s name, and the rest of the file still loads. Great Expectations then checks each file against its data contract.
  3. Core. A normalised model with primary keys, foreign keys and constraints, where every row records the file and line it came from.
  4. Resolve merchants. Duplicate merchant records are found by comparing likely pairs (same bank account, same phone, or similar name) and scoring them: high scores merge, borderline scores go to review.
  5. Reconcile. Ledger, settlement and bank records are matched in passes: exact matches, matches within a rounding tolerance, late arrivals, amount mismatches, status conflicts, and records missing on one side. A repair pass pairs records whose references were garbled.
  6. Review. Open exceptions export to Excel with a dropdown of decision codes. Decisions are imported, recorded permanently and never overwritten, and the system closes its own exceptions when a later run resolves them.

Design choices

  • Six schemas (raw, staging, core, reconciliation, data quality, audit), so each stage is separate and inspectable.
  • Quarantine, don’t reject. One bad row never blocks a whole file.
  • Append-only decisions, so the full history of every exception is preserved.
  • A generator that writes an answer key, so every accuracy figure is measured, not estimated.