API Reference

Products

10 endpoints· Auth: JWT or API Key
get/api/v1/console/products JWT API Key

List this branch's menu items

Reading the menu needs no catalog capability — a cashier has to see the tiles they are about to ring. The scope is the control, and it is applied in the service.

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Query parameters

CategoryId
string (uuid)
Restrict to one `product_category` row. Optional.
Active
boolean
Filter on the till flag. Null returns both — the menu grid shows deactivated items, the POS asks for `true`. <b>Not</b> the same question as retirement (FR-CAT-094).
Is86
boolean
Filter on the temporarily-unavailable flag (FR-CAT-019). Null returns both.
IncludeDeleted
boolean
Include tombstoned items. Gated on `edit_recipe` in the service: a retired dish is a mistake somebody wanted hidden, and defaulting it on would put it back in every picker.
Page
integer (int32)
—
PerPage
integer (int32)
—
Search
string
Free-text filter. Its meaning is per-resource and documented on the endpoint.
Skip
integer (int32)
Rows to skip, derived — never sent by the caller on this surface.
Sort
string
A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order.
Dir
string
`asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/products" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/products JWT API Key

Create a menu item, or update the one already carrying this `externalId`

The API scope `write:catalog` maps to `edit_recipe`, so an API credential can never do more here than an Owner could. Effective permission is scope AND capability.

Capability
edit_recipe
API key scope
cap:edit_recipe (the key's owner must also hold the capability)
Public scope
write:catalog

Request body

application/json
{
  "name": "string",
  "nameAr": "string",
  "categoryId": "00000000-0000-0000-0000-000000000000",
  "sellingPrice": 0,
  "externalId": "string",
  "capacityType": "string",
  "capacityUnits": 0,
  "riceRole": "string",
  "directRiceG": 0,
  "brandId": "00000000-0000-0000-0000-000000000000"
}
name
string
—
nameAr
string
The Arabic name; blank means the till shows Panoptes.Application.DTOs.Requests.Catalog.CreateProductRequest.Name.
categoryId
string (uuid)
A live `product_category` row of this branch (FR-CAT-002).
sellingPrice
integer (int64)
Minor units of the branch base currency. Whole, non-negative.
externalId
string
The POS/aggregator key. When supplied it is the <b>idempotency key</b> for a menu re-import: a second create under the same id updates the existing row instead of inserting (FR-CAT-007).
capacityType
string
Batch-portion pool this item draws from. Ignored for every other category (FR-CAT-010).
capacityUnits
integer (int32)
Pool units consumed per sold unit. Forced to 1 outside `batch_portion`.
riceRole
string
`none` | `meal` | `direct`. Forced to `none` outside `batch_portion`.
directRiceG
integer (int32)
Grams drawn from reserved rice per unit. Meaningful only when `riceRole = direct`.
brandId
string (uuid)
Additive cloud-kitchen classification; no behavioural change when unset (FR-CAT-093).

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/products" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "nameAr": "string",
  "categoryId": "00000000-0000-0000-0000-000000000000",
  "sellingPrice": 0,
  "externalId": "string",
  "capacityType": "string",
  "capacityUnits": 0,
  "riceRole": "string",
  "directRiceG": 0,
  "brandId": "00000000-0000-0000-0000-000000000000"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/products/{id} JWT API Key

One menu item

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/products/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
put/api/v1/console/products/{id} JWT API Key

Change the price, the cached recipe cost and the till flag

The attribute admits either capability on purpose, so an Administrator reaches the service and receives the `FORBIDDEN` that names the approval path. Gating on `edit_price` alone would return a bare 403 that reads as a broken permission rather than as "this change goes through approval".

Capability
edit_recipe
API key scope
cap:edit_recipe (the key's owner must also hold the capability)
Public scope
write:catalog

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "name": "string",
  "nameAr": "string",
  "categoryId": "00000000-0000-0000-0000-000000000000",
  "brandId": "00000000-0000-0000-0000-000000000000",
  "externalId": "string",
  "capacityType": "string",
  "capacityUnits": 0,
  "riceRole": "string",
  "directRiceG": 0,
  "kdsStationId": "00000000-0000-0000-0000-000000000000"
}
name
string
—
nameAr
string
The Arabic name; blank clears it (the till then shows Panoptes.Application.DTOs.Requests.Catalog.UpdateProductRequest.Name).
categoryId
string (uuid)
A live `product_category` row of this branch (FR-CAT-002).
brandId
string (uuid)
—
externalId
string
The POS/aggregator key (FR-CAT-007). Blank clears it.
capacityType
string
Batch-portion pool. Neutralised outside `batch_portion` (FR-CAT-010).
capacityUnits
integer (int32)
—
riceRole
string
—
directRiceG
integer (int32)
—
kdsStationId
string (uuid)
Explicit KDS station; null routes the item by its category. Changing it needs a KDS manage role (owner, admin) — the kitchen's separation of duties (SRS §5.5.10).

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/products/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "nameAr": "string",
  "categoryId": "00000000-0000-0000-0000-000000000000",
  "brandId": "00000000-0000-0000-0000-000000000000",
  "externalId": "string",
  "capacityType": "string",
  "capacityUnits": 0,
  "riceRole": "string",
  "directRiceG": 0,
  "kdsStationId": "00000000-0000-0000-0000-000000000000"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/products/{id} JWT API Key

Retire a menu item

A tombstone, never a `DELETE`, never a synonym for `active = false`, and the reason is mandatory — in the request, in the validator, and in a database CHECK.

Capability
edit_recipe
API key scope
cap:edit_recipe (the key's owner must also hold the capability)

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/products/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
patch/api/v1/console/products/{id}/availability JWT API Key

Toggle the 86 flag.,

Capability
edit_recipe
API key scope
cap:edit_recipe (the key's owner must also hold the capability)
Public scope
write:catalog

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "is86": false
}
is86
boolean
True = 86'd (off the menu until further notice).

Responses

200Success
cURL
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/products/{id}/availability" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "is86": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
patch/api/v1/console/products/{id}/price JWT API Key

Update price

Capability (any)
edit_priceorrequest_change
API key scope
cap:edit_priceorcap:request_change (the key's owner must also hold the capability)

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "sellingPrice": 0,
  "unitCost": 0,
  "active": false
}
sellingPrice
integer (int64)
Minor units of the branch base currency. Whole, non-negative.
unitCost
number (double)
The cached recipe cost, `numeric(18,4)`. Null leaves it alone. Supplying it on a `batch_portion` item is refused (FR-CAT-014) — that cost is allocated by the production yield engine, and a hand-edit would be silently overwritten by the next batch close.
active
boolean
Take the item off the till, or put it back. Null leaves it alone.

Responses

200Success
cURL
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/products/{id}/price" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "sellingPrice": 0,
  "unitCost": 0,
  "active": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/products/{id}/recipe JWT API Key

The item's ingredient edges and the cost they imply.,

The lines take `?sort=&dir=` (`RecipeLineSort`).

The parameter is deliberately NOT named `sort`: the binder would then read the query key `sort` as the model's prefix and look for `sort.Sort`, binding nothing.

Capability (any)
view_profitoredit_recipe
API key scope
cap:view_profitorcap:edit_recipe (the key's owner must also hold the capability)

Path parameters

idrequired
string (uuid)
—

Query parameters

Sort
string
A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order.
Dir
string
`asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/products/{id}/recipe" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Query parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/products/{id}/recipe/ingredients JWT API Key

