SENIORCHAPTER 49

Batch and high-value payments: salary files, NEFT and RTGS

A salary file is one instruction with thousands of lines and a cut-off. A high-value payment is one line, settled alone. Send the first at 12:20 on a pay-day Friday and staff are paid on Monday; send the second without the money and it waits in a queue

50 MINPAYMENTSUPDATED 2026-11-18
PREDICT

In the lab's week, a bank batch cut-off is 12:00 and a file settles on the same business day if it arrives before then. A file of salaries reaches the bank at 12:20 on a Friday. When do the staff's accounts get the money?

You have met two rails so far. NIP is the instant rail: the customer sees the credit in seconds, and the banks settle in sessions later. Cards are the next-day rail. This chapter adds the two that sit at either end of NIP’s range. Batch rails carry many payments in one file, cheaply and with a slow clock. The high-value rail, RTGS (real-time gross settlement), carries few payments of large amounts, one at a time, with no waiting for the money.

One ₦500,000, three clocks

Take a payment of ₦500,000 and ask the five questions from Nigeria’s rails. When does the beneficiary see it? When is it final between the banks? What does a failure look like? The lab’s model gives these answers for a payment made on Thursday at 11:30.

NIP Batch RTGS
Beneficiary credited Thu 11:30, in seconds Thu, the settlement date Thu 11:30, at once
Banks’ money final Thu 15:00, the next session Thu, the settlement date Thu 11:30, at once
Sent at 12:30 instead credited at once, final Thu 15:00 Fri at once
Sent Friday 15:30 credited at once, final Fri 19:00 Monday at once
Sent Saturday 10:00 credited at once, final Mon 05:00 Monday Monday 08:00

Lab step 4 prints this table from code that you write and that you check against the week’s data. The windows in it are the lab’s inventions: the four NIP sessions, the noon batch cut-off and the 08:00 to 17:00 RTGS day. They are illustrative and they are not Nigeria’s (sources disagree on the real number of NIP settlement sessions). The shape is what to take away. NIP separates what the customer sees from what the banks settle. Batch ties both to a calendar date. RTGS ties both to the same instant but only while the system is open.

Batch: one instruction, many lines

A batch payment is a file. It carries a header, which names the account to debit, and many lines, each naming a beneficiary account, a bank and an amount. The sending bank debits the funding account once and credits the lines. Payroll, pensions, supplier runs and dividends are batches, and so is anything a company does for many people at once.

NIBSS describes its NIBSSPay service as a bulk payment portal for corporates, government bodies and financial institutions, built to debit one funding account and credit many, with payroll listed among its use cases. Search summaries of the page say a client uploads a payment schedule or uses an API and routes it through either NEFT or MultiPay; the summaries do not say how NEFT is run or whether it is still the same service the rails chapter describesas of 2026-11. NEFT is NIBSS Electronic Funds Transfer, the older batch-style transfer you met in the rails chapter. NIBSS’s MultiPay help page describes an API for customers with bulk needs, with schedules in CSV format, processed instantly on its platform by using NIPas of 2026-11. Two things follow, and the sources found do not settle them. First, “batch” is not one speed: a bulk file may be carried by a batch rail or fed to the instant rail line by line, as the MultiPay description suggests, and the bank or the platform would decide which. Second, the page gave no cut-off times for NEFT, and a search for them returned no Nigerian times, only Indian pages, which describe a different system. Ask your bank for its NEFT and bulk windows in writing, and do not borrow a time from a blog.

What goes wrong with a batch is more specific than what goes wrong with one transfer.

The cut-off is for the file, not the money. The bank sets a time after which a file waits for the next processing day. A file that misses it is not late in any sense the system reports: it is on time for tomorrow.

Acceptance is not payment. The bank accepts the file and debits the funding account. Then each line is credited or rejected by its own bank, and the results arrive afterwards. A closed account, a wrong number or a frozen account rejects that line only. In the lab’s week 267 of 20,043 lines were rejected, 1.33%, and the funding debit does not say which. The lab’s batch table is a generic model of a bulk file; it is not NEFT or any named service. The rejected lines come back as money returned and as a result file, and someone must match them to people.

One file, one statement line. A file of 2,200 salaries is one debit on the company’s bank statement. Reconciling it means matching the file total, minus the rejected lines, against that debit, and the rejected lines against the returns. The reconciliation chapter did this for card settlements; a payroll file is the same idea with a different key.

A file can be sent twice. The upload times out, an operator uploads again, and two thousand people are paid twice. The cure is the one from idempotency and exactly-once: the file carries a reference, the bank or platform refuses a repeated one, and you ask what became of the first before you send a second.

Nobody asks the name first. On NIP a name enquiry runs before every transfer. A batch has no screen and no sender to look at a name. The checks move to before submission: the account number’s check digit, which the account-numbers chapter in this module covers, and a name check where the bank offers one. A wrong account number that passes the check digit gets paid to a stranger.

The salary file a day late

Lab step 2 reads the week’s 125 batch files. Each is a file from one bank for one originating company, with 20 to 300 lines. The lab’s rule is the noon cut-off: before 12:00, settle that business day; otherwise the next business day, and Friday’s late files settle on Monday. The rule reproduces the settlement date of all 125 files.

Count what it does. Of 125 files, 63 are submitted before noon and settle the same day, and 62 are submitted at or after 12:00 and settle later. One of them is a ₦132,000,694 file from B07, submitted at 14:36 on Friday 19 June, which settles on Monday 22 June, three calendar days later. Nothing is wrong with the file. Its company chose a time.

