Question bank

No. 47 · Payments & ledgers

Design a wire transfer API with a ledger

Expert50 minAPI design · Idempotency · Transactions · Concurrency control · Data modeling · Consistency models · Message queues

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Partial 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.

  1. Accounting for Developers, Part I: The Fundamentals

    Modern TreasuryArticleBackgroundFreeVetted

    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

  2. Implementing Stripe-like Idempotency Keys in Postgres

    brandur.org · Brandur LeachArticlePartialFreeVetted

    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

  3. Designing robust and predictable APIs with idempotency

    Stripe Blog · Brandur LeachEngineering blogBackgroundFreeVetted

    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

  4. Explicit Locking (PostgreSQL documentation)

    PostgreSQLDocsBackgroundFreeVetted

    Row locks, SELECT FOR UPDATE and deadlocks, the core of locking two accounts in a consistent order. Generic reference.

    Link checked 2026-12-06

  5. Transaction Isolation (PostgreSQL documentation)

    PostgreSQLDocsBackgroundFreeVetted

    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

  6. Google | First (Phone) | Write a wiretransfer API

    LeetCode DiscussDiscussionInterview reportFreeVetted

    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)

  7. Revolut | Backend engineer | London | Sep 2019 [Reject]

    LeetCode DiscussDiscussionInterview reportFreeVetted

    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

Catalog tags (unverified)

Capital One

Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.

Report or add attribution evidence · How we label evidence

KEEP GOING

From our Learn guides

Related questions