BEGINNERCHAPTER 01

How money moves: accounts, rails, settlement and who sits in the middle

A payment is a message and a change of balances, and they do not happen at the same moment. Treat the message as the money and you show customers cash that has not arrived

40 MINPAYMENTSUPDATED 2026-11-14
PREDICT

In the lab, a customer tops up a wallet with a card on a Sunday at 13:16 and the app shows 'successful'. The wallet company credits the wallet at once. When does the cash reach the company's own bank account?

You use payments every day, and the word hides how many parties are involved. This chapter pulls the parts apart. It has four ideas. Money is a record in someone’s books. A payment changes records and sends messages. Two banks cannot pay each other by sending messages alone, so somebody settles between them. And a company that holds wallets sits in the middle of all this, with money in some places and promises in others.

The lab runs on Owoleaf, a fictional Lagos wallet company with generated books (the labs/finance data). Owoleaf takes money in by bank transfer and by card, moves it between wallets, pays it out to other banks, and keeps a settlement account at a partner bank. Every number in the data is illustrative. You query it at the end of the chapter, and every figure below is one you can reproduce.

Money is a record in someone’s books

Most money today is not notes and coins. It is a balance written in a bank’s ledger, and that balance is a claim: the bank owes you that amount, and you can ask for it back. That is why a bank’s own balance sheet lists your deposits as its liabilities and the loans it makes as its assets. Your credit is its debt.

Two kinds of balance matter for payments. Commercial bank money is a claim on an ordinary bank, such as your current account. Central bank money is a claim on the central bank, held by banks (and in some systems other institutions) in accounts at the central bank. Central banks’ standard glossary of payment terms, published by the Committee on Payments and Market Infrastructures (CPMI), defines both kinds of money, and the committee’s 2003 report on the role of central bank money in payment systems discusses how they fit together. Both are in the reading list. This build could not read the glossary entries, so the definitions here are the common textbook ones, and you should check them against the entries.

The reason the distinction matters is trust. A claim on a bank is only as good as the bank. A claim on the central bank is generally treated as free of that credit risk, because the central bank is the issuer of the money banks settle in. So when two banks settle with each other, many systems do it in central bank money, and the rest of the chain runs on commercial bank money.

One more fact about commercial bank money helps you picture where it comes from. The Bank of England’s 2014 Quarterly Bulletin article on money creation says that most money in the modern economy is bank deposits, and that commercial banks create them when they make loansas of 2026-11. That describes the United Kingdom in 2014 and rests on a search summary of the article, so do not carry it to Nigeria today, and read the article before you quote a figure from it. The idea carries: a deposit is a number in a ledger, and a ledger entry is the unit a payment moves.

Hold on to that idea, because the whole chapter is built on it. When you “send ₦1,000”, no ₦1,000 object travels. Two records change.

A payment changes two records

Take the simplest case. Adeola and Chinedu bank at the same bank. Adeola pays Chinedu ₦1,000. The bank subtracts 1,000 from Adeola’s balance and adds 1,000 to Chinedu’s, in one operation. The payment is a pair of ledger entries, and it is done in the bank’s own books. The bank was the only party in the middle, and it was both payer’s bank and payee’s bank.

Now they bank at different banks. The payer’s bank can subtract from Adeola, because it owns that ledger. It cannot add to Chinedu’s balance, because it does not own his ledger. It can only send his bank an instruction: “credit Chinedu ₦1,000”. Chinedu’s bank can credit him, but it has no reason to trust the instruction until it knows it will be paid back. The payer’s bank now owes the payee’s bank ₦1,000. Something has to discharge that debt.

That gap is the whole subject of this chapter. Two things have to happen, and they are different in kind:

  • Messages. The instruction, the confirmation, the name check, the status. They are data, and they travel in milliseconds.
  • Settlement. The movement of a settlement asset that discharges the debt between the two banks.

If you mix them up you ship a bug. A “successful” response is a message. It says the instruction was accepted. It does not say the banks have squared up.

Clearing, settlement and finality

Three words carry this idea, and each has a standard meaning.

Clearing is the process of exchanging, checking and sometimes netting payment instructions before settlement. Netting means offsetting: if bank A owes bank B ₦500,000 and bank B owes bank A ₦300,000, the clearing step can reduce the two debts to one, ₦200,000 from A to B. Settlement is the act that discharges the obligation between the parties, by moving the settlement asset. Finality is the property that a settlement is irrevocable and unconditional: the receiver can rely on it and the sender cannot take it back. These are the usual textbook meanings, and the central banks’ glossary gives the formal wording. This build could not read the glossary entries, so check them before you quote any of them.