Crustwell’s lesson is a planning one. The deadline that matters is the day the staff must be paid, and the file’s deadline is a business day earlier than that. If pay-day is Friday and the cut-off is noon, the file is due on Thursday morning, with margin for a rejected line to be fixed and resent. A treasury calendar that only records pay-day has nothing to warn Adetola on Thursday.

The ledger needs the same care. Crustwell’s books should record the salary as payable when the file is accepted, and as paid when the bank’s results confirm each line, not when the file is built. Between the two sits an amount that has left the funding account but not reached the staff. It is a suspense balance, like the one a sending bank holds while a NIP transfer is in flight, and you check it to zero on the settlement date.

RTGS: one payment at a time

RTGS is the opposite shape. The CBN’s page on large-value payments describes the real-time gross settlement system as settling payments one at a time. It says payments that cannot be settled for lack of funds are queued and released by priority and first-in-first-out within the daily operational hours when funds are available, and that NIBSS sends the banks’ net positions from clearing to RTGS for settlement at a designated time. The page does not give the hoursas of 2026-11. That last clause is the bridge to what you read in the history of payments: NIP’s net positions are settled through RTGS, so RTGS is both a rail customers’ banks use for their own large payments and the floor under the instant rail.

“Gross” is the point. The 1997 CPSS report on RTGS systems, as its BIS summary describes it, treats these systems as effecting final settlement of interbank transfers on a continuous, transaction-by-transaction basis through the processing dayas of 2026-11. In the usual definition the money settled is central bank money, and net settlement is the contrast: instructions are cleared during the day and the banks settle the balances later. That is a general definition, cited for the concept and not for Nigeria’s rules. Because each payment settles alone, the paying bank has to hold the funds for every payment when it makes it. There is no netting to save liquidity. The CBN’s queue is what happens when the bank does not.

What the CBN’s pages disagree on is worth knowing. Search summaries of CBN pages give two start dates: one says the RTGS system was deployed on 18 December 2013 together with the central securities depository, while another CBN page’s text refers to a 2006 go-live. This chapter rests on those summaries and has not seen the full pagesas of 2026-11. It does not choose between them; if a date matters to your work, read the CBN’s own pages and ask.

The lab’s rtgs table holds 193 payments in the week. Lab step 3 reads them. They run on five business days only, between 08:00 and 16:59, in amounts from ₦180,000 to ₦150,000,000. There are three purposes: payments between banks, high-value payments for customers, and settlement funding, which is a bank moving money to the central bank so that it can cover its position in the instant rail’s sessions. B13 makes two of them on the Friday, ₦24,970,000 at 11:10 and then the top-up: ₦150,000,000 to the CBN at 12:19, against a lab collateral figure of ₦40,000,000. The chapter on how banks settle with each other is where that Friday gets its full story; for now note that RTGS is the rail the banks themselves reach for when a limit bites.

Look at that Friday’s other side. In the same minutes B13’s customer, a company, was paying its suppliers by instant transfer: 38 transfers from 12:00 to 12:30, ₦72,427,661 in all, each between ₦1,500,000 and ₦2,500,000. Four were declined with response 51, recorded between 12:16:16 and 12:18:13, and every one falls before the 12:19:00 top-up. The lab declines a transfer when B13’s net debit in the open settlement session, counting that transfer, would pass its collateral, so the declines stop when the top-up lands. A company paying forty suppliers in half an hour is a batch or an RTGS job being done on the instant rail, one line at a time, and its bank’s position was the thing that ran out. The lesson for Crustwell is not that the instant rail is wrong. It is that the rail you pick decides which limit you meet.

What each rail carried

The generator’s sizes decide the lab’s shares, so treat them as a method. Step 3 prints what the week’s three tables hold: NIP transfers that ended in 00, batch lines that were accepted, and RTGS payments. NIP is 47.1% of the payments by count and 2.5% of the value, batch is 52.4% of the count and 67.1% of the value, and RTGS is 0.5% of the count and 30.4% of the value. The average RTGS payment is about ₦21.7 million. The average batch line is ₦468,914 and the average NIP transfer is ₦19,322.

Those figures come from the generator’s settings: its batch lines are drawn between ₦40,000 and ₦900,000, which is what makes batch dominate. Do not carry them out of the lab. The method carries: count per rail, value per rail, and the average, because a rail with few payments can carry a large share of the value, and a reconciliation that counts payments alone will watch the wrong rail. The real shares are a matter for published statistics from NIBSS and the CBN, and this chapter’s searches did not return a figure it could cite, so it quotes none.

Which rail for which payment

A decision on rails uses four facts, in this order.

The deadline. Is it a time of day, or a date? A date that is a business day away is satisfied by a file sent before the cut-off the day before. A time of day today needs NIP or RTGS.

The size of one payment. A rail has a natural range. The lab’s week shows it: batch lines up to ₦899,961, NIP up to ₦2,498,226, RTGS from ₦180,000 to ₦150,000,000. Real limits per channel, per customer and per rail are set by the bank and by rules, and are not in the lab. Check your bank’s limits before you design a run around them.

The number of payments. Two thousand instant transfers are two thousand requests, each of which can time out and need requerying, each paying a per-transfer charge, each counted against a limit. One file is one instruction and one reference.

