Overview / Stock & supply / List stock items

List stock items

get https://api.flactrum.com/v1/stock-items

Balances, recipes and costs all live in the item's base_unit. unit is only what the screens prefer to show.

Required scope stock_items.read
Panel screenStock & supply → Stock items
Success status200
Returns A paginated list of StockItem objects

Parameters

NameInTypeDescription
category_id query string —
search query string Matches name or SKU.
page query integer Page number.
per_page query integer Page size. Values above the maximum are rejected rather than silently clamped.
active query boolean Filter by active flag. Omit to get both.
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

FieldTypeDescription
id string —
name string —
sku string|null —
category_id string|null —
unit string Preferred display unit.
base_unit string Everything — balances, recipes, costs — is stored in this unit.
default_cost number|null Cost per base unit. Coffee at 1200 TRY/kg is 1.2 on a gram-based item.
critical_level number|null Below this the item counts as critical.
is_active boolean —
purchase_units array —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X GET 'https://api.flactrum.com/v1/stock-items' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Accept: application/json'

HTTP 200 · application/json

{
    "data": [
        {
            "id": "01m43mzhxxfdpvt7qawqy5hdq0",
            "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,
            "purchase_units": [],
            "created_at": "2026-10-04T14:27:11+00:00",
            "updated_at": "2026-10-04T14:27:11+00:00"
        },
        {
            "id": "01m43mzhyf9w2t1ankf0bjcns2",
            "name": "Süt",
            "sku": null,
            "category_id": "01m43mzhy70xgv3t4cjbavkd3r",
            "unit": "litre",
            "base_unit": "mililitre",
            "default_cost": 0.04,
            "critical_level": 5000,
            "is_active": true,
            "purchase_units": [],
            "created_at": "2026-10-04T14:27:11+00:00",
            "updated_at": "2026-10-04T14:27:11+00:00"
        }
    ],
    "meta": {
        "total": 2,
        "page": 1,
        "per_page": 25,
        "last_page": 1
    }
}