Here is the sequence for a payment between customers of two different banks, with a switch between them (a switch is a shared service that routes instructions between many banks):

payer’s bankdebits the payerswitchroutes and recordspayee’s bankcredits the payeemessagemessagesettlement assetcentral bank or settlement bank accountsmoney, latermoney, later

The top line is messages and the dashed lines are money. The two do not have to move together. In many systems the switch clears all day and the banks settle in batches. In the gap between the two, the payee’s bank has credited its customer on the strength of a promise that has not yet been paid. Someone carries that risk, and the rules of the scheme say who.

Two failure modes follow, and both are common in wallet code.

  • Treating “accepted” as “settled”. The app shows the money as received because the message said so, and the wallet credits the customer. If the instruction is later reversed, the customer has spent money the company never received. In the lab, 98 payouts that the other bank accepted were returned a few days later. Their status is reversed, and Owoleaf posted a payout_reversal for each.
  • Treating “settled” as “now”. The opposite error: the company waits for settlement before telling anyone anything, and the customer sees nothing for a day. Neither error is a bug in the payment. Both come from the same missing decision about which event the company calls paid.

Rails and the people in the middle

A rail is a route money takes between parties, with its own rules, its own messages and its own settlement timetable. The lab’s data uses three:

  • NIP (NIBSS Instant Payment), the instant account-to-account transfer rail between Nigerian banks and other institutions. In the lab it carries bank-transfer funding, payouts and payout returns.
  • Card, the four-party rail. The payer’s bank issues the card, the payee’s bank acquires the merchant, a card scheme sets the rules, and a processor runs the messages. Chapter 3 of this module takes it apart.
  • Internal, a transfer inside the company’s own books, where no outside party takes part.

Who sits in the middle depends on the rail, and the names are worth learning now:

Party What it does Holds money?
Payer’s bank (issuer, for cards) Holds the payer’s balance, debits it Yes, the payer’s claim
Payee’s bank (acquirer, for cards) Holds the payee’s balance, credits it Yes, the payee’s claim
Switch Routes instructions, checks names, records transfers No, in most designs; it carries messages
Scheme Sets the rules, and the fees, for a family of payments No
Processor Runs authorisation and settlement messages for a bank or merchant Often briefly, on the way to settlement
Central bank Offers accounts in which banks settle with each other Yes, the banks’ settlement balances
Partner bank A bank that holds a non-bank company’s own cash Yes, the company’s account

For cards, the payee’s bank is called the acquirer because it acquires the merchant’s card sales. The scheme and processor roles have their own chapter, so treat the table as a map for this chapter and not as the full detail.

In Nigeria the middle of the instant rail is run by NIBSS, whose name is usually given as the Nigeria Inter-Bank Settlement System. Several explainers found by web search describe NIP as the routing and messaging layer, with banks’ net positions posted at the Central Bank of Nigeria. They disagree on the details of how and when. Most are fintech blogs and vendor pages, which are not the rules. Treat the settlement mechanics as unconfirmed here. Chapter 5 of module 2, on settlement and payouts, returns to them with the CBN’s own documents. The chapter you are reading only needs the shape.

The Central Bank of Nigeria publishes the direction it wants the whole system to take. The CBN’s page says it launched the Payments System Vision 2025 on 24 November 2022, as a five-year roadmap for adoption of electronic payments and for the safety and resilience of the systemas of 2026-11. Its successor page says the CBN launched the Payments System Vision 2028 on 1 June 2026, and search results report a financial inclusion target of 95%as of 2026-11. Both statements rest on search summaries of the CBN pages. Press coverage of the 2028 launch is not uniform: most of it reports June 2026, but one September 2025 article already describes a launch. The targets were not read in the CBN’s own document, and reports differ on the other goals. Read the Vision documents before you cite a target.

Where a wallet company sits

Owoleaf sits in the middle in a way that surprises people who have only used a wallet. It is not a bank. It holds customers’ balances as its own liabilities, and it holds cash at a partner bank, as an asset. A wallet balance is not a deposit in the customer’s name at the partner bank. It is a number in Owoleaf’s ledger that says Owoleaf owes the customer. The company’s cash is one pool at the partner bank, in the settlement_bank account. The money owed by the card processor sits in card_clearing.

That produces three kinds of movement, and you can see all three in the data.

Money in by bank transfer. Another bank sends the money through the switch, the partner bank credits Owoleaf’s account, and Owoleaf credits the wallet. The ledger debits settlement_bank and credits the wallet. A CR line on the partner bank’s statement says the same thing from the other side.

Money in by card. The processor authorises the card and the wallet is credited at once, but the cash arrives the next day. Owoleaf’s books hold the difference in card_clearing: a debit when the customer pays, a credit when the processor’s batch arrives. The wallet is credited with the amount less Owoleaf’s own fee, and the fee is income.

