Design a Seller Payouts Ledger for Managed Payments
Last updated: November 29, 2026
Quick Overview
Design the system that records every buyer payment, fee, refund and hold for eBay sellers in a double-entry ledger and pays out each seller's available balance to their bank on a schedule.
eBay
November 29, 20260
0
0 solved
Design the system that records every buyer payment, fee, refund and hold for eBay sellers in a double-entry ledger and pays out each seller's available balance to their bank on a schedule.
Since eBay moved to managed payments, it collects buyer funds itself and pays sellers after deducting final value fees, ad fees and holds. The interviewer looks for double-entry bookkeeping, idempotency end to end, reconciliation with banks and payment processors, and a clear story for money that is held or disputed.
What the Interviewer Expects
- Model money movements as immutable double-entry journal lines
- Make every write idempotent with business keys
- Separate pending, held and available balances
- Run payouts as a batch with a state machine and bank reconciliation
- Explain audit, correction by reversal and multi-currency
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
- A payout file was sent to the bank twice. How do you detect and recover?
- How do you compute a seller's available balance quickly with billions of entries?
- A buyer files a chargeback after the seller was already paid. What entries are written?
- How do you support payouts in 20 currencies?
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: record order payments, eBay fees, refunds, chargebacks and reserve holds; show sellers a balance and transaction history; pay out available funds daily or weekly; export reports. Non-funct...
High-Level Design
Upstream events (order paid, refund issued, fee assessed, dispute opened) arrive on a durable event bus. A posting service turns each event into a balanced journal entry, for example order paid: d...