API Reference

Branches

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

List the branches this principal may see

Reading the list needs no capability: a user must be able to see the branches they are a member of in order to switch between them. The scope is the control here, not a gate — and it is applied in the service, not here.

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

Query parameters

Type
string
Filter by archetype: `restaurant`, `cloud_kitchen`, … Optional.
IncludeDeleted
boolean
Include tombstoned rows. Owner-only, and audited on the read.
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/branches" \
  -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/branches JWT API Key

Create a branch

Owner-only.

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

Request body

application/json
{
  "name": "string",
  "baseCurrencyCode": "string",
  "type": "string",
  "organizationId": "00000000-0000-0000-0000-000000000000",
  "regionId": "00000000-0000-0000-0000-000000000000",
  "legalEntityId": "00000000-0000-0000-0000-000000000000"
}
name
string
—
baseCurrencyCode
string
The <b>functional</b> currency — the one this branch keeps its books in. Every `…Base` money column on a branch-scoped row is denominated here, so changing it after the first posting is a migration, not a setting.
type
string
The branch archetype (SRS §3.8.2). It is the <b>branch-level feature gate</b>: cloud-kitchen and central-production modes are enabled by this and nothing else.
organizationId
string (uuid)
—
regionId
string (uuid)
—
legalEntityId
string (uuid)
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/branches" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "baseCurrencyCode": "string",
  "type": "string",
  "organizationId": "00000000-0000-0000-0000-000000000000",
  "regionId": "00000000-0000-0000-0000-000000000000",
  "legalEntityId": "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/branches/{id} JWT API Key

One branch

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

Update a branch

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

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "name": "string",
  "type": "string",
  "regionId": "00000000-0000-0000-0000-000000000000",
  "legalEntityId": "00000000-0000-0000-0000-000000000000"
}
name
string
—
type
string
—
regionId
string (uuid)
—
legalEntityId
string (uuid)
—

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/branches/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "type": "string",
  "regionId": "00000000-0000-0000-0000-000000000000",
  "legalEntityId": "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/branches/{id} JWT API Key

Retire a branch

A tombstone, never a `DELETE`, and the reason is mandatory — in the request, in the validator, and in a database CHECK.

Capability
manage_org
API key scope
cap:manage_org (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/branches/{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