Design Seller Payout Ledger With Holds And Refunds

Last updated: November 29, 2026

Quick Overview

Design the money system that records every sale, fee, refund, and shipping charge for Whatnot sellers, holds funds until delivery or a dispute window passes, and pays sellers out on a schedule without ever losing or double-paying money.

Whatnot
System Design
Software Engineer
Whatnot
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the money system that records every sale, fee, refund, and shipping charge for Whatnot sellers, holds funds until delivery or a dispute window passes, and pays sellers out on a schedule without ever losing or double-paying money.

Whatnot sellers range from hobbyists to full-time businesses, and they judge the platform heavily on payout accuracy and speed. Interviewers expect a double-entry ledger, idempotent writes, and a clear story for reconciliation with the payment processor.

What the Interviewer Expects
  • Use an append-only double-entry ledger
  • Make every money movement idempotent with a business key
  • Model holds as balance states rather than mutating amounts
  • Batch payouts with a state machine and external idempotency keys
  • Reconcile daily against processor reports
  • Explain how refunds after payout are handled
Key Topics to Cover
payments and ledgers
double-entry accounting
idempotency
reconciliation
state machines
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • A buyer disputes a charge after the seller was paid. What entries do you write?
  • How would you show a seller an accurate available balance in real time?
  • How do you migrate fee rules without rewriting history?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Record charges, platform fees, processing fees, shipping labels, refunds, chargebacks, and payouts. Funds become available after delivery confirmation or a fixed window. Weekly or instant payouts. Bal...

High-Level Design

Upstream services (orders, shipping, disputes) emit events. A ledger service turns each event into a balanced journal entry: a set of postings across accounts such as buyer_clearing, `seller_pen...


Submit Your Answer
Markdown supported

Related Questions