---
issue: 041
title: "Frontend searchPurchaseRequests calls /marketplace/purchase-requests/search which does not exist in backend"
severity: major
domain: Purchase Request
labels: [bug, frontend, major, broken-feature]
status: open
created: 2026-05-29
source: Doc vs Code Audit 2026-05-29
---

# 🟠 Frontend searchPurchaseRequests calls /marketplace/purchase-requests/search which does not exist in backend

**Severity:** major
**Domain:** Purchase Request
**Labels:** bug, frontend, major, broken-feature

## Description

Frontend defines searchPurchaseRequests pointing to /marketplace/purchase-requests/search. No /search sub-path is registered in backend. Search/filter should be handled via query parameters on the list endpoint GET /purchase-requests.

## Current Behavior

Calling searchPurchaseRequests produces a 404.

## Expected Behavior

searchPurchaseRequests should use GET /marketplace/purchase-requests with filter query parameters instead of a /search sub-path.

## Affected Files

- `frontend/src/actions/marketplace.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)