Attach an ingredient edge and recache the unit cost.,

Capability
edit_recipe
API key scope
cap:edit_recipe (the key's owner must also hold the capability)
Public scope
write:catalog

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "inventoryItemId": "00000000-0000-0000-0000-000000000000",
  "qtyPerParentUnit": 0,
  "yieldFactor": 0
}
inventoryItemId
string (uuid)
—
qtyPerParentUnit
number (double)
Stock units of the child consumed per one unit of the product. Strictly positive.
yieldFactor
integer (int32)
The edge's yield in basis points, 10000 = 100 % (FR-CAT-104, FR-CST-002, FR-CST-091). The stated portion is divided by it when the dish is sold and costed: 0.1 kg at 8000 draws 0.125 kg. A value above 10000 is a gain (dry rice that cooks to 280 % is 28000). Null takes the item's own trim yield (`InventoryItem.yieldFactor`, 100 % unless set) — frozen onto the edge either way.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/products/{id}/recipe/ingredients" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "inventoryItemId": "00000000-0000-0000-0000-000000000000",
  "qtyPerParentUnit": 0,
  "yieldFactor": 0
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/products/{id}/recipe/ingredients/{bomLineId} JWT API Key

Tombstone an ingredient edge and recache the unit cost.,

Capability
edit_recipe
API key scope
cap:edit_recipe (the key's owner must also hold the capability)
Public scope
write:catalog

Path parameters

idrequired
string (uuid)
—
bomLineIdrequired
string (uuid)
—

Responses

200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/products/{id}/recipe/ingredients/{bomLineId}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu