Overview /
Stock & supply /
List recorded waste
List recorded waste
get
https://api.flactrum.com/v1/stock-wastes
Waste recorded by hand, newest first. Recipe trim is NOT listed here — it has no record of its own; read it from waste_quantity on the sale's own movement.
| Required scope | stock.read |
| Panel screen | Stock & supply → Waste and trim |
| Success status | 200 |
| Returns | A paginated list of StockMovement objects |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| branch_id | query | string | — |
| stock_item_id | query | string | — |
| reason | 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-wastes' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 200 · application/json
{
"data": [
{
"id": "01m43mzp01c07r0b8z0sq8z67w",
"stock_item_id": "01m43mznzkk20a0y2xdks1t5cz",
"stock_item": {
"id": "01m43mznzkk20a0y2xdks1t5cz",
"name": "Domates",
"sku": null,
"category_id": null,
"unit": "kilogram",
"base_unit": "gram",
"default_cost": 0.04,
"critical_level": 0,
"is_active": true,
"created_at": "2026-10-04T14:27:15+00:00",
"updated_at": "2026-10-04T14:27:15+00:00"
},
"branch_id": "01m43mznzapcyn0jtz04tmhtyw",
"warehouse_id": null,
"type": "waste",
"quantity": -500,
"waste_quantity": 500,
"waste_reason": "breakage",
"waste_cost": 20,
"quantity_before": 5000,
"quantity_after": 4500,
"unit_cost": 0.04,
"total_cost": 20,
"reference": null,
"note": "Kırılma, dökülme",
"expires_at": null,
"photo_url": null,
"created_at": "2026-10-04T14:27:15+00:00"
}
],
"meta": {
"total": 1,
"page": 1,
"per_page": 25,
"last_page": 1
}
}