Money moving between wallets. One customer pays another. Only two lines in Owoleaf’s ledger change, and nothing outside Owoleaf is told. This is the cheapest and fastest payment there is, and it is possible because both parties are customers of the same ledger.

All three leave the books balanced, and they leave the cash in different places at different times. That is the reason a company like Owoleaf runs three checks. Its ledger must balance. Its ledger must agree with the partner bank’s statement. And the cash it holds, plus what it is owed, must cover what it owes. The first check belongs to double entry (chapter 5 of this module). The second is reconciliation (module 2). The third you can do in the lab.

What goes wrong when you forget who holds the money

Four mistakes recur, and each starts with one assumption about who holds the money.

  1. “The wallet balance is our cash.” It is not. It is what the company owes. If you report wallet totals as holdings, you overstate what the company can spend, and you give nobody a reason to ask whether the bank balance covers the wallets. In the lab it does, with ₦51,111,920.54 to spare, which is the share capital and earned fees less what Owoleaf paid the processor. A company that spends the spare and then some is spending customer money.
  2. “Every payment shows on the bank statement.” Wallet-to-wallet transfers never do, and card top-ups appear only as a daily lump. A reconciliation that looks for one statement line per transaction will flag thousands of false breaks.
  3. “Successful means settled.” The card top-up credits at 13:16 and settles at 10:00 the next day. A payout the other bank accepted can come back. The honest design shows the customer a status, not a boolean, and keeps the word “paid” for an event it can name.
  4. “The switch holds the money.” In most designs it does not. If you think it does, you look in the wrong place when a transfer goes missing. The lab’s mock switch keeps a transfer report and a net position, but the money sits in accounts at banks.

None of these is a programming error. Each is a wrong picture of who holds what. That is why the lab asks you to draw the picture first and then query the data to check it.

Reading the lab’s data as a map

labs/finance generates one fictional company’s books. For this chapter you need four tables: transactions (every attempt, posted or not), entries (the double-entry postings, in integer kobo), accounts (the company’s own accounts and one wallet per customer) and bank_statement (the partner bank’s view of the settlement account).

The data has 83,887 transactions of seven kinds on three rails. The mapping is below, and the lab reproduces it:

Kind Rail What it is
funding_transfer nip A customer funds the wallet by bank transfer
payout_nip nip A customer withdraws to a bank account
payout_reversal nip The other bank returned a payout
funding_card card A customer tops up with a card
card_settlement card The processor’s daily payment to Owoleaf
p2p_transfer internal One wallet pays another
capital_injection internal The owners put in the starting capital (once)

One transaction of the first kind is worth following all the way. It is transaction 2: ₦42,389.00 (4,238,900 kobo) from a pseudo bank, B17, into the wallet of a merchant customer. In the ledger it is two entries, a debit to settlement_bank and a credit to the wallet. On the statement it is line 2, a CR of 4,238,900 kobo narrated NIP INWARD C0000764, taking the account’s balance from 5,000,000,000 to 5,004,238,900 kobo (the first ₦50,000,000 was the owners’ capital). You can verify both in two lines of Python, and the lab does.

Notice what the data cannot show. The payer’s bank and the switch are outside Owoleaf’s books. You see two of the four holders in the sequence, Owoleaf’s ledger and the partner bank. The other two exist only in the external_ref that ties the rows together, a 30-digit session reference. That is true of every real wallet company: it knows what it has been told. When you draw the picture in the lab, you will mark which holders the data can see and which it cannot.

LAB Count the rails, follow one transfer to the bank statement, and check who holds the money ~35 MIN
YOU NEEDPython 3.9 or later (standard library only)labs/finance with its data generatedNo Docker, no packages, no sqlite3 command-line tool

You work in labs/finance. Every step is Python run from that folder against data/finance.sqlite. If you have the sqlite3 command-line tool you can run the same SQL there; the scripts below need nothing else. Amounts are integer kobo in the data and in the code. The naira helper only formats them.

1. Generate the data and check it. If data/ already exists, run only check.py. Generating takes about 3 seconds at the default scale of 0.1.

cd labs/finance
python3 generate.py && python3 check.py

generate.py prints its table sizes and the planted breaks. check.py proves the ledger invariants and ends with:

OK: all invariants hold

Seed 42 gives the same data every time. Do not open data/answers/breaks.csv: it is the answer key for the reconciliation chapters.

2. Count the transactions by kind and rail. Seven kinds, three rails.

python3 - <<'PY'
import sqlite3

