---
title: "Get Order History"
method: GET
path: "/api/v1/materials/history"
tags: ["v1", "Materials"]
---

# Get Order History

`GET /api/v1/materials/history`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/materials/history`
- Auth: none declared

Order history for the Add Item panel.

Returns real (non-misc) items this shop has already bought (qs_state IN
('po', 'purch')). When project_id is provided, results are scoped to that
project's lists only. When list_id is provided and the list has a
group_name, results are pre-sorted to surface same-group items first.

``q`` matches PER TOKEN: every whitespace-separated word must appear
somewhere in part_number, description, nickname or selected_vendor, in any
order. ``limit`` is a page size over the MATCHING rows, not a window over
the most recent ones (JEEVY-1608).

Shop scoping is server-injected — the LLM/frontend cannot pass shop_id.
There is no super-user bypass: ``_caller_shop_filter`` returns the session
shop for platform admins too, and raises 403 when there is none.

## Query parameters

- `q` string, nullable
- `listId` integer, nullable
- `projectId` integer, nullable
- `limit` integer

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
