Design the Ledger Behind Paying Brands Upfront on Net 60 Retailer Terms

Last updated: November 29, 2026

Quick Overview

Design the money movement system for a wholesale marketplace that pays brands soon after they ship, while retailers pay the marketplace up to 60 days later. It must track commissions, returns, refunds and retailer repayments accurately and support audits.

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

0

0

0 solved


Design the money movement system for a wholesale marketplace that pays brands soon after they ship, while retailers pay the marketplace up to 60 days later. It must track commissions, returns, refunds and retailer repayments accurately and support audits.

Because the marketplace sits between brand payouts and retailer payments, it effectively runs a receivables book, and every cent must reconcile. The interviewer looks for double-entry accounting, an immutable ledger, idempotent payment integrations, and clear handling of returns and defaults.

What the Interviewer Expects
  • Use an append-only double-entry ledger with balanced journal entries
  • Model accounts for brand payable, retailer receivable, commission revenue and cash
  • Drive postings from order lifecycle events idempotently
  • Separate ledger truth from payment processor state and reconcile daily
  • Handle returns, chargebacks and retailer default explicitly
  • Discuss multi-currency and reporting
Key Topics to Cover
double-entry ledger
idempotency
reconciliation
payouts
event sourcing
multi-currency
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
  • How do you correct a mistaken posting without editing history?
  • How would you compute a brand's available payout balance quickly at scale?
  • What changes when retailers can pay early for a discount?
  • How would finance close the books each month from this system?
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

Functional: on shipment, recognise what the retailer owes and what we owe the brand (order value minus commission); pay brands on a schedule; collect from retailers on due dates via card, ACH or invoi...

High-Level Design

Order service emits lifecycle events (shipped, delivered, returned, cancelled). A ledger service consumes them and writes journal entries; each entry has two or more lines whose debits equal credits. ...


Submit Your Answer
Markdown supported

Related Questions