db = sqlite3.connect("data/finance.sqlite")
print("transactions by kind and rail")
for kind, rail, n in db.execute(
        "SELECT kind, rail, COUNT(*) FROM transactions GROUP BY kind, rail ORDER BY COUNT(*) DESC"):
    print(f"   {kind:<18} {rail:<9} {n:>6}")
print("by rail")
for rail, n in db.execute("SELECT rail, COUNT(*) FROM transactions GROUP BY rail ORDER BY 2 DESC"):
    print(f"   {rail:<9} {n:>6}")
total, = db.execute("SELECT COUNT(*) FROM transactions").fetchone()
print("total", total)
PY
transactions by kind and rail
   funding_transfer   nip        36895
   payout_nip         nip        21892
   p2p_transfer       internal   14147
   funding_card       card       10680
   card_settlement    card         174
   payout_reversal    nip           98
   capital_injection  internal       1
by rail
   nip        58885
   internal   14148
   card       10854
total 83887

Seven kinds over three rails, 83,887 rows. NIP carries 58,885 of them, about 70%. The count includes failed attempts, which have no entries. The 14,148 on the internal rail are the 14,147 wallet-to-wallet transfers and the one capital injection.

3. Follow one inward transfer to its entries and its statement line. The first bank transfer that succeeded. Its external_ref ties the three tables together.

python3 - <<'PY'
import sqlite3

db = sqlite3.connect("data/finance.sqlite")

def naira(kobo):
    return f"₦{kobo // 100:,}.{kobo % 100:02d}"

# The first inward bank transfer that succeeded.
tid, amount, ref, bank, at, cust = db.execute(
    """SELECT id, amount_kobo, external_ref, counterparty_bank, created_at, customer_id
       FROM transactions WHERE kind = 'funding_transfer' AND status = 'succeeded'
       ORDER BY id LIMIT 1""").fetchone()
print(f"1. transaction {tid}: {naira(amount)} from pseudo bank {bank} at {at}")
print(f"   external_ref {ref}")

print("2. its entries")
for code, direction, kobo in db.execute(
        """SELECT a.code, e.direction, e.amount_kobo FROM entries e
           JOIN accounts a ON a.id = e.account_id
           WHERE e.transaction_id = ? ORDER BY e.id""", (tid,)):
    print(f"   {direction:<6} {code:<16} {kobo:>10,} kobo")

print("3. the partner bank's statement lines with that reference")
for line, value_date, d, kobo, narration, balance in db.execute(
        """SELECT line, value_date, direction, amount_kobo, narration, balance_kobo
           FROM bank_statement WHERE reference = ?""", (ref,)):
    print(f"   line {line}: {value_date} {d} {kobo:,} kobo '{narration}', balance after {balance:,}")

print("4. the statement line before it")
line, d, kobo, narration, balance = db.execute(
    "SELECT line, direction, amount_kobo, narration, balance_kobo FROM bank_statement WHERE line = 1").fetchone()
print(f"   line {line}: {d} {kobo:,} kobo '{narration}', balance after {balance:,}")

ledger, = db.execute(
    """SELECT SUM(CASE e.direction WHEN 'debit' THEN e.amount_kobo ELSE -e.amount_kobo END)
       FROM entries e JOIN accounts a ON a.id = e.account_id
       WHERE a.code = 'settlement_bank' AND e.transaction_id <= ?""", (tid,)).fetchone()
print(f"5. ledger settlement_bank after transaction {tid}: {ledger:,} kobo")
print(f"   the wallet is a liability: Owoleaf now owes customer {cust} {naira(amount)} more")
PY
1. transaction 2: ₦42,389.00 from pseudo bank B17 at 2026-01-03T16:03:31+01:00
   external_ref 105111367199911625133359159902
2. its entries
   debit  settlement_bank   4,238,900 kobo
   credit wallet:764        4,238,900 kobo
3. the partner bank's statement lines with that reference
   line 2: 2026-01-03 CR 4,238,900 kobo 'NIP INWARD C0000764', balance after 5,004,238,900
4. the statement line before it
   line 1: CR 5,000,000,000 kobo 'CAPITAL INJECTION', balance after 5,000,000,000
5. ledger settlement_bank after transaction 2: 5,004,238,900 kobo
   the wallet is a liability: Owoleaf now owes customer 764 ₦42,389.00 more

One transfer, one row, two entries and one statement line. The ledger’s settlement_bank and the statement’s running balance agree to the kobo after it: 5,000,000,000 + 4,238,900 = 5,004,238,900. The debit to settlement_bank is an asset going up (cash at the bank), and the credit to the wallet is a liability going up (what Owoleaf owes the customer). The statement calls the same event a CR, because it is written from the bank’s side, where the company’s balance is a liability. The two views use opposite words for the same movement.

