--- issue: 038 title: "Multiple frontend payment stub actions call non-existent backend endpoints: /payment/history, /payment/methods, /payment/validate, /payment/transactions, /payment/escrow/balance" severity: major domain: Payment labels: [missing-feature, major, frontend, payment] status: open created: 2026-05-29 source: Doc vs Code Audit 2026-05-29 --- # 🟠 Multiple frontend payment stub actions call non-existent backend endpoints: /payment/history, /payment/methods, /payment/validate, /payment/transactions, /payment/escrow/balance **Severity:** major **Domain:** Payment **Labels:** missing-feature, major, frontend, payment ## Description Frontend defines getPaymentHistory, getPaymentMethods, validatePayment, getTransactionHistory, getEscrowBalance — all calling endpoints that have no backend implementation. Any dashboard widget invoking these actions will receive 404 and silently fail or show empty state. ## Current Behavior All five actions return 404 when called. ## Expected Behavior Either implement backend routes for these endpoints or remove the stub actions. At minimum, verify no production UI calls them. ## Affected Files - `frontend/src/actions/payment.ts` - `frontend/src/lib/axios.ts` ## References - [Doc vs Code Audit Report](../09%20-%20Audits/Doc%20vs%20Code%20Audit%20Report%20-%202026-05-29.md)