Reconciliation
A partner sends a statement; we import it; every line either matches a transaction of ours or becomes an exception. An unmatched line is one of three things — money we never received, money we received and did not record, or an amount that differs — and until somebody works it, the ledger and the bank disagree by its value with nothing saying by how much.
Permissions, per action
Section titled “Permissions, per action”| Action | Needs |
|---|---|
| Reading statements and exceptions | settlement.read |
| Matching and resolving lines | settlement.approve and ledger.read, as for closing. settlement.read alone (support, compliance) can view lines but not work them. |
| Closing a statement | settlement.approve — because closing clears funds, and that is a money movement rather than a bookkeeping tidy-up |
Somebody who can read the variance and work exceptions but not close a period is a real and useful role, so the page opens on the read permission.
Three tabs, the three questions
Section titled “Three tabs, the three questions”| Tab | The question |
|---|---|
| Statements | What does each partner say they settled, and what is the variance against what we recorded? Import and close live here. |
| Exceptions | The work queue: lines that did not match cleanly, ordered by how much money each represents. |
| Unreconciled | The opposite direction — our transactions that no statement line has claimed. A transaction is marked reconciled only when it is matched on a partner statement that is then closed; recording the partner’s fee at settlement doesn’t count. So settled payments the partner hasn’t yet confirmed on a statement appear here. |
The third tab matters more than it looks: one direction of every reconciliation is invisible without it. A statement that matched perfectly against half our traffic is not a reconciled statement.
Importing a statement
Section titled “Importing a statement”“One file, one partner, one period, one currency.”
| Field | Notes |
|---|---|
| What this run does | Dry run — parse and report, write nothing. Import — write the statement and its lines. |
| Column mapping | “A name ending in .unverified is a GUESS at that vendor’s layout and has never been checked against a real file from them.” |
| Partner | “Whose statement this is.” A dropdown of partners in the chosen environment. |
| Environment | “A partner row exists per environment. A live statement imported against the test partner reconciles nothing and clears nothing.” |
| Currency | “One statement carries one currency. A line in another is refused.” |
| Statement date | “The date the partner’s report is for, not today.” |
| Period start | Inclusive. |
| Period end | Exclusive, half-open with the start. |
| The statement file | Sent byte for byte, so the digest that identifies the file is the digest of what the vendor actually sent. Roughly 700 KiB maximum; use the CLI for a backfill. |
| Expected net, from their covering note | “Optional cross-check against the sum of the rows. A disagreement refuses the import: it means a column was read that the vendor did not intend.” |
| Match grace, in hours | “How far either side of the period to look for our transactions. Blank uses 72.” |
| Where the file came from | “Name who sent it and how, because the question asked later is always whether this was the file they actually sent.” |
Reading the dry run
Section titled “Reading the dry run”| Fact | What to check |
|---|---|
| Declared gross | The sum of the rows. |
| Their fees | — |
| Declared net | Compare against their covering note. |
| Rows carrying a fee | “Zero on a report expected to have fees means the fee column name is wrong.” |
| Matched on their id | — |
| Matched on our reference | — |
| Matched lines | “Closing releases only those that are succeeded collections still pending. Most mobile money and bank payments were already released when the partner confirmed them; the statement’s clearing preview shows the exact amounts.” |
| Open exceptions | “Lines nobody can attribute yet. Those merchants stay short until a human works them.” |
| Duplicates | “Repeats of one partner id within this file. Two matched lines over one transaction would clear it twice.” |
| File digest | “What makes a re-import detectable.” |
A payment is matched once, across every statement. The automatic matching skips any transaction that a line on another statement in the last two years already holds (matched, amounts differ, or resolved). So a file and an API fetch covering the same days, or a settlement the partner sent twice, can’t both claim one payment and clear its funds twice. The second statement’s line stays in the queue as an exception, and you decide which line is the real one.
A line matched on our reference also needs the payment’s partner to be the statement’s partner, or no partner. Our reference printed on another partner’s statement doesn’t claim a payment that partner never carried.
Matching is done one claim at a time across imports, hand matches and bulk matches, so two of them running at once can’t both claim one payment. A big import can make a hand match wait a moment.
Three of those are red flags on their own: zero rows carrying a fee, a duplicate count above zero, and a declared net that does not agree with the covering note. Any of them means stop and look at the mapping.
Importing from a partner
Section titled “Importing from a partner”Beside the file upload, Import from partner reads settlements straight from the partner’s API, for Paystack, Flutterwave and TrendiPay: “Read a window of settlements from the partner’s API. Nothing is written until you have read them.” The console never holds the partner’s keys. The gateway worker reads the partner, and you import what it read.
- Read the settlements. Pick the partner (“Partners whose settlements we can read over their API: Paystack and Flutterwave.”), the
environment, the First settlement date and the Last settlement date
(“Inclusive. At most 31 days after the first.”), and Why this window
(“Goes in the audit log.”). The
partner-settlement-fetchesjob picks it up within about five seconds and reads every settlement in the window, with its transactions. It never imports. - Read the preview. Each settlement shows its line count, the gross, fees and net summed from its transactions, and the partner’s own declared total beside them: Agrees with the partner, a disagreement, or No declared total. A disagreement means a field was read that the partner didn’t intend. Read the lines before importing. A settlement with any transaction that can’t be a line shows its problems and won’t be imported.
- Import these settlements, with the Match window, hours (default 72) and Why you are importing these. Each settlement becomes one statement and goes through the same importer, guards and audit as a file. Nothing has cleared yet: recompute each statement, work its exceptions, then close it as usual.
Each settlement is reported as imported, already imported (skipped), refused (with the reason) or empty (no transactions). A settlement’s identity is the partner’s settlement id, so overlapping windows are safe: one already on record is skipped. Fetch a longer period in pieces. A fetch is imported once, even if some settlements in it were refused, so to retry those, read the window again.
Permissions: reading and importing need settlement.approve and ledger.read.
Viewing fetches needs settlement.read. From the API:
POST /v1/reconciliation/partner-fetches (partner_code, environment,
from_date, to_date, reason), GET /v1/reconciliation/partner-fetches,
GET /v1/reconciliation/partner-fetches/{id} (the preview, with source,
source_verified and must_confirm), and
POST /v1/reconciliation/partner-fetches/{id}/import (allow_unverified_source,
match_grace_hours, reason).
The statement
Section titled “The statement”| Figure | Notes |
|---|---|
| They declare, net | — |
| We recorded, gross | — |
| Open exceptions | — |
| Closing would clear | — |
Plus the period (“the half-open window the partner’s file covers”), status, statement date, currency, line count, Matched (“only these clear funds-pending”), Resolved (“explained and written off. Clears nothing.”), who imported it, and the source file — “recorded so an auditor can find the original.”
Closing it
Section titled “Closing it”Close this statement clears the funds-pending on its matched lines. The panel shows what closing would clear before you do it, and what this close cleared afterwards.
| Field | Notes |
|---|---|
| Why this period is reconciled | Required. What was checked, and what explains whatever variance remains. |
| Authorised by | The second operator the close is recorded against. The change is held until they approve it in Approvals. |
There are two forms of this dialog and the difference is a claim about cash: Close this statement says the figures are explained, while Closed, and the funds have cleared says the money is also in. Use the second only when it is.
“Nothing recomputes a closed statement.” Work the exceptions first — variance is “derived from the matched lines only. An unmatched line clears nothing, and a resolved one is excluded on purpose — a note may say the money never came.” So a comfortable variance on a statement with open exceptions is not a reconciled statement.
The exception queue
Section titled “The exception queue”Shows lines on this page, the unexplained variance they represent, and how many found nothing of ours. Ordered by money, because that is the order in which they matter.
Matching a line to a transaction
Section titled “Matching a line to a transaction”The line’s own facts are shown first — their amount, their fee, their status, their value date, the partner and the line reference.
| Field | Notes |
|---|---|
| Our transaction | “Search by the reference on their line, our PSG reference or the partner’s own id.” Pick it from the matches. |
| How you identified it | “Say what tied the partner’s line to our transaction, because the next person to query this match cannot repeat your reasoning from the ids alone.” |
Where a line matched but the figures disagree, the panel says so — matched, and the amounts do not agree — and shows the variance, where “positive means the partner reports more than we recorded.”
Resolving a line with an explanation
Section titled “Resolving a line with an explanation”For a line that cannot be matched because it should not be.
| Field | Notes |
|---|---|
| The permanent explanation | “An auditor reads this, possibly years later, with none of today’s context. Say what the discrepancy was and what was done about it. This note is also the audit reason — there is no second field.” |
| Correcting journal | “Only where a journal was actually needed, and it must already be posted — this records one, it does not create one.” Search by the journal’s reference and pick it; leave it empty if no correction was needed. |
And posting a correcting journal is a separate, separately approved act — this field records the id of one that already exists. See the ledger.
Working lines in bulk
Section titled “Working lines in bulk”With settlement.approve and ledger.read, the queue has a checkbox on each
line. A selection covers the page you’re looking at and is cleared when you
change page. The bar above the queue shows how many are selected, At stake
per currency, Match again (n), Resolve together, and a clear button.
Each line now shows its statement’s currency, even when the queue isn’t
filtered to one statement.
Match again runs the import’s two automatic passes again, over the chosen lines: the partner’s transaction id, then our reference. Use it when the payments’ partner ids arrived after the statement was imported. Give a reason (eight characters at least). The result screen sorts the lines into:
| Result | Means |
|---|---|
| Matched | One payment found, amounts agree. Gone from the queue. |
| Found | One payment found, but the amounts differ. It stays in the queue as matched, and the amounts do not agree. |
| No single payment found | Nothing changed. |
Only lines that are still unmatched and unresolved, on a statement that isn’t closed, are tried. The rest are counted as skipped, and Match again is disabled when none of the chosen lines is unmatched. A payment is matched only if it’s the only one with that id or reference, from three months before the oldest chosen line to a day after the newest. It isn’t matched if two of the chosen lines name it, or if any statement already holds it. A match on our reference also needs the payment’s partner to be the line’s partner, or none. Each match is audited as if made by hand.
Resolve together writes off up to 200 lines with one explanation:
- Every line must be an open exception: unmatched, amounts differ, or duplicate, and not already resolved. None of them may be on a closed statement: a closed statement has cleared and is frozen, so the whole batch is refused. Resolving a single line on a closed statement is still allowed. All of them must be in one currency; a mixed selection is refused before you start.
- The dialog shows Written off (the total), Lines and Funds cleared: None, with each line’s status. The amount at stake on a line is its variance, or the partner’s whole amount where we have no match.
- Write the explanation (twelve characters at least), then tick “I understand these N lines are written off, clear no funds for any merchant, and cannot be reopened”, then Write off {CCY} {amount}.
- All or nothing. If any line changed since you chose it, nothing is written. That covers a line someone else matched or resolved, and a total that no longer matches what you were shown. Reload and choose again.
As with one line, resolving clears nothing.
Every line is audited (reconciliation.item.resolve) with the note and the
batch id, and the batch gets one more entry (reconciliation.items.bulk_resolve).
From the API, with the same permissions:
POST /v1/reconciliation/exceptions/bulk-rematch(bulkRematchReconciliationItems):- body
item_ids(1–200) andreason; - returns
batch_id,tried,matched(eachid,transaction_id,status,variance_minor,by),unchangedandskipped; - audit:
reconciliation.item.matchper line withvia: bulk_rematch, plusreconciliation.items.bulk_rematch.
- body
POST /v1/reconciliation/exceptions/bulk-resolve(bulkResolveReconciliationItems):- body
item_ids(1–200, no repeats),resolution_note,currency, andconfirm_written_off_minor, which is the total you were shown, in minor units; - a line that isn’t an open exception, a line on a closed statement, or a total that differs, is
409; - a line in another currency is
422; - returns
batch_id,resolved,currency,written_off_minoranditem_ids.
- body
How to work a reconciliation
Section titled “How to work a reconciliation”- Dry run the file. Read the eight figures; stop on any of the three red flags.
- Import it.
- Work the exception queue, biggest variance first. Match what is ours, resolve what is not, and write reasons somebody can follow.
- Check the Unreconciled tab. Our transactions that no line claimed are the other half of the question, and the half that is easy to forget.
- Close the statement — which releases the pending funds not already released on confirmation, and unblocks the settlement batches waiting on them.
- Only then is a period ready to close.

