Get Resource Availability
GET /resources/availability
/resources/availabilityReturns what is free in a window, per resource type and variant: owned quantity (a row count for Serialized and Crew, summed quantity for Pooled and Expendable), confirmed draw, tentative draw, and available quantity, which is owned minus confirmed draw and may be negative. Tentative draw is shown, not subtracted. A temporary unit counts only when the whole window sits inside its availableFrom..availableUntil. incomingQuantity is what unconfirmed org orders' Pool lines will add over the window; it never counts as available, and a row can carry only incoming supply. overbookedQuantity is how many units more are confirmed than owned at the busiest moment in the window, never below zero; rented units count only inside their window. Availability is organization-only. from and to bound the window. Needs the resource inventory read permission.
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| from | date-time | Optional | |
| to | date-time | Optional |
Response
Type: GetResourceAvailabilityResponse[]
GetResourceAvailabilityResponse
| Field | Type | Description |
|---|---|---|
| resourceTypeId | uuid | |
| resourceTypeName | string| null | |
| trackingType | string| null | |
| resourceVariantId | uuid | |
| resourceVariantName | string| null | |
| ownedQuantity | number | |
| confirmedDraw | number | |
| tentativeDraw | number | |
| availableQuantity | number | |
| overbookedQuantity | number | |
| incomingQuantity | number |