Overview /
Stock & supply /
List stock item categories
List stock item categories
get
https://api.flactrum.com/v1/stock-item-categories
| Required scope | stock_items.read |
| Panel screen | Stock & supply → Stock item categories |
| Success status | 200 |
| Returns | A paginated list of StockItemCategory objects |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| search | query | string | — |
| parent_id | query | string | Only the direct children of this category. |
| 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 | — |
| name | string | — |
| slug | string|null | — |
| parent_id | string|null | Parent category; null for a root category. |
| stock_item_count | integer | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X GET 'https://api.flactrum.com/v1/stock-item-categories' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 200 · application/json
{
"data": [
{
"id": "01m43mzhy70xgv3t4cjbavkd3r",
"name": "Kahve",
"slug": "kahve",
"parent_id": null,
"stock_item_count": 1,
"created_at": "2026-10-04T14:27:11+00:00",
"updated_at": "2026-10-04T14:27:11+00:00"
}
],
"meta": {
"total": 1,
"page": 1,
"per_page": 25,
"last_page": 1
}
}