What you do if it goes wrong. An instant transfer has a status query. A batch line returns after the window. An RTGS payment is final when it settles, so a wrong beneficiary is a request to the receiving bank to return the money, not an undo. A control that checks the beneficiary and requires two people to release the payment is cheap compared with that request.

Lab step 5 puts four of Crustwell’s payments through all three clocks and prints where each fits. Read the last column carefully: it says whether the payment’s size lies inside the range the week shows for that rail. It is an observation about the lab, and the real answer is in your bank’s terms. Fees belong in the decision too. The CBN’s Guide to Charges by Banks, Other Financial and Non-Financial Institutions took effect on 1 January 2020 and replaced the 2017 guide; secondary coverage mentions later reductions, so a newer edition may existas of 2026-11. The search results did not show its RTGS or bulk-payment tables, and one press report of a per-beneficiary cap on bulk charges had no date. This chapter states no charge. Open the current guide and your bank’s schedule and read the lines for each rail.

The message under the file

Each rail has a message family. In the ISO 20022 catalogue you met in payment messages, pain.001 is the customer’s instruction to its bank to make credit transfers, one message holding many payments, which is the shape of a salary file. pacs.008 is the credit transfer between institutions. The status reports, pain.002 from the bank to its customer and pacs.002 between banks, are the messages that say a line was rejected. Whether a given bank accepts pain.001, a CSV or its own layout is its decision. A law-firm article summarising the CBN’s circular PSS/DIR/PUB/CIR/001/001 of 25 August 2025 says it requires domestic and international payment messages to use ISO 20022 by 31 October 2025as of 2026-11. The circular’s own text was not opened for this chapter, and the search results do not say how it applies to RTGS or to bulk files. If you send files, ask your bank what format it takes now.

Where it goes wrong

Four patterns recur, and the lab data shows the first three.

  1. The late file. A file is built after the cut-off, and the date on the calendar is the pay-day. Prevent it with a treasury calendar that works back from the pay-day to the file’s deadline.
  2. The rejected line nobody chased. The 267 rejections include 95 that went to accounts the lab holds as closed. The rest went to accounts the lab does not hold as closed (162 of them active), which the generator rejects at random: it has no rule for them, and real rejections have real causes that the result file names. Chase every rejected line, because each is a person who is owed money.
  3. The queue. An RTGS payment made without the funds does not fail: it waits. Treat “accepted” on RTGS as “queued” until you see it settle, and check the balance before the payment, not after.
  4. The duplicate file. A resubmitted file pays twice. Put a reference in the file, record it before the upload and requery before you resend.
LAB Read a week of batch files and RTGS payments, model three clocks, and test a salary run against a deadline ~45 MIN
YOU NEEDPython 3.9 or later (standard library only)labs/finance with the rails week generatedNo Docker, no packages, no sqlite3 command-line tool, no mock services

You work in labs/finance. The data is the rails week in data/rails.sqlite: Monday 15 to Sunday 21 June 2026 on an instant-payment network, with its batch files and RTGS payments. Every code, cut-off, limit and fee in it is illustrative, and none is NIBSS’s, the CBN’s or a bank’s. The scripts use Python’s sqlite3 module, so the sqlite3 command is not needed. Save the scripts in a work folder so that nothing lands in the lab’s own folders.

1. Generate the week and check it. It takes about a second.

cd labs/finance
python3 rails.py
python3 check.py --rails-only
mkdir -p work

rails.py prints its table sizes. The lines that matter here are:

32 participants, 22,835 accounts, 17,998 transfers, 12,158 name enquiries, 136 status queries
21 settlement sessions, 125 batch files, 193 RTGS payments, 3,412 USSD sessions, 3,453 PSB postings

and check.py ends:

rails week: 17,998 transfers, 21 settlement sessions, 22,835 accounts; checks 21-25 run
OK: all invariants hold

Seed 42 gives the same numbers every time. The batch_files and batch_items tables are the files and their lines; rtgs holds the high-value payments.

2. Read the batch files. Save this as work/batches.py and run it from labs/finance. It counts files by day, tests the noon rule, checks every file’s total against its accepted lines and lists late files.

cat > work/batches.py <<'PY'
import sqlite3
from datetime import datetime, date, timedelta

db = sqlite3.connect("data/rails.sqlite")
NAIRA = 100

def naira(kobo):
    return f"₦{kobo // NAIRA:,}"

print("1. batch files by submission day")
print(f"   {'day':<11} {'files':>5} {'items':>6} {'rejected':>8} {'paid':>17} {'same day':>9}")
for day, files, items, rej, paid, same in db.execute("""
        SELECT substr(submitted_at, 1, 10), COUNT(*), SUM(items), SUM(rejected), SUM(total_paid_kobo),
               SUM(settles_on = substr(submitted_at, 1, 10))
        FROM batch_files GROUP BY 1 ORDER BY 1"""):
    print(f"   {day:<11} {files:>5} {items:>6,} {rej:>8} {naira(paid):>17} {same:>9}")

# The lab's rule: before 12:00 settles the same day, otherwise the next business day.
def next_business(d):
    d += timedelta(days=1)
    while d.weekday() >= 5:
        d += timedelta(days=1)
    return d

def settles_on(submitted_at):
    t = datetime.fromisoformat(submitted_at)
    return (t.date() if t.hour < 12 else next_business(t.date())).isoformat()