4. Map what each kind of transaction touches. Which accounts get entries, and which kinds ever appear on the partner bank’s statement.

python3 - <<'PY'
import sqlite3

db = sqlite3.connect("data/finance.sqlite")

print("1. which accounts each kind of posted transaction touches (wallets grouped)")
for kind, side, acct, n, kobo in db.execute(
        """SELECT t.kind, e.direction,
                  CASE WHEN a.code LIKE 'wallet:%' THEN 'wallet' ELSE a.code END,
                  COUNT(*), SUM(e.amount_kobo)
           FROM entries e JOIN transactions t ON t.id = e.transaction_id
           JOIN accounts a ON a.id = e.account_id
           GROUP BY 1, 2, 3 ORDER BY 1, 2 DESC, 3"""):
    print(f"   {kind:<18} {side:<6} {acct:<18} {n:>6} entries {kobo:>16,} kobo")

print("2. posted transactions that have a line on the partner bank's statement")
for kind, posted, on_statement in db.execute(
        """SELECT t.kind, COUNT(*),
                  SUM(EXISTS (SELECT 1 FROM bank_statement b WHERE b.reference = t.external_ref))
           FROM transactions t WHERE t.status IN ('succeeded', 'reversed')
           GROUP BY t.kind ORDER BY COUNT(*) DESC"""):
    print(f"   {kind:<18} posted {posted:>6}   on the statement {on_statement:>6}")
PY
1. which accounts each kind of posted transaction touches (wallets grouped)
   capital_injection  debit  settlement_bank         1 entries    5,000,000,000 kobo
   capital_injection  credit share_capital           1 entries    5,000,000,000 kobo
   card_settlement    debit  processing_expense    174 entries      110,590,267 kobo
   card_settlement    debit  settlement_bank       174 entries   10,948,436,433 kobo
   card_settlement    credit card_clearing         174 entries   11,059,026,700 kobo
   funding_card       debit  card_clearing       10280 entries   11,224,435,000 kobo
   funding_card       credit fee_revenue         10280 entries      165,247,321 kobo
   funding_card       credit wallet              10280 entries   11,059,187,679 kobo
   funding_transfer   debit  settlement_bank     34837 entries   81,036,360,400 kobo
   funding_transfer   credit wallet              34837 entries   81,036,360,400 kobo
   p2p_transfer       debit  wallet              13540 entries    8,435,932,496 kobo
   p2p_transfer       credit wallet              13540 entries    8,435,932,496 kobo
   payout_nip         debit  wallet              20897 entries   80,117,247,806 kobo
   payout_nip         credit fee_revenue         20897 entries       56,772,500 kobo
   payout_nip         credit settlement_bank     20897 entries   80,060,475,306 kobo
   payout_reversal    debit  fee_revenue            98 entries          237,500 kobo
   payout_reversal    debit  settlement_bank        98 entries      265,325,062 kobo
   payout_reversal    credit wallet                 98 entries      265,562,562 kobo
2. posted transactions that have a line on the partner bank's statement
   funding_transfer   posted  34837   on the statement  34837
   payout_nip         posted  20897   on the statement  20894
   p2p_transfer       posted  13540   on the statement      0
   funding_card       posted  10280   on the statement      0
   card_settlement    posted    174   on the statement    174
   payout_reversal    posted     98   on the statement     98
   capital_injection  posted      1   on the statement      1

Read the first block by rail. The NIP kinds all touch settlement_bank, so they all reach the partner bank. p2p_transfer touches wallets only: a debit and a credit of the same 8,435,932,496 kobo, with no outside account. funding_card touches card_clearing, not the bank, and card_settlement is what later moves card_clearing into settlement_bank, less 110,590,267 kobo (₦1,105,902.67) of processor fees, which is 1% of the gross 11,059,026,700. The second block agrees: none of the 13,540 wallet transfers and none of the 10,280 card top-ups has a line on the statement under its own reference. Posted payouts are 20,897 (20,799 succeeded plus 98 reversed) and 20,894 have a line. The 3 that do not are planted for the reconciliation chapters. Do not chase them now.

5. Draw who held the money, then check the books. On paper, draw the four holders for transaction 2: the payer’s bank, the switch, the partner bank and Owoleaf’s ledger. Under each, write what it held before and after, and mark the two the data cannot see. Then run the check that assets cover liabilities.

python3 - <<'PY'
import sqlite3

db = sqlite3.connect("data/finance.sqlite")

def naira(kobo):
    return f"₦{kobo // 100:,}.{kobo % 100:02d}"

