Problem Statement: Money-Correct Workflow Over Unstructured Input
Frames T&E as a four-plane enterprise platform: capture, policy, workflow, and finance, not a CRUD form app.
Problem statement
Design a Travel & Expense (T&E) management platform that lets employees capture receipts, build expense reports covering flights, hotels, meals, ground transport, and client entertainment, automatically extracts merchant, date, amount, currency, and tax from receipt images, checks every item against company policy (per diems, category caps, receipt thresholds, booking windows), routes the report through manager and finance approvals, converts foreign currency using auditable exchange rates, and finally pushes approved totals to payroll or accounts payable for reimbursement.
The trap is treating this as a simple form-and-database app. Four properties make it a real systems problem. First, the input is unstructured and hostile: crumpled receipts photographed in bad light, in dozens of languages and currencies, with faded thermal ink. The extraction layer must be an asynchronous ML pipeline with confidence scores and human review fallback, never a synchronous call in the request path. Second, money correctness is non-negotiable: an expense total that disagrees with the sum of its items, a double-reimbursed receipt, or a conversion at the wrong day's rate is a financial control failure, not a UX bug. Third, approval routing depends on an organizational graph that changes constantly: people switch managers, cost centers split, delegates act for travelers, and amount thresholds escalate the chain. Fourth, the load is extremely bursty: a large share of monthly volume arrives in the last five business days before close.
Public operating baseline versus design assumptions
The category is operationally mature and worth anchoring with public, company-reported figures. Expensify reports roughly 11 million users and states it has processed over $100 billion in expenses, with its SmartScan OCR product extracting fields from receipt photos. SAP Concur reports tens of thousands of enterprise customers and has publicly described processing hundreds of millions of transactions per year across its network, with fraud screening (Concur Detect) running over the full report and receipt corpus. Ramp reports more than 25,000 corporate customers and markets card-transaction-to-receipt auto-matching as its core automation. Navan reports managing tens of billions of dollars in corporate travel and corporate card spend annually with travel booking and expense fused into one workflow. These are cited company figures that establish scale plausibility; every uncited number below is an explicit design assumption.
For capacity planning this answer assumes a mature multi-tenant deployment: 2,000 tenant companies, 500,000 active employees, 200,000 expense reports submitted per month containing about 1.6 million line items and 1.9 million receipt images, with a five-times burst during month-end close. Unless tied to a named company, a figure in this answer is an assumption, target, or budget.
The four architectural planes
- Capture plane: receipt upload, image normalization, OCR extraction, field validation, confidence scoring, and human-in-the-loop review.
- Policy plane: versioned per-tenant rule sets, per diem tables, category limits, receipt requirements, evaluation receipts, and policy exceptions.
- Workflow plane: report state machine, approver resolution over the org graph, delegation, escalation timers, and durable saga orchestration.
- Finance plane: multi-currency amounts, FX rate pinning, reimbursement batches, ERP and payroll integration, and the append-only audit ledger.
A strong answer keeps the planes separate. The workflow plane may degrade and slow down during close week; the finance plane must never lose a reimbursable fact; the capture plane must never block a draft save on OCR latency.
Key Highlights
- •Unstructured receipt input forces an async extraction pipeline with confidence scores, never synchronous OCR in the request path.
- •Money correctness: item totals, FX conversion dates, and reimbursement idempotency are financial control invariants.
- •Approval routing is a graph problem over a constantly changing org hierarchy with delegation and thresholds.
- •Load is bursty: assume 5x baseline during the last five business days before month-end close.
- •Four planes: capture, policy, workflow, finance. Workflow may slow; finance must never lose facts.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate capture, policy, workflow, and finance because each has different consistency and latency requirements."
- "Before choosing databases, let me define which decisions must be money-exact and which may be eventually consistent."