---
issue: 043
title: "Frontend getDeliveryAttempts and getDeliveryStats call non-existent backend endpoints"
severity: major
domain: Delivery
labels: [missing-feature, frontend, major]
status: open
created: 2026-05-29
source: Doc vs Code Audit 2026-05-29
---

# 🟠 Frontend getDeliveryAttempts and getDeliveryStats call non-existent backend endpoints

**Severity:** major
**Domain:** Delivery
**Labels:** missing-feature, frontend, major

## Description

getDeliveryAttempts calls /delivery-code/attempts and getDeliveryStats calls /delivery/stats. Neither path is registered in backend. Delivery attempt data exists in deliveryInfo.deliveryAttempts[] but no HTTP route exposes it.

## Current Behavior

Both actions return 404. Any UI calling them silently fails.

## Expected Behavior

Either implement the backend routes or remove the frontend actions and any UI depending on them.

## Affected Files

- `frontend/src/actions/delivery.ts`

## References

- [Doc vs Code Audit Report](../09%20-%20Audits/Doc%20vs%20Code%20Audit%20Report%20-%202026-05-29.md)