files = db.execute("SELECT id, bank, originator, submitted_at, items, rejected, total_paid_kobo, settles_on FROM batch_files").fetchall()
wrong = [f[0] for f in files if settles_on(f[3]) != f[7]]
print(f"2. noon rule reproduces settles_on for {len(files) - len(wrong)} of {len(files)} files")

paid_by_items = dict(db.execute("SELECT file_id, SUM(amount_kobo) FROM batch_items WHERE result = '00' GROUP BY 1"))
bad = [f[0] for f in files if paid_by_items.get(f[0], 0) != f[6]]
n_items, n_rej = db.execute("SELECT COUNT(*), SUM(result <> '00') FROM batch_items").fetchone()
print(f"3. total_paid_kobo equals the sum of its accepted items for {len(files) - len(bad)} of {len(files)} files; "
      f"{n_rej} of {n_items:,} items rejected ({100 * n_rej / n_items:.2f}%)")
closed = db.execute("""SELECT COUNT(*) FROM batch_items i JOIN accounts a ON a.account_no = i.account_no AND a.institution = i.dest
                       WHERE i.result <> '00' AND a.status = 'closed'""").fetchone()[0]
print(f"   of those, {closed} went to a closed account")

print("4. files submitted after noon: the three largest on a Mon-Thu, and the largest on a Friday")
print(f"   {'file':<8} {'bank':<5} {'submitted':<21} {'settles':<11} {'paid':>16} {'days later':>10}")
late = []
for f in files:
    t = datetime.fromisoformat(f[3])
    if t.hour >= 12:
        late.append((f[6], f, t))
pick = [x for x in sorted(late, reverse=True) if x[2].weekday() < 4][:3]
pick += [x for x in sorted(late, reverse=True) if x[2].weekday() == 4][:1]
for paid, f, t in pick:
    days = (date.fromisoformat(f[7]) - t.date()).days
    when = f"{f[3][:16].replace('T', ' ')} {t:%a}"
    print(f"   {f[0]:<8} {f[1]:<5} {when:<21} {f[7]:<11} {naira(paid):>16} {days:>10}")
n_late = len(late)
print(f"   {n_late} of {len(files)} files were submitted at or after 12:00 and so settle on a later day")
PY
python3 work/batches.py
1. batch files by submission day
   day         files  items rejected              paid  same day
   2026-06-15     25  3,624       49    ₦1,684,160,589        12
   2026-06-16     25  4,018       63    ₦1,854,768,489        14
   2026-06-17     25  3,724       44    ₦1,721,521,935        11
   2026-06-18     25  4,739       64    ₦2,211,340,523        15
   2026-06-19     25  3,938       47    ₦1,801,466,353        11
2. noon rule reproduces settles_on for 125 of 125 files
3. total_paid_kobo equals the sum of its accepted items for 125 of 125 files; 267 of 20,043 items rejected (1.33%)
   of those, 95 went to a closed account
4. files submitted after noon: the three largest on a Mon-Thu, and the largest on a Friday
   file     bank  submitted             settles                 paid days later
   BF00076  B14   2026-06-18 16:30 Thu  2026-06-19      ₦149,101,712          1
   BF00084  B02   2026-06-18 16:58 Thu  2026-06-19      ₦138,802,760          1
   BF00043  B05   2026-06-16 13:47 Tue  2026-06-17      ₦130,230,408          1
   BF00102  B07   2026-06-19 14:36 Fri  2026-06-22      ₦132,000,694          3
   62 of 125 files were submitted at or after 12:00 and so settle on a later day

The “same day” column sums to 63 files, so the other 62 settle on a later day. The Friday file’s three calendar days are Saturday and Sunday, which are not business days. A file’s total_paid_kobo counts accepted lines only, so a rejected line is missing from the total as well as from the beneficiary. Of the 267 rejected lines, 95 went to accounts the lab holds as closed. The other 172 are on accounts the lab does not hold as closed (162 active, 10 dormant, frozen or blocked from debits): the generator rejects about 1% of lines at random, so it gives no cause for them. All amounts here are integer kobo, printed as naira by dividing by 100.

3. Read the RTGS payments and compare the rails. Save this as work/highvalue.py.

cat > work/highvalue.py <<'PY'
import sqlite3
from datetime import datetime

db = sqlite3.connect("data/rails.sqlite")
NAIRA = 100

def naira(kobo):
    return f"₦{kobo // NAIRA:,}"

print("1. RTGS payments by purpose")
print(f"   {'purpose':<22} {'count':>5} {'smallest':>13} {'largest':>15} {'total':>17}")
for purpose, n, lo, hi, tot in db.execute("""
        SELECT purpose, COUNT(*), MIN(amount_kobo), MAX(amount_kobo), SUM(amount_kobo)
        FROM rtgs GROUP BY purpose ORDER BY purpose"""):
    print(f"   {purpose:<22} {n:>5} {naira(lo):>13} {naira(hi):>15} {naira(tot):>17}")

rows = db.execute("SELECT id, at, sender, receiver, amount_kobo, purpose FROM rtgs ORDER BY at").fetchall()
hours = [datetime.fromisoformat(r[1]).hour for r in rows]
days = sorted({r[1][:10] for r in rows})
print(f"2. {len(rows)} payments on {len(days)} days ({days[0]} to {days[-1]}); first hour {min(hours)}:00, last hour {max(hours)}:xx; "
      f"weekend payments: {sum(datetime.fromisoformat(r[1]).weekday() >= 5 for r in rows)}")

print("3. B13's settlement funding on Friday 19 June")
for r in db.execute("""SELECT id, at, sender, receiver, amount_kobo, purpose FROM rtgs
                       WHERE sender = 'B13' AND substr(at, 1, 10) = '2026-06-19' ORDER BY at"""):
    print(f"   {r[0]} {r[1][11:16]} {r[2]} -> {r[3]} {naira(r[4])} {r[5]}")
coll = db.execute("SELECT collateral_kobo FROM participants WHERE code = 'B13'").fetchone()[0]
print(f"   B13's collateral in the lab: {naira(coll)}")

print("4. what each rail carried in the week (the lab's own tables)")
nip_n, nip_v, nip_max = db.execute("""SELECT COUNT(*), SUM(amount_kobo), MAX(amount_kobo) FROM transfers
                                      WHERE final_status = '00'""").fetchone()
b_items, b_v, b_max = db.execute("""SELECT COUNT(*), SUM(amount_kobo), MAX(amount_kobo) FROM batch_items
                                    WHERE result = '00'""").fetchone()
r_n, r_v, r_max = db.execute("SELECT COUNT(*), SUM(amount_kobo), MAX(amount_kobo) FROM rtgs").fetchone()
print(f"   {'rail':<14} {'payments':>9} {'value':>20} {'average':>14} {'largest':>14}")
for name, n, v, mx in [("NIP (final 00)", nip_n, nip_v, nip_max), ("batch items", b_items, b_v, b_max),
                       ("RTGS", r_n, r_v, r_max)]:
    print(f"   {name:<14} {n:>9,} {naira(v):>20} {naira(v // n):>14} {naira(mx):>14}")
tot = nip_v + b_v + r_v
print(f"   shares of value: NIP {100 * nip_v / tot:.1f}%, batch {100 * b_v / tot:.1f}%, RTGS {100 * r_v / tot:.1f}%")
print(f"   shares of count: NIP {100 * nip_n / (nip_n + b_items + r_n):.1f}%, batch {100 * b_items / (nip_n + b_items + r_n):.1f}%, RTGS {100 * r_n / (nip_n + b_items + r_n):.1f}%")
PY
python3 work/highvalue.py
1. RTGS payments by purpose
   purpose                count      smallest         largest             total
   customer_high_value       96      ₦180,000     ₦39,760,000    ₦2,075,140,000
   interbank_placement       81    ₦1,830,000     ₦39,650,000    ₦1,629,730,000
   settlement_funding        16    ₦1,520,000    ₦150,000,000      ₦490,390,000
2. 193 payments on 5 days (2026-06-15 to 2026-06-19); first hour 8:00, last hour 16:xx; weekend payments: 0
3. B13's settlement funding on Friday 19 June
   RT00186 09:29 B13 -> B15 ₦5,360,000 interbank_placement
   RT00156 11:10 B13 -> CBN ₦24,970,000 settlement_funding
   RT00193 12:19 B13 -> CBN ₦150,000,000 settlement_funding
   B13's collateral in the lab: ₦40,000,000
