---
title: "GET sale item availability across nearby branches"
method: GET
path: "/orders/sale-items/distance"
tags: ["Order Sale Item Availability"]
---

# GET sale item availability across nearby branches

`GET /orders/sale-items/distance`

## 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/distance`
- Auth: HTTP bearer

Get availability for sale item across nearby branches based on distance from a given branch.

## Query parameters

- `part_id` integer, required
- `branch_id` integer, required
- `distance` integer

## Response `200`

- SaleItemAvailabilityByDistanceResponse[]
  - `branch` SaleItemBranchDto
    - `id` integer
    - `name` string
    - `phone_number` string
  - `distance` number, float
  - `part_id` integer, required
  - `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_available_quantity` 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 – sale items 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/distance/get.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)
