Code RoomChargeback dispute handling
HardPrep Room Coding #3251

Chargeback dispute handling

System designDistributed systemsSenior–Staff~50 min

Design the chargeback/dispute handling system for a payment processor. Card networks send dispute events (chargeback initiated, evidence-due, representment outcome, second presentment, arbitration) via async files/webhooks with strict deadlines. When a chargeback hits, funds must be debited from the merchant immediately (or from their reserve), evidence collected, and the outcome posted back to the ledger — possibly reversing the debit if the merchant wins. ~50K disputes/day. Describe the state machine, the money movement, and how you keep ledger and dispute state consistent.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:30 left
Estimate5:30 planned
Design16:30 planned
Deep dive13:30 planned
Failure9:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.