Design Installment Loan Repayments
This prompt came up in an April 2026 Affirm onsite as a one-hour design round for a software engineer. An August 2026 candidate in Poland didn't name a prompt, but said the design round centered on ledger consistency, idempotency in payment flows and loan servicing. Those three topics are exactly where this problem lives. It isn't new. A 2024 onsite (July to September) included a loan payment system question next to an A/B test platform question. A 2023 phone screen focused on loan repayment and payment batching. In 2022, a senior loop with two design rounds asked for payments to a bank at any time, even though the bank is only open a few hours a day.
The bank's hours drive every other choice. Users pay at 2 a.m. on a Sunday, and autopay fires on due dates whether or not the bank is open. The bank, meanwhile, answers for sixty minutes and then goes dark. So the system has two halves running on different clocks: one that takes payments any time and promises nothing about money yet, and one that has a single hour to move a day's worth of it. Two rules from the prompt make it hard. A payment must never be debited twice, even though the app, the scheduler and the workers can all retry. And the payment's state must always match what was applied to the loan. A debit that succeeded but never reduced the balance is as bad as one that ran twice.
AffirmPremium lesson · System design round
The Affirm design, worked end to end.
- Requirements and scopeSystem design · Frequently asked
- The API and data model
- The design, drawn out1 diagram
- 6 deep divesWith the tradeoffs
$49 a year · all 107 companies · instant access
20,000+ candidate reports · guide updated
Affirm interview guideKnow what Affirm asks before you walk in.
23 coding · 4 system design · 13 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.