# Debit-positive balance of every account at the end of the 180 days, wallets added together.
bal = {}
for code, kobo in db.execute(
        """SELECT CASE WHEN a.code LIKE 'wallet:%' THEN 'all wallets' ELSE a.code END,
                  SUM(CASE e.direction WHEN 'debit' THEN e.amount_kobo ELSE -e.amount_kobo END)
           FROM entries e JOIN accounts a ON a.id = e.account_id GROUP BY 1"""):
    bal[code] = kobo

print("what Owoleaf holds (assets)")
print(f"   settlement_bank   {naira(bal['settlement_bank']):>18}   at the partner bank")
print(f"   card_clearing     {naira(bal['card_clearing']):>18}   owed by the card processor")
held = bal["settlement_bank"] + bal["card_clearing"]
print(f"   total             {naira(held):>18}")
print("what Owoleaf owes, was given or earned, less what it spent")
owed = -bal["all wallets"]
print(f"   all wallets       {naira(owed):>18}   owed to customers")
print(f"   share capital     {naira(-bal['share_capital']):>18}")
print(f"   fee revenue       {naira(-bal['fee_revenue']):>18}")
print(f"   less processing   {naira(bal['processing_expense']):>18}   fees paid to the card processor")
credit_side = owed - bal["share_capital"] - bal["fee_revenue"] - bal["processing_expense"]
print(f"   net total         {naira(credit_side):>18}")
print("assets equal the other side:", held == credit_side)
print(f"assets above customer balances: {naira(held - owed)}")

stmt, = db.execute("SELECT balance_kobo FROM bank_statement ORDER BY line DESC LIMIT 1").fetchone()
print(f"ledger settlement_bank {bal['settlement_bank']:,} kobo; statement closing balance {stmt:,} kobo;"
      f" difference {stmt - bal['settlement_bank']:,} kobo")
PY
what Owoleaf holds (assets)
   settlement_bank      ₦171,896,465.89   at the partner bank
   card_clearing          ₦1,654,083.00   owed by the card processor
   total                ₦173,550,548.89
what Owoleaf owes, was given or earned, less what it spent
   all wallets          ₦122,438,628.35   owed to customers
   share capital         ₦50,000,000.00
   fee revenue            ₦2,217,823.21
   less processing        ₦1,105,902.67   fees paid to the card processor
   net total            ₦173,550,548.89
assets equal the other side: True
assets above customer balances: ₦51,111,920.54
ledger settlement_bank 17,189,646,589 kobo; statement closing balance 17,192,741,324 kobo; difference 3,094,735 kobo

Redo the sum by hand: 122,438,628.35 + 50,000,000.00 + 2,217,823.21 − 1,105,902.67 = 173,550,548.89, the same as the assets. Owoleaf holds ₦173,550,548.89 in cash and claims and owes ₦122,438,628.35 to customers, so customer balances are covered with ₦51,111,920.54 to spare: the ₦50,000,000 of capital plus ₦2,217,823.21 of fees, less ₦1,105,902.67 paid to the processor. The last line shows the ledger and the statement disagree by 3,094,735 kobo (₦30,947.35). That is the planted breaks at work, and the reconciliation chapters in module 2 explain the difference line by line.

6. Follow a card top-up across two days. The first card funding that succeeded, and the settlement that pays it.

python3 - <<'PY'
import sqlite3

db = sqlite3.connect("data/finance.sqlite")

def naira(kobo):
    return f"₦{kobo // 100:,}.{kobo % 100:02d}"

def entries(tid):
    for code, direction, kobo in db.execute(
            """SELECT a.code, e.direction, e.amount_kobo FROM entries e
               JOIN accounts a ON a.id = e.account_id WHERE e.transaction_id = ? ORDER BY e.id""", (tid,)):
        print(f"      {direction:<6} {code:<16} {kobo:>9,} kobo")

tid, amount, fee, ref, at = db.execute(
    """SELECT id, amount_kobo, fee_kobo, external_ref, created_at FROM transactions
       WHERE kind = 'funding_card' AND status = 'succeeded' ORDER BY id LIMIT 1""").fetchone()
print(f"day 1: card funding {tid}, {naira(amount)} at {at}, fee {naira(fee)}")
entries(tid)
print("   statement lines with its reference:",
      db.execute("SELECT COUNT(*) FROM bank_statement WHERE reference = ?", (ref,)).fetchone()[0])

day = at[:10]
count, gross = db.execute(
    """SELECT COUNT(*), SUM(amount_kobo) FROM transactions WHERE kind = 'funding_card'
       AND status = 'succeeded' AND substr(created_at, 1, 10) = ?""", (day,)).fetchone()
print(f"   card fundings that succeeded on {day}: {count}, {gross:,} kobo in all")

