No. 47 · Payments & ledgers
Design a wire transfer API with a ledger
OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES
Further reading
Vetted reading covers part of the design or the underlying paper, not the whole problem. Links go to other sites; we credit and describe them rather than copy them.
No complete public walkthrough of a wire transfer API was found; the reading covers ledgers, idempotency and locking, and our worked approach combines them.
- Accounting for Developers, Part I: The Fundamentals
Explains accounts, debits and credits and keeping a ledger balanced, which is how a transfer should be recorded. Accounting concepts, not API design.
Link checked 2026-12-06
- Implementing Stripe-like Idempotency Keys in Postgres
Detailed design for idempotency keys in Postgres with atomic phases and recovery points, a direct fit for a retry-safe transfer endpoint. Long; written around a ride-charge example.
Link checked 2026-12-06
- Designing robust and predictable APIs with idempotency
Short case for idempotency keys and safe client retries on money-moving APIs. Conceptual; pair with the Postgres design above.
Link checked 2026-12-06
- Explicit Locking (PostgreSQL documentation)
Row locks, SELECT FOR UPDATE and deadlocks, the core of locking two accounts in a consistent order. Generic reference.
Link checked 2026-12-06
- Transaction Isolation (PostgreSQL documentation)
What each isolation level allows, and why serialization failures must be retried, when you argue for a transfer transaction. Reference text.
Link checked 2026-12-06
- Google | First (Phone) | Write a wiretransfer API
A candidate shares the phone-screen prompt with its BankAccount class (lock, unlock, balance) and the stated focus on concurrent transfers. Useful as the problem statement; no vetted answer.
Link checked 2026-12-06 (the site blocks automated checks; confirmed manually)
- Revolut | Backend engineer | London | Sep 2019 [Reject]
Describes a take-home to build a REST money-transfer API with tests, followed by questions on isolation and locking. Gives scope and follow-ups, not a solution.
Link checked 2026-12-06 (the site blocks automated checks; confirmed manually)
Report a bad or misleading link
Reference audit: 2 of 3 links from the audited catalog kept
- youtube.com/watch?v=olfaBgJrUBI&t=365s Off-target here: a merchant payment system via a PSP, not account-to-account transfers with locking. Kept under card-payments.
We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.
COMPANY EVIDENCE · NOT A FREQUENCY CLAIM
Where it has been reported
Candidate reports
- Candidate report Google
- Phone screen: design and implement a wire transfer API over a given BankAccount class with lock/unlock, focused on concurrent transactions. · posted 2022-03-29 · checked 2026-12-06
- Candidate report Revolut
Catalog tags (unverified)
Capital One
Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.
KEEP GOING
Related practice and guides
From our Learn guides
- Pattern Consistency and idempotency in practice
- Pattern Partitioning and ordering: choosing keys you can live with
- Pattern Reservations and contention: selling what you have, exactly once