Design Payment Reconciliation Between the Ledger and External Processors
Last updated: November 29, 2026
Quick Overview
Design the daily job that reconciles Meta's internal payment records against settlement files from card processors and banks, flagging missing, duplicated, or mismatched transactions.
Meta
November 29, 20260
0
0 solved
Design the daily job that reconciles Meta's internal payment records against settlement files from card processors and banks, flagging missing, duplicated, or mismatched transactions.
Every payments team at Meta, from ads billing to Shops, reconciles against processors. It is a gentle design question that tests matching logic, timing windows, and an exceptions workflow that finance trusts.
What the Interviewer Expects
- Ingest and normalize processor settlement files
- Match on reference IDs, then amount and currency
- Handle timing differences across cutoff windows
- Classify breaks and route exceptions
- Report totals and aging
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
- How do you match when the processor batches several of your charges into one line?
- What if a file arrives late or twice?
- How do you handle partial refunds?
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: each day compare internal charge, refund, and chargeback records with each processor's settlement report; produce matched, unmatched, and mismatched sets; summary totals for finance.
...
High-Level Design
- Ingest: fetch processor files (SFTP or API), store raw immutably, parse into a normalized table
(processor, ref_id, type, amount, currency, settle_date). File checksums dedupe repeated delive...