Design a Multi-Currency Host Payout Ledger
Last updated: November 29, 2026
Quick Overview
Design the system that records what Airbnb owes each host and releases payouts after check-in, across many currencies and payout methods (bank transfer, PayPal, prepaid cards). It must never pay twice, never lose money, and be auditable to the cent.
Airbnb
November 29, 20260
0
0 solved
Design the system that records what Airbnb owes each host and releases payouts after check-in, across many currencies and payout methods (bank transfer, PayPal, prepaid cards). It must never pay twice, never lose money, and be auditable to the cent.
Airbnb collects money from guests in one currency and pays hosts in another, usually about a day after check-in, and splits payouts among co-hosts. Senior system design rounds at Airbnb probe double-entry accounting, idempotent payment execution, and reconciliation with external providers.
What the Interviewer Expects
- Model money movement with an append-only double-entry ledger
- Separate the ledger (truth) from payout execution (side effects)
- Make payout execution idempotent with provider-level keys
- Handle FX: lock rates at booking or payout and record both amounts
- Reconcile against provider statements and surface breaks
- Address scale, sharding, and audit requirements
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 guest cancels after the host was paid. How does the ledger handle the clawback?
- How do you pay a reservation split 70/30 between a host and a co-host?
- The bank says a transfer failed three days later. What happens?
- How would you migrate from a mutable balance column to this ledger?
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 guest charges, fees, host earnings, adjustments, and refunds; release payouts T+1 day after check-in; support payout splits and many methods; show hosts an earnings history. Non-fun...
High-Level Design
Components:
- Ledger service: append-only
entries(entry_id, txn_id, account_id, amount_minor, currency, direction) where every transaction's debits equal its credits. Accounts include guest_rec...