Overview / Stock & supply / List asset counts

List asset counts

get https://api.flactrum.com/v1/asset-counts
Required scope assets.read
Panel screenStock & supply → Asset counts
Success status200
Returns A paginated list of AssetCount 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 —
note string|null —
started_at string|null —
completed_at string|null —
items array —

Examples

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

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

HTTP 200 · application/json

{
    "data": [
        {
            "id": "01m43mxj2y2pteqznnez63tgft",
            "code": "DSY-261004-6419",
            "branch_id": "01m43mxj27cc9zfs0merrpdxka",
            "status": "completed",
            "note": null,
            "started_at": "2026-10-04T14:26:06+00:00",
            "completed_at": "2026-10-04T14:26:06+00:00",
            "item_count": 2,
            "items": [
                {
                    "id": "01m43mxj39mgpeg7jxg65e1k57",
                    "asset_id": "01m43mxj2hgdy1bv1ggzkt09tt",
                    "expected_quantity": 20,
                    "counted_quantity": 20,
                    "difference": 0,
                    "reason": null
                },
                {
                    "id": "01m43mxj39mgpeg7jxg65e1k58",
                    "asset_id": "01m43mxj2je9zhpbbj81fdmvw8",
                    "expected_quantity": 40,
                    "counted_quantity": 37,
                    "difference": -3,
                    "reason": "Kırıldı"
                }
            ],
            "created_at": "2026-10-04T14:26:06+00:00",
            "updated_at": "2026-10-04T14:26:06+00:00"
        }
    ],
    "meta": {
        "total": 1,
        "page": 1,
        "per_page": 25,
        "last_page": 1
    }
}