List recipes
get
https://api.flactrum.com/v1/recipes
A recipe decides what a product costs. That cost is frozen onto each sale, and gross profit is calculated from it.
| Required scope | recipes.read |
| Panel screen | Menu & products → Recipes |
| Success status | 200 |
| Returns | A paginated list of Recipe objects |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| product_id | 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
| Field | Type | Description |
|---|---|---|
| id | string | — |
| product_id | string | — |
| name | string|null | — |
| waste_percent | number | Trim percentage applied to every line that does not set its own. Trim comes off stock AND goes into the cost: 200 ml at 5% deducts 210 ml and is costed at 210 ml. |
| cost | number|null | Cached unit cost of the product, recalculated on every write. Includes trim. |
| cost_calculated_at | string|null | — |
| items | array | quantity is always in the base unit (gram / millilitre / piece). entry_unit and entry_quantity keep whatever was typed in. gross_quantity is quantity with the trim added — what actually leaves stock. A line's waste_percent of null inherits the recipe's; zero is NOT the same as null and means "no trim on this line". |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X GET 'https://api.flactrum.com/v1/recipes' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 200 · application/json
{
"data": [
{
"id": "01m43sk6zt0ccqcg2h518ha92r",
"product_id": "01m43sk6z5vw6y1t2p03crrgke",
"name": null,
"waste_percent": 0,
"cost": 21.6,
"cost_calculated_at": "2026-10-04T15:47:49+00:00",
"items": [
{
"id": "01m43sk6zx2eqed70vrsytagv1",
"stock_item_id": "01m43sk6z81daw50c7y0c8vpcd",
"quantity": 18,
"entry_unit": "gram",
"entry_custom_unit_id": null,
"entry_quantity": 18,
"waste_percent": null,
"gross_quantity": 18
}
],
"created_at": "2026-10-04T15:47:49+00:00",
"updated_at": "2026-10-04T15:47:49+00:00"
}
],
"meta": {
"total": 1,
"page": 1,
"per_page": 25,
"last_page": 1
}
}