Overview /
Stock & supply /
List stock movements
List stock movements
get
https://api.flactrum.com/v1/stock-movements
Read-only. A movement is a by-product of whatever changed stock — a sale, a count, a receipt, an adjustment — so it is never written by hand.
| Required scope | stock.read |
| Panel screen | Stock & supply → Stock movements |
| Success status | 200 |
| Returns | A paginated list of StockMovement objects |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| stock_item_id | query | string | — |
| branch_id | query | string | — |
| warehouse_id | query | string | — |
| type | query | string | — |
| from | query | string | — |
| to | query | string | — |
| page | query | integer | Page number. |
| per_page | query | integer | Page size. Values above the maximum are rejected rather than silently clamped. |
| 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 | — |
| branch_id | string|null | — |
| warehouse_id | string|null | — |
| type | string | — |
| quantity | number | Negative means stock left. |
| waste_quantity | number | How much of this movement was loss, as a positive magnitude. On a waste movement it is the whole quantity; on a sale it is only the trim percentage built into the recipe. Zero means nothing was lost. |
| waste_reason | string|null | Set on hand-recorded waste only. Recipe trim has no reason: it is inherent to production. |
| waste_cost | number | waste_quantity valued at the movement's unit cost. |
| quantity_before | number|null | — |
| quantity_after | number|null | — |
| unit_cost | number|null | — |
| reference | object|null | The document that caused it: order, stock count, goods receipt… |
| note | string|null | — |
| expires_at | string|null | Expiry date of this batch: entered on the goods receipt line, carried along transfers. |
| photo_url | string|null | Evidence photo attached when the waste was recorded. |
| created_at | string | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X GET 'https://api.flactrum.com/v1/stock-movements' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 200 · application/json
{
"data": [
{
"id": "01m43mzjkhna7146kh9eh338p7",
"stock_item_id": "01m43mzjk48kbg3arnqqe1qwgg",
"stock_item": {
"id": "01m43mzjk48kbg3arnqqe1qwgg",
"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"
},
"branch_id": "01m43mzjjvcqjd0grnj20jhzpv",
"warehouse_id": null,
"type": "adjustment",
"quantity": 5000,
"waste_quantity": 0,
"waste_reason": null,
"waste_cost": 0,
"quantity_before": 0,
"quantity_after": 5000,
"unit_cost": 1.2,
"total_cost": 6000,
"reference": null,
"note": "Açılış stoğu",
"expires_at": null,
"photo_url": null,
"created_at": "2026-10-04T14:27:12+00:00"
}
],
"meta": {
"total": 1,
"page": 1,
"per_page": 25,
"last_page": 1
}
}