---
title: "Stock-only availability pre-check for a charge line on the estimate (design §5 / §9.1): are the BillableItem's components on hand at the line's quantity? Read-only — no validate-pass, no stock movement. Mirrors the invoice-side check off the same `CheckAvailabilityAsync`, so the estimate UI can flag a short charge before the user opens the perform modal."
method: GET
path: "/Estimates/{id}/items/{lineId}/availability"
tags: ["Estimates"]
---

# Stock-only availability pre-check for a charge line on the estimate (design §5 / §9.1): are the BillableItem's components on hand at the line's quantity? Read-only — no validate-pass, no stock movement. Mirrors the invoice-side check off the same \`CheckAvailabilityAsync\`, so the estimate UI can flag a short charge before the user opens the perform modal.

`GET /Estimates/{id}/items/{lineId}/availability`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/Estimates/{id}/items/{lineId}/availability`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/Estimates/:id/items/:lineId/availability/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required
- `lineId` string, required

## Response `200`

OK

- BillableItemAvailabilityDto
  - `billableItemId` string
  - `quantity` union: The line quantity the required amounts were computed against.
    - number, double
    - string, double
  - `isAvailable` boolean: True only when every inventory component has enough stock.
  - `components` BillableItemComponentAvailabilityDto[]
    - `componentId` string
    - `inventoryItemId` string
    - `itemName` string
    - `trackLots` boolean: When false, stock is not gated and the component is always available.
    - `required` union: QuantityMultiplier × line quantity.
      - number, double
      - string, double
    - `available` union: Sum of active lots' QuantityOnHand for the component's item.
      - number, double
      - string, double
    - `isAvailable` boolean
    - `shortBy` union: How far short of decimal BillableItemComponentAvailabilityDto.Required stock is (0 when available or ungated).
      - number, double
      - string, double

## Other responses

- `400`: Bad Request
- `404`: Not Found

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
