---
title: "GET ancillary inventory search"
method: GET
path: "/admin/rentals/ancillary-search"
tags: ["Rentals"]
---

# GET ancillary inventory search

`GET /admin/rentals/ancillary-search`

## Request

- Base URL: `https://api.equipmentshare.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.equipmentshare.com/admin/rentals/ancillary-search`
- Auth: HTTP bearer

Full-text, relevance-ranked, paginated search across bulk parts and equipment classes in the products-v2 index. Bulk-part hits are enriched with the requested branch's availability and equipment-class hits with the branch Ready-to-Rent asset count. Omitting `q` returns browse mode (all items, filtered).

## Query parameters

- `per_page` integer
- `q` string, nullable
- `inventory_type` 'part' | 'equipment_class' | 'both'
- `branch_id` integer, required
- `page` integer

## Response `200`

- AncillarySearchResponse
  - `page` integer
  - `per_page` integer
  - `results` AncillarySearchResult[]
    - `available_quantity` integer, nullable
    - `cat_class` string, nullable
    - `cost` number, float, nullable
    - `description` string, nullable
    - `equipment_class_id` integer, nullable
    - `id` integer
    - `manufacturer_name` string, nullable
    - `msrp` number, float, nullable
    - `name` string, nullable
    - `part_id` integer, nullable
    - `part_number` string, nullable
    - `product_class_id` integer, nullable
    - `quantity` integer, nullable
    - `ready_to_rent_count` integer, nullable
    - `rentable` boolean, nullable
    - `result_type` string
    - `score` number, float, nullable
    - `store_id` integer, nullable
    - `total` integer, nullable
  - `total` integer

## Other responses

- `400`: Bad request - missing branch_id or malformed page/per_page/inventory_type.
- `401`: Unauthorized - valid Bearer token required.
- `422`: Unprocessable - requested page is beyond the maximum result window.

---

[API](https://skmtc.dev/equipmentshare/apis/es-api.md) - [All operations](https://skmtc.dev/equipmentshare/apis/es-api/llms.txt) - [OpenAPI document](https://skmtc.dev/equipmentshare/apis/es-api/revisions/40651e1558ac?raw)
