Overview / Stock & supply / List stock counts

List stock counts

get https://api.flactrum.com/v1/stock-counts
Required scope stock_counts.read
Panel screenStock & supply → Stock counts
Success status200
Returns A paginated list of StockCount objects

Parameters

NameInTypeDescription
branch_id query string —
status query string —
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

FieldTypeDescription
id string —
code string —
branch_id string —
status string —
started_at string|null —
completed_at string|null —
items array theoretical_quantity, counted_quantity, difference, waste_quantity, reason.

Examples

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

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

HTTP 200 · application/json

{
    "data": [
        {
            "id": "01m43mzkdkbkwyhs2hr4p08xv1",
            "code": "SAY-261004-YNXQ",
            "branch_id": "01m43mzkcqydk36n7dykxw4f5d",
            "status": "in_progress",
            "note": null,
            "started_at": "2026-10-04T14:27:12+00:00",
            "completed_at": null,
            "item_count": 1,
            "items": [
                {
                    "id": "01m43mzkdyxsmvq9pg9qt0dhcs",
                    "stock_item_id": "01m43mzkd0x463k38957kyyf2t",
                    "theoretical_quantity": 1000,
                    "counted_quantity": null,
                    "difference": null,
                    "waste_quantity": 0,
                    "reason": null
                }
            ],
            "created_at": "2026-10-04T14:27:12+00:00",
            "updated_at": "2026-10-04T14:27:12+00:00"
        }
    ],
    "meta": {
        "total": 1,
        "page": 1,
        "per_page": 25,
        "last_page": 1
    }
}