API Reference

Combos

5 endpoints· Auth: JWT or API Key
get/api/v1/console/combos JWT API Key

This branch's combos with their child sets

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

Query parameters

Active
boolean
—
IncludeDeleted
boolean
Include tombstoned combos. Gated on `edit_recipe` in the service.
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/combos" \
  -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/combos JWT API Key

Create a combo and its child set in one transaction.,

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",
  "sellingPrice": 0,
  "categoryId": "00000000-0000-0000-0000-000000000000",
  "children": [
    {
      "childProductId": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "options": []
    }
  ]
}
name
string
—
sellingPrice
integer (int64)
Minor units of the branch base currency, ≥ 0. What the customer pays for the bundle, independent of what it contains (FR-CAT-043).
categoryId
string (uuid)
The POS category, which must be one of `recipe` | `drink` | `extra` (FR-CAT-041). Null resolves to `recipe`, the documented default. <br>`batch_portion` is excluded on purpose: a batch category would make the combo itself draw a capacity pool, and a combo's draws come from its children.
children
ComboChildRequest[]
At least one. Replace-not-merge on update (FR-CAT-045).

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/combos" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "sellingPrice": 0,
  "categoryId": "00000000-0000-0000-0000-000000000000",
  "children": [
    {
      "childProductId": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "options": []
    }
  ]
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

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

One combo

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/combos/{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/combos/{id} JWT API Key

Replace a combo's price, its whole child set, or both

`PUT` rather than `PATCH` because supplying `children` is a replacement of the set and not a merge — the verb should say so. Omitting the field leaves the set alone, which is what makes the price-only update requires possible without resending a set the client may not have to hand.

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
{
  "sellingPrice": 0,
  "children": [
    {
      "childProductId": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "options": []
    }
  ],
  "active": false
}
sellingPrice
integer (int64)
Minor units, ≥ 0. Null leaves the price alone.
children
ComboChildRequest[]
The complete new child set, or null to leave the current one. An <b>empty list is not the same as null</b>: it is a request to leave the combo with no children, which FR-CAT-042 refuses.
active
boolean
Switch the combo on or off on the till. Null leaves the flag alone.

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/combos/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "sellingPrice": 0,
  "children": [
    {
      "childProductId": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "options": []
    }
  ],
  "active": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

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

Retire a combo

Never a hard delete on either branch: a combo with sale history is deactivated and stays resolvable for reporting, one that never sold is tombstoned together with its `ComboChild` rows. The response says which happened.

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/combos/{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