Design Payment Ingestion and Posting for a Mortgage Servicing Platform
Last updated: November 29, 2026
Quick Overview
Design the system that receives borrower payments from ACH, card, lockbox check files and wires, posts them to loans through the servicing waterfall, handles returns and reversals, and produces a ledger that reconciles to the bank every day.
Valon
November 29, 20260
0
0 solved
Design the system that receives borrower payments from ACH, card, lockbox check files and wires, posts them to loans through the servicing waterfall, handles returns and reversals, and produces a ledger that reconciles to the bank every day.
Money movement is one of the pillars ValonOS combines with loan data and compliance logic, and a servicer moving millions of homeowners cannot lose, double post or mis-date a payment. The interviewer probes idempotency, double-entry ledgers, effective dating, return handling, and daily bank reconciliation.
What the Interviewer Expects
- Separate ingestion, posting and ledger concerns
- Make every payment idempotent with a stable external key
- Use a double-entry, append-only ledger
- Handle NSF returns and reversals days after posting
- Reconcile ledger cash against bank statements daily
- Respect effective dates and the cutoff for same-day credit
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you handle a lockbox file that is re-sent by the bank with a few changed rows?
- How would you support a borrower paying through a third-party bill pay service with no loan number?
- What happens when posting is down for an hour at month end?
- How do you remit collected funds to investors and prove it?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: accept payments from borrower portal (ACH and debit card via processors), recurring autopay drafts, bank lockbox files for checks, and wires; identify the loan; post through the waterfall;...
High-Level Design
- Ingestion adapters per channel normalize to a
PaymentReceivedrecord with source, external reference, amount in cents, received_at, and raw payload stored in object storage. - **Payment inta...