sid, sgross, sfee, sat = db.execute(
    """SELECT id, amount_kobo, fee_kobo, created_at FROM transactions
       WHERE kind = 'card_settlement' ORDER BY id LIMIT 1""").fetchone()
print(f"day 2: card settlement {sid} at {sat}: gross {sgross:,}, processor fee {sfee:,}, paid {sgross - sfee:,} kobo")
entries(sid)
for line, value_date, kobo, narration in db.execute(
        "SELECT line, value_date, amount_kobo, narration FROM bank_statement WHERE reference = (SELECT external_ref FROM transactions WHERE id = ?)",
        (sid,)):
    print(f"   statement line {line}: {value_date} CR {kobo:,} kobo '{narration}'")
print(f"   check: 1% of {sgross:,} is {round(sgross * 0.01):,}")
PY
day 1: card funding 8, ₦3,964.00 at 2026-01-04T13:16:59+01:00, fee ₦59.46
      debit  card_clearing      396,400 kobo
      credit wallet:291         390,454 kobo
      credit fee_revenue          5,946 kobo
   statement lines with its reference: 0
   card fundings that succeeded on 2026-01-04: 1, 396,400 kobo in all
day 2: card settlement 16 at 2026-01-05T10:00:00+01:00: gross 396,400, processor fee 3,964, paid 392,436 kobo
      debit  settlement_bank    392,436 kobo
      debit  processing_expense     3,964 kobo
      credit card_clearing      396,400 kobo
   statement line 15: 2026-01-05 CR 392,436 kobo 'CARD SETTLEMENT'
   check: 1% of 396,400 is 3,964

This is the Predict’s answer in data. On day 1 the customer paid ₦3,964.00 and the wallet was credited ₦3,904.54 (390,454 kobo), with a fee of ₦59.46 (1.5% of 396,400 is 5,946 kobo). The cash had not moved: Owoleaf only held a claim of 396,400 kobo on the processor in card_clearing. At 10:00 the next day the settlement paid 392,436 kobo, which is the gross less a 1% processor fee of 3,964 kobo, and card_clearing returned to zero for that day. It was the only card top-up that day, so the batch holds one payment. On a busy day the batch holds hundreds. The 1.5% customer fee and the 1% processor fee are the generator’s illustrative values.

Look for a wallet-to-wallet transfer at the partner bank. Take the first successful p2p_transfer and search the statement for its reference:

python3 - <<'PY'
import sqlite3

db = sqlite3.connect("data/finance.sqlite")
tid, amount, ref, payer, payee = db.execute(
    """SELECT id, amount_kobo, external_ref, customer_id, counterparty_customer_id
       FROM transactions WHERE kind = 'p2p_transfer' AND status = 'succeeded' ORDER BY id LIMIT 1""").fetchone()
print(f"p2p transaction {tid}: {amount:,} kobo from customer {payer} to customer {payee}, ref {ref}")
for code, direction, kobo in db.execute(
        """SELECT a.code, e.direction, e.amount_kobo FROM entries e
           JOIN accounts a ON a.id = e.account_id WHERE e.transaction_id = ? ORDER BY e.id""", (tid,)):
    print(f"   {direction:<6} {code:<14} {kobo:>9,} kobo")
n, = db.execute("SELECT COUNT(*) FROM bank_statement WHERE reference = ?", (ref,)).fetchone()
print("statement lines with that reference:", n)
PY

You get transaction 46: 169,274 kobo (₦1,692.74) from customer 593 to customer 1110, a debit to wallet:593, a credit to wallet:1110, and statement lines with that reference: 0. The money moved, and the partner bank was not told, because no cash moved: only Owoleaf’s debts to two customers changed. Now ask what a reconciliation that expects one statement line per transaction would do with the 13,540 transfers like this one, and which of the four holders you drew in step 5 took part in this payment.

ARTEFACT Write the payout status model ~45 MIN
YOU PRODUCEPayout status model

Template

# Payout status model: <product>
Written by <PM or head of payments> · Signed by <finance>, <support> · Applies from <date>

## The three words
- Received: <one sentence, the event that earns it>
- Settled: <one sentence, the event that earns it>
- Paid: <one sentence, the event that earns it>

## State by state, for each rail
| Step | Word shown | Who holds the money | What the customer sees | What they may spend |
|---|---|---|---|---|

## What the model cannot see
<Holders outside our books, and what would show a gap>

## Open decisions
<Limits and time windows finance has not set, with an owner and a date>

## Changing a definition
<Who proposes, who signs, how support is told before the screen changes>
WORKED EXAMPLE

Owoleaf’s head of payments writes this one-page model, and Owoleaf’s finance lead and support lead sign any change to it.

