--- issue: 047 title: "Frontend cron management and per-id token sweep endpoints for derived-destinations are not in backend inventory" severity: major domain: Admin labels: [missing-feature, backend, major, admin] status: open created: 2026-05-29 source: Doc vs Code Audit 2026-05-29 --- # 🟠 Frontend cron management and per-id token sweep endpoints for derived-destinations are not in backend inventory **Severity:** major **Domain:** Admin **Labels:** missing-feature, backend, major, admin ## Description Frontend derived-destinations actions call GET /api/payment/derived-destinations/cron/status, POST /cron/start, POST /cron/stop, and POST /:id/sweep. Backend lists only the bulk sweep and /:id/sweep-native. The cron management and per-id token sweep may be unimplemented. The UI page calls getSweepCronStatus on mount. ## Current Behavior Opening /dashboard/admin/derived-destinations likely triggers 404 on cron status request on mount. ## Expected Behavior Backend should implement cron status, start, stop, and per-destination token sweep endpoints, or the frontend should be updated to match what is implemented. ## Affected Files - `frontend/src/actions/derived-destinations.ts` ## References - [Doc vs Code Audit Report](../09%20-%20Audits/Doc%20vs%20Code%20Audit%20Report%20-%202026-05-29.md)