---
title: "Stock Units"
method: GET
path: "/api/inventory/units"
tags: ["inventory"]
---

# Stock Units

`GET /api/inventory/units`

## Request

- Base URL: `https://api.electricair.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.electricair.io/api/inventory/units`
- Auth: none declared

## Query parameters

- `status` string, nullable
- `product_id` integer, nullable
- `q` string
- `job_id` integer, nullable
- `location_id` integer, nullable

## Response `200`

OK

- StockUnitSchema[]
  - `id` integer, required
  - `product_id` integer, required
  - `product_name` string, required
  - `serial_number` string, required
  - `status` string, required
  - `status_label` string, required
  - `location` LocationRefSchema
    - `id` integer, required
    - `code` string, required
    - `name` string, required
    - `path` string, required
    - `kind` string, required
  - `unit_cost` number, nullable
  - `cost_source` string
  - `received_on` string, date, nullable
  - `receipt_reference` string
  - `supplier` string
  - `job` UnitJobSchema
    - `id` integer, required
    - `number` string, required
    - `customer_name` string, required
  - `installed_at` string, date-time, nullable
  - `packed_at` string, date-time, nullable
  - `disposition_reference` string, required
  - `notes` string, required

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-10-31** `1b3bacde7088`: 1 info
  - added the optional property `items/cost_source` to the response with the `200` status
- **2026-10-28** `558d42db3b2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/changes/api/inventory/units/get.md)

---

[API](https://skmtc.dev/electricair/apis/electric-air-autoquote-api.md) - [All operations](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/revisions/a13d832a5676?raw)