4. what each rail carried in the week (the lab's own tables)
   rail            payments                value        average        largest
   NIP (final 00)    17,798         ₦343,902,244        ₦19,322     ₦2,498,226
   batch items       19,776       ₦9,273,257,889       ₦468,914       ₦899,961
   RTGS                 193       ₦4,195,260,000    ₦21,737,098   ₦150,000,000
   shares of value: NIP 2.5%, batch 67.1%, RTGS 30.4%
   shares of count: NIP 47.1%, batch 52.4%, RTGS 0.5%

RTGS is 193 of 37,767 payments and 30.4% of the value. The generator sets these amounts, so read the table as a method: count and value per rail, and the average, which differ by three orders of magnitude between NIP and RTGS. No RTGS payment falls at a weekend or outside 08:00 to 16:59, which is what the generator does and is not a claim about the real system’s hours. The B13 rows are its Friday: a placement, a ₦24,970,000 funding payment, then the ₦150,000,000 top-up at 12:19 from the chapter text.

4. Write the three clocks and test them against the data. First the model, saved as work/rails_clock.py. Its constants are the lab’s, copied from rails.py, and are illustrative.

cat > work/rails_clock.py <<'PY'
import sqlite3
from datetime import datetime, timedelta, timezone

WAT = timezone(timedelta(hours=1))
CUTOFFS = [4, 10, 14, 18]          # the lab's NIP sessions: ILLUSTRATIVE, from rails.py
NOON = 12                          # the lab's batch cut-off: ILLUSTRATIVE
RTGS_OPEN, RTGS_CLOSE = 8, 17      # the lab's RTGS window: ILLUSTRATIVE (the data runs 08:00 to 16:59)

def is_business(d):
    return d.weekday() < 5

def next_business_day(d):
    d += timedelta(days=1)
    while not is_business(d):
        d += timedelta(days=1)
    return d

def midnight(t):
    return t.replace(hour=0, minute=0, second=0, microsecond=0)

def nip(t):
    """(credited at, banks' money final at). Credit in seconds; settlement in the next session."""
    d = midnight(t)
    while True:
        if is_business(d):
            for k, h in enumerate(CUTOFFS, 1):
                cut = d.replace(hour=h)
                if t < cut:
                    return t, cut + timedelta(hours=1), f"{cut:%Y%m%d}-{k}"
        d = midnight(d + timedelta(days=1))

def batch(t):
    """Credited and final on the settlement date: before noon the same day, else the next business day."""
    day = t.date() if (is_business(t.date()) and t.hour < NOON) else next_business_day(t.date())
    start = datetime(day.year, day.month, day.day, tzinfo=WAT)
    return start, start, day.isoformat()

def rtgs(t):
    """Credited and final at once, inside the window; outside it, when the window next opens."""
    d = midnight(t)
    if is_business(d.date()) and t.hour < RTGS_OPEN:
        t = d.replace(hour=RTGS_OPEN)
    elif not is_business(d.date()) or t.hour >= RTGS_CLOSE:
        d = midnight(datetime.combine(next_business_day(t.date()), datetime.min.time(), tzinfo=WAT))
        t = d.replace(hour=RTGS_OPEN)
    return t, t, ""


def show(t, date_only=False):
    return f"{t:%a %d} (date only)" if date_only else f"{t:%a %d %H:%M}"
PY

Then the test, saved as work/same_500k.py. It checks the model against every settled transfer and every batch file, and prints the same ₦500,000 at four moments.

cat > work/same_500k.py <<'PY'
import sqlite3
from datetime import datetime, timedelta, timezone
from rails_clock import nip, batch, rtgs, show, WAT

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

bad = 0
rows = db.execute("SELECT final_at, settlement_session FROM transfers WHERE settlement_session <> ''").fetchall()
for final_at, session in rows:
    if nip(datetime.fromisoformat(final_at))[2] != session:
        bad += 1
print(f"1. nip(): {len(rows) - bad:,} of {len(rows):,} settled transfers land in the session the data says")
bad = 0
files = db.execute("SELECT submitted_at, settles_on FROM batch_files").fetchall()
for sub, settles in files:
    if batch(datetime.fromisoformat(sub))[2] != settles:
        bad += 1
print(f"   batch(): {len(files) - bad} of {len(files)} files settle on the date the data says")

print("2. the same ₦500,000, sent at four moments")
moments = [datetime(2026, 6, 18, 11, 30, tzinfo=WAT), datetime(2026, 6, 18, 12, 30, tzinfo=WAT),
           datetime(2026, 6, 19, 15, 30, tzinfo=WAT), datetime(2026, 6, 20, 10, 0, tzinfo=WAT)]
for m in moments:
    print(f"   sent {show(m)}")
    for name, fn in [("NIP", nip), ("batch", batch), ("RTGS", rtgs)]:
        credited, final, tag = fn(m)
        d = name == "batch"
        print(f"     {name:<6} credited {show(credited, d):<22} banks' money final {show(final, d):<22} {tag}")
PY
python3 work/same_500k.py
1. nip(): 17,798 of 17,798 settled transfers land in the session the data says
   batch(): 125 of 125 files settle on the date the data says
2. the same ₦500,000, sent at four moments
   sent Thu 18 11:30
     NIP    credited Thu 18 11:30           banks' money final Thu 18 15:00           20260618-3
     batch  credited Thu 18 (date only)     banks' money final Thu 18 (date only)     2026-06-18
     RTGS   credited Thu 18 11:30           banks' money final Thu 18 11:30           
   sent Thu 18 12:30
     NIP    credited Thu 18 12:30           banks' money final Thu 18 15:00           20260618-3
     batch  credited Fri 19 (date only)     banks' money final Fri 19 (date only)     2026-06-19
     RTGS   credited Thu 18 12:30           banks' money final Thu 18 12:30           
   sent Fri 19 15:30
     NIP    credited Fri 19 15:30           banks' money final Fri 19 19:00           20260619-4
     batch  credited Mon 22 (date only)     banks' money final Mon 22 (date only)     2026-06-22
     RTGS   credited Fri 19 15:30           banks' money final Fri 19 15:30           
   sent Sat 20 10:00
     NIP    credited Sat 20 10:00           banks' money final Mon 22 05:00           20260622-1
     batch  credited Mon 22 (date only)     banks' money final Mon 22 (date only)     2026-06-22
     RTGS   credited Mon 22 08:00           banks' money final Mon 22 08:00

The model is only worth trusting once it reproduces the data: every one of the 17,798 settled transfers lands in the session the generator gave it, and every file on its date. The batch data has a date and no time, so the batch rows say “date only”. The lab’s NIP session ends at the cut-off plus an hour. The NIP rows show what the customer and the banks each see: credit in seconds, settlement hours later, and over a weekend not until Monday. The RTGS row on Saturday waits for Monday 08:00, because the lab’s RTGS has no weekend. Whether the real one does, and when it opens, are matters for the CBN’s own pages and your bank.

5. Put Crustwell’s payments through the clocks. Save this as work/deadlines.py. Each case has a payment, a ready time and a deadline. The last column compares one payment’s amount with the smallest and largest of the same rail in the week.

cat > work/deadlines.py <<'PY'
import sqlite3
from datetime import datetime
from rails_clock import nip, batch, rtgs, show, WAT

NAIRA = 100
db = sqlite3.connect("data/rails.sqlite")
queries = {
    "NIP": "SELECT MIN(amount_kobo), MAX(amount_kobo) FROM transfers WHERE final_status = '00'",
    "batch": "SELECT MIN(amount_kobo), MAX(amount_kobo) FROM batch_items WHERE result = '00'",
    "RTGS": "SELECT MIN(amount_kobo), MAX(amount_kobo) FROM rtgs",
}
span = {rail: db.execute(q).fetchone() for rail, q in queries.items()}
for rail, (lo, hi) in span.items():
    print(f"{rail:<6} one payment in the week: from ₦{lo // NAIRA:,} to ₦{hi // NAIRA:,}")
print()

def t(day, hh, mm=0):
    return datetime(2026, 6, day, hh, mm, tzinfo=WAT)

# (what, one payment's amount in kobo, ready at, must arrive by)
cases = [
    ("salary run, ready in time", 35_000_000, t(18, 11, 30), t(19, 8)),
    ("salary run, ready after noon", 35_000_000, t(18, 12, 30), t(19, 8)),
    ("supplier payment, due today 14:00", 3_800_000_000, t(18, 11, 30), t(18, 14)),
    ("distributor refund, due within the hour", 12_000_000, t(18, 11, 30), t(18, 12, 30)),
]
print(f"{'case':<40} {'rail':<6} {'credited':<24} {'in time':<9} {'this payment against the week'}")
for what, amount, ready, due in cases:
    for name, fn in [("NIP", nip), ("batch", batch), ("RTGS", rtgs)]:
        credited, final, tag = fn(ready)
        if name == "batch":
            verdict = "yes" if credited.date() < due.date() else "on the day" if credited.date() == due.date() else "no"
        else:
            verdict = "yes" if credited <= due else "no"
        lo, hi = span[name]
        size = "inside the range" if lo <= amount <= hi else "ABOVE the range" if amount > hi else "BELOW the range"
        print(f"{what:<40} {name:<6} {show(credited, name == 'batch'):<24} {verdict:<9} {size}")
    print()
PY
python3 work/deadlines.py
NIP    one payment in the week: from ₦100 to ₦2,498,226
batch  one payment in the week: from ₦40,002 to ₦899,961
RTGS   one payment in the week: from ₦180,000 to ₦150,000,000

case                                     rail   credited                 in time   this payment against the week
salary run, ready in time                NIP    Thu 18 11:30             yes       inside the range
salary run, ready in time                batch  Thu 18 (date only)       yes       inside the range
salary run, ready in time                RTGS   Thu 18 11:30             yes       inside the range

salary run, ready after noon             NIP    Thu 18 12:30             yes       inside the range
salary run, ready after noon             batch  Fri 19 (date only)       on the day inside the range
salary run, ready after noon             RTGS   Thu 18 12:30             yes       inside the range

supplier payment, due today 14:00        NIP    Thu 18 11:30             yes       ABOVE the range
supplier payment, due today 14:00        batch  Thu 18 (date only)       on the day ABOVE the range
supplier payment, due today 14:00        RTGS   Thu 18 11:30             yes       inside the range

distributor refund, due within the hour  NIP    Thu 18 11:30             yes       inside the range
distributor refund, due within the hour  batch  Thu 18 (date only)       on the day inside the range
distributor refund, due within the hour  RTGS   Thu 18 11:30             yes       BELOW the range

Timing alone does not choose. The salary run that is ready before noon fits all three clocks, and the one ready after noon fits NIP and RTGS but only “on the day” by batch, so it cannot promise 08:00 on Friday. The supplier payment of ₦38,000,000 is above anything NIP or batch carried in the week, so RTGS is the only rail whose range holds it. The ₦120,000 refund is below the smallest RTGS payment of the week. The “on the day” rows are the date-only limit: a batch settles on a date, and the lab has no hour for it.

Break it. In work/rails_clock.py, change NOON = 12 to NOON = 14, and run python3 work/same_500k.py again. Then change it back.

The first line of the report is unchanged, and the second becomes batch(): 104 of 125 files settle on the date the data says. Twenty-one files sent between 12:00 and 13:59 now disagree with the data, because the data’s cut-off is noon. The lesson is Crustwell’s: a cut-off held in your head or in a constant, and not read from the bank, makes every late file look on time until a Friday proves otherwise. Where your bank states its window, store it as configuration with the date you read it, and test your calendar against the settlement dates the bank reports.

ARTEFACT Write the payroll and supplier payment run plan ~45 MIN
YOU PRODUCEPayment run plan

Template

# Payment run plan: <run name>, pay-day <date>
Written by <name, role> · Released by <name, role> · Date written · Decision needed by <time, date>

## What is being paid
| Payment group | Lines | Total | Largest line | Due (day, time) |
|---|---|---|---|---|

## Rail for each group and why
| Group | Rail | Reason (deadline / size / count / recovery) | Bank limit checked on <date> |
|---|---|---|---|

## Cut-offs and timing
Bank cut-off for files: <time>, read from <source> on <date>
File deadline: <day, time>, margin: <what it covers>
Settlement date if the file is on time / if it is late: <date> / <date>
RTGS: funds in account before release: <amount, who checks, when>

## Checks before release
- File total equals payroll or invoice total: <figure, checked by>
- Closed or blocked accounts screened: <how, checked by>
- Duplicates: file reference <ref> recorded before upload; first run's status asked before any resend
- Beneficiaries changed since the last run: <count, who confirmed>

## Rejected lines
Expected: <count, rate and where the rate comes from>
Owner: <name> · Chase by <time> · Returned money matched to lines by <date>
Re-payment: <rail, who releases>

## Who does what
Builds: <name> · Uploads: <name> · Releases: <name>

## Out of scope
<what this plan does not cover>

## How this plan could be wrong
<one way, and what would show it>
WORKED EXAMPLE

At a real company the finance operations lead writes this plan and the finance controller releases the run. Here Adetola writes and Crustwell’s controller releases; Adewale builds the file and uploads it, and does not release it.

Crustwell payment run plan: June pay-day, Friday 19 June. Decision needed from the controller by 11:00 on Wednesday 17 June.

Groups. Salaries: 2,200 lines, about ₦770,000,000 (assumption: an average of ₦350,000, to be replaced by the payroll total). Supplier: one payment of ₦38,000,000, due by 14:00 on Thursday 18 June.

Rails. Salaries go in one batch file: the count is high, and the assumed ₦350,000 line sits inside the lab’s batch range, whose largest line is ₦899,961 (the bank’s real per-line limit is unchecked). The supplier payment goes by RTGS: ₦38,000,000 is above the largest NIP transfer (₦2,498,226) and the largest batch line, and inside the lab’s RTGS range of ₦180,000 to ₦150,000,000.

Timing. The lab’s noon cut-off is illustrative; the bank’s own is to be read in writing. On that rule the file is due before 12:00 on Thursday, which settles Thursday. Missing it settles Friday, still on pay-day. Missing Friday’s noon settles Monday, as BF00102 did.

Checks. Total against payroll. Accounts held closed screened out: 95 of the lab’s 267 rejections were closed accounts. File reference recorded before upload, and no second upload until the first is explained. For RTGS, the balance is confirmed before release, because a payment without funds queues.

Rejections. Expect about 29 lines, 1.33% of 2,200, the lab’s rate (a generator setting, not Nigeria’s). Adetola chases each the same day, and returned money is matched to lines by Tuesday 23 June.

Out of scope. Pension and tax remittances.

Could be wrong. If the bank’s cut-off is earlier than noon, Thursday’s file lands late. The first settlement date the bank reports would show it.

Now you

You are the finance operations lead at a Lagos logistics company with 400 staff. Pay-day is Friday 26 June, and your controller releases every run. Your plan must cover two things. First, one salary file of 400 lines, averaging ₦280,000. Second, a supplier run: 60 invoices between ₦600,000 and ₦850,000, plus two payments of ₦45,000,000 and ₦12,000,000 to a fleet vendor, the larger due by 15:00 on Thursday 25 June. Last month, a salary line went to a closed account and nobody chased it for nine days. Your bank says its batch window is noon, and you have not yet seen it in writing.

Use the lab: step 2 for the noon rule, the late Friday file and the 1.33% rejection rate, and step 5 for the size ranges of each rail. State any rail limits you have not checked as unchecked.

The controller reads it on Wednesday and decides whether to release the run on the rails and dates you propose.

Self-check

DECIDE

Crustwell's pay-day is Friday. Adetola's salary file for 2,200 staff is ready at 12:20, 20 minutes past the bank's noon batch cut-off. About 600 of the staff are factory shift workers at Agbara who are paid hourly and live from pay-day to pay-day. Adewale confirms the file is complete and its total matches payroll. The head of finance wants a decision before 13:00. What does Crustwell do?

READING
  1. DOC
    Large Value Payments (Inter-Bank Fund Transfer System) (CBN) Central Bank of Nigeria

    The CBN's own description of RTGS, its queue and how NIBSS net positions reach it. Read it for the queue rule and the wording on settlement; the page gave no operating hours in the search results, and it carries two different start dates for RTGS across the CBN's pages, so note the day you read it.

  2. DOC
    Nigeria Payments System Vision 2025 (CBN PSMD) Central Bank of Nigeria, Payments System Management Department

    The CBN's strategy document. A search result showed a section titled Operating Hours for the Settlement and Clearing System but not its text: open the PDF and read that section for the hours this chapter could not state, and check the date of the edition. Read: Section 5.2, operating hours; check the section number in your copy.

  3. DOC
    NIBSSPay NIBSS

    NIBSS's own description of its bulk payment portal and its use cases, salaries among them. Read it as a statement of what NIBSS offers: it gives no cut-off times in the search summary, so ask for those.

  4. DOC
    What is MultiPay? (NIBSS support article) NIBSS

    NIBSS's help page on its bulk-payment API with CSV schedules, described as processed instantly using NIP. Read it for the file format and how results are returned, and check the fees and limits, which the search summary did not show.

  5. DOC
    Guide to Charges by Banks, Other Financial and Non-Financial Institutions (effective 1 January 2020) Central Bank of Nigeria, 2020

    The CBN's schedule of charges. Read the sections on electronic transfers and bulk payments for the charge on each rail, and check whether a later edition replaced it; the search results did not show the tables, so this chapter states no charge.

  6. DOC
    Report on real-time gross settlement systems (CPSS) Committee on Payment and Settlement Systems (BIS), 1997

    The 1997 report that set out how RTGS systems are designed: liquidity, queuing and the message flow. Read the sections on liquidity and queuing for why a gross system needs funds for every payment and what a queue does; skip the country detail, which is thirty years old.

  7. POST
    Future of fintech and digital payments in Nigeria: CBN mandates the adoption of ISO 20022 messaging Chambers and Partners, 2025

    A law firm's summary of the CBN's August 2025 circular on ISO 20022. Read it for the scope and the dates the firm reports, and treat it as a summary: it is not the circular, and it does not say how the rule applies to bulk files or RTGS.

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: Fraud between banks: mule accounts, recalls and how fast money moves →