Overview /
Stock & supply /
Warehouse stock levels
Warehouse stock levels
get
https://api.flactrum.com/v1/warehouse-stock
| Required scope | warehouses.read |
| Panel screen | Stock & supply → Warehouse stock |
| Success status | 200 |
| Returns | A paginated list of StockLevel objects |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| warehouse_id | query | string | — |
| stock_item_id | query | string | — |
| critical | query | boolean | — |
| page | query | integer | Page number. |
| per_page | query | integer | Page size. Values above the maximum are rejected rather than silently clamped. |
| updated_since | query | string | Only records changed at or after this instant. Use it for incremental sync. |
| sort | query | string | Column to sort by. Each endpoint lists what it accepts. |
| direction | query | string | Sort direction. |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| stock_item_id | string | — |
| location | object | type is branch or warehouse, id is that record. |
| quantity | number | In the item's base unit. |
| average_cost | number | Weighted average cost per base unit. |
| total_value | number | — |
| critical_level | number | — |
| is_critical | boolean | At or below the critical level. Use it to trigger reordering. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X GET 'https://api.flactrum.com/v1/warehouse-stock?warehouse_id=01m43mzk7wcn9xm2q8hszmgf4k' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 200 · application/json
{
"data": [
{
"id": "01m43mzk87t30meb0chdw26ff8",
"stock_item_id": "01m43mzk7hzs8an7q0nzch259f",
"stock_item": {
"id": "01m43mzk7hzs8an7q0nzch259f",
"name": "Espresso çekirdeği",
"sku": "ESP-01",
"category_id": null,
"unit": "kilogram",
"base_unit": "gram",
"default_cost": 1.2,
"critical_level": 500,
"is_active": true,
"created_at": "2026-10-04T14:27:12+00:00",
"updated_at": "2026-10-04T14:27:12+00:00"
},
"location": {
"type": "warehouse",
"id": "01m43mzk7wcn9xm2q8hszmgf4k"
},
"quantity": 50000,
"average_cost": 1.2,
"total_value": 60000,
"critical_level": 500,
"is_critical": false,
"updated_at": "2026-10-04T14:27:12+00:00"
}
],
"meta": {
"total": 1,
"page": 1,
"per_page": 25,
"last_page": 1
}
}