---
title: "Get detailed inventory availability for sale item(s) at a given branch"
method: POST
path: "/orders/sale-items/inventory-details"
tags: ["Order Sale Item Availability"]
---

# Get detailed inventory availability for sale item(s) at a given branch

`POST /orders/sale-items/inventory-details`

## 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/orders/sale-items/inventory-details`
- Auth: HTTP bearer

Get the owned, allocated and available quantities for sale item(s) at a given branch's default inventory location - the only location sale items reserve from - along with the open reservations holding the allocation and any incoming purchase orders there. Reservations are returned for every holder - orders, work orders and invoices - so the caller can identify its own. `store_inventory` lists every store at the branch.

## Request body

- SaleItemInventoryDetailsRequest
  - `branch_id` integer, required
  - `part_ids` integer[], required

## Response `200`

- SaleItemInventoryDetailsResponse[]
  - `branch` SaleItemBranchDto
    - `id` integer
    - `name` string
    - `phone_number` string
  - `open_reservations` SaleItemOpenReservationDto[]
    - `quantity` integer
    - `reservation_id` integer, nullable
    - `store_id` integer, nullable
    - `target_id` integer, nullable
    - `target_type` string, nullable
  - `part_id` integer, required
  - `parts_ordered_details` SaleItemPartsOrderedDetailDto[]
    - `purchase_order_number` string, nullable
    - `quantity_ordered` integer
    - `target_id` integer, nullable
    - `target_type` string, nullable
  - `store_inventory` SaleItemAvailabilityForStoreDto[]
    - `available_quantity` integer
    - `bin_location` string, nullable
    - `default_location` boolean, nullable
    - `store_id` integer
    - `store_name` string, nullable
    - `store_part_id` integer, required
  - `total_allocated` integer
  - `total_available` integer
  - `total_on_order` integer
  - `total_on_rent` integer
  - `total_owned` integer

## Other responses

- `400`: Bad request – validation failed or malformed data.
- `401`: Unauthorized – valid Bearer token required.
- `403`: Forbidden – insufficient permissions to perform this action.
- `404`: Not Found – branch not found.

## Changes

- **2026-12-01** `40651e1558ac`: 1 info
  - added the media type `application/json` for the response with the status `200`
- **2026-12-01** `e598b74c6170`: 1 breaking
  - removed the media type `application/json` for the response with the status `200`
- **2026-11-30** `beba24fafb51`: 1 info
  - added the media type `application/json` for the response with the status `200`
- **2026-11-30** `c20ff16a0438`: 1 breaking
  - removed the media type `application/json` for the response with the status `200`
- **2026-11-30** `f6ee63f54e57`: 1 info
  - added the media type `application/json` for the response with the status `200`

[Operation history](https://skmtc.dev/equipmentshare/apis/es-api/changes/orders/sale-items/inventory-details/post.md)

---

[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)