The three words. Received: Owoleaf has accepted the instruction and credited the wallet. Settled: the cash is in Owoleaf’s account at the partner bank. Paid: the money is where the customer can use it and cannot come back. For a wallet-to-wallet transfer that is the other wallet; for a payout it is the customer’s own bank, which the lab data cannot show, so the day it counts is an open decision.

Step Word shown Who holds the money Customer sees May spend
Card top-up of ₦3,964.00, Sunday 13:16 Received The card processor owes Owoleaf ₦3,964.00 (card_clearing) Wallet up ₦3,904.54 Up to a limit finance sets
Same top-up, Monday 10:00 Settled Owoleaf, at the partner bank: 392,436 kobo (₦3,924.36), one batch for the day No change Without the limit
Bank transfer of ₦42,389.00 (transaction 2) Received and settled together Partner bank, line 2, balance 5,004,238,900 kobo Wallet up ₦42,389.00 In full
Wallet to wallet, ₦1,692.74 (transaction 46) Paid Owoleaf’s ledger only; no statement line Both balances In full
Payout accepted by the other bank Sent, not yet paid The other bank Payout sent Not applicable

Cannot see. The payer’s bank and the switch. Ninety-eight payouts were returned after acceptance, so showing “paid” on acceptance would be wrong for them.

Open. The spend limit, and the day a payout counts as paid. Finance owns both, to be set before the Friday release.

Now you

Ojaline, the marketplace, credits a seller’s wallet the moment the buyer’s bank says a transfer was “successful”. Last Friday a seller was told her ₦120,000 sale was paid, could not spend it, and called support. Adeola in finance has also seen days when wallet balances exceed settled cash. Assume buyers pay by bank transfer or card, and state that assumption in your document. The lab shows both timetables: step 3 (a transfer credited and on the statement together), step 6 (a card top-up credited on day 1, cash at 10:00 the next day) and step 4 (98 payouts returned after acceptance).

Write the status model for incoming sale money only. Name the words the seller sees from sale to spendable, who holds the money at each, and what is open for finance. You write it as the head of payments, and Adeola and the support lead sign. The head of product reads it to decide whether Friday’s release goes ahead.

Self-check

DECIDE

Ojaline's seller wallet credits a seller when the buyer's bank says the transfer was successful. Finance (Adeola) sees days when the wallet balances exceed the settled cash in the bank, and a few transfers reversed after the seller had spent the money. Seller support (Chinedu) wants sellers to see their money at once. The head of product wants one status word on screen by Friday. What do you recommend?

READING
  1. DOC
    Glossary of terms used in payment and settlement systems (CPMI) Committee on Payments and Market Infrastructures, 2016

    The standard meanings of clearing, settlement, finality, settlement asset and central bank money, from the committee central banks use. Read the entries for the words in this chapter before you quote any of them; this build could confirm the page exists but not read each entry.

  2. PAPER
    The role of central bank money in payment systems (CPMI) Committee on Payment and Settlement Systems, 2003

    A 2003 report, 116 pages, on when central banks require settlement in central bank money and what the alternatives are. Read the opening sections on central and commercial bank money; skip the policy propositions on a first pass. This build read only the summary. Read: Opening sections on central bank money and commercial bank money.

  3. PAPER
    Money creation in the modern economy (Bank of England) Michael McLeay, Amar Radia and Ryland Thomas, 2014

    Explains that a deposit is a ledger entry and how a loan creates one. Read the first half for the picture of bank money; skip the discussion of quantitative easing. Its description is of the United Kingdom in 2014. Read: Quarterly Bulletin 2014 Q1.

  4. DOC
    Payments System Vision 2025 (CBN) Central Bank of Nigeria, 2022

    The Central Bank of Nigeria's own landing page for its five-year roadmap, with a link to the full document. Read the document for the goals and who they bind, and check what has changed since; the page is the starting point, not the detail.

  5. DOC
    Payments System Vision 2028 (CBN) Central Bank of Nigeria, 2026

    The successor roadmap's landing page on the CBN site. Read it with PSV 2025 to see what the regulator says it wants next. Press coverage differs on some details, so take targets from the document and not from the news.

  6. BOOK
    Payments Systems in the U.S.: A Guide for the Payments Professional, 3rd edition (Glenbrook) Carol Coye Benson, Scott Loftesness and Russ Jones, 2017

    The publisher's product page for the book, a plain-language tour of cards, ACH, wires and cheques and of how the parties fit together. The book is about the United States, so read it for the framework (who is the payer's bank, who is the payee's bank, how settlement happens) and not for American rules. Read: Part I, the payments framework.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Nigeria's rails: NIP, NEFT, cards, USSD, mobile money, PSBs →