InterviewLegend

Design Installment Loan Repayments

Frequently asked
Alex Chen27 min readAdded 47 real interview reports

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.

The Affirm angle
Affirm's product is the installment loan, paid back over weeks or months and often by autopay. Autopay fires on due dates, so a busy due date piles into a single bank window. A repayment that silently fails or lands twice shows up in the user's own bank account, where they will notice it first.
The checkout side of Affirm, with the credit decision and a scheduler that assumes the bank is always reachable, is the Design a Payment System lesson. It also covers double-entry ledger basics, which this design builds on without repeating.

AffirmPremium lesson · System design round

The Affirm design, worked end to end.

  1. Requirements and scopeSystem design · Frequently asked
  2. The API and data model
  3. The design, drawn out1 diagram
  4. 6 deep divesWith the tradeoffs
Get the Affirm questions

$49 a year · all 107 companies · instant access

20,000+ candidate reports · guide updated

Affirm interview guide

Know what Affirm asks before you walk in.

23 coding · 4 system design · 13 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Affirm interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.