Design a Payout Routing Service Across Local Payment Rails

Last updated: November 29, 2026

Quick Overview

Design the service that takes a business's payout request (amount, currency, beneficiary country and details) and chooses and executes the best route, such as a local rail through a partner bank or SWIFT, then tracks it to completion.

Airwallex
System Design
Software Engineer
Airwallex
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the service that takes a business's payout request (amount, currency, beneficiary country and details) and chooses and executes the best route, such as a local rail through a partner bank or SWIFT, then tracks it to completion.

Sending money to 150+ countries cheaply and fast is a core Airwallex capability, and it depends on routing over local clearing systems where available. The interviewer is checking how you model routes and partner constraints, keep payouts idempotent end to end, and handle asynchronous status from banks.

What the Interviewer Expects
  • Captures route constraints: currency, country, amount limits, cut-off times, beneficiary fields
  • Scores routes on cost, speed and reliability with a clear policy
  • Keeps a payout state machine with idempotent transitions
  • Integrates partners through adapters with their own retry semantics
  • Handles asynchronous confirmations, returns and rejections
  • Considers prefunding and liquidity per partner
Key Topics to Cover
Payment routing
State machines
Partner integrations
Idempotency
Liquidity
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 partner bank starts timing out. How do you fail over without paying twice?
  • How do you predict delivery time shown to the user before they confirm?
  • How do you add a new country's rail with minimal code change?
  • What happens when a payout is returned by the beneficiary bank a week later?
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: validate beneficiary details per country, quote fee and ETA, pick a route, submit, track status, notify via webhook, handle returns. Non-functional: never double-send, survive partner outa...

High-Level Design

Payout API (idempotency key) writes a payout record in CREATED and reserves funds in the ledger. A Router reads a route catalog: for each (currency, country, rail, partner) it stores limits, cut-off...


Submit Your Answer
Markdown supported

Related Questions