API Reference

Branch Groups

6 endpoints· Auth: JWT or API Key
get/api/v1/console/branch-groups JWT API Key

The groups of the organisations this principal can see, each with its visible members.,

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

Query parameters

Kind
string
Filter by `geo`, `concept`, `tax` or `custom`. Optional.
IncludeDeleted
boolean
—
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/branch-groups" \
  -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/branch-groups JWT API Key

Create a group under the caller's own organisation

An unrecognised `kind` is rejected. coerced it to `custom` in silence; that hides a client bug indefinitely and files the group under a kind the operator did not choose, where the `kind` filter will never show it to them.

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

Request body

application/json
{
  "name": "string",
  "nameAr": "string",
  "kind": "string",
  "priceTierPct": 0
}
name
string
—
nameAr
string
—
kind
string
`geo` | `concept` | `tax` | `custom`. FR-TEN-030 coerces anything else to `custom`<i>silently</i>; Panoptes rejects it at the validator instead. Silent coercion on a typed vocabulary hides a client bug and leaves the operator looking at a group filed under a kind they did not choose.
priceTierPct
integer (int32)
An optional regional price tier in <b>basis points</b>; null means "inherit the base price" (FR-TEN-013). It is stored and read back and is <b>read by no pricing path</b> — §5.1.11 limitation 5 records that as a deliberate constraint of the reference, and this build does not quietly start honouring it, because a tier that begins applying itself the day a column gains a reader is a price change nobody authorised.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/branch-groups" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "nameAr": "string",
  "kind": "string",
  "priceTierPct": 0
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

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

Rename or retune a group.,

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",
  "nameAr": "string",
  "kind": "string",
  "priceTierPct": 0
}
name
string
—
nameAr
string
—
kind
string
—
priceTierPct
integer (int32)
—

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/branch-groups/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "nameAr": "string",
  "kind": "string",
  "priceTierPct": 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/branch-groups/{id} JWT API Key

Retire a group and every membership it holds

One transaction, one audit row, and the member count in its metadata. A live join row under a tombstoned group is a membership of nothing that still collides with the partial unique index the next time the same branch joins a rebuilt group of the same name.

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/branch-groups/{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
post/api/v1/console/branch-groups/{id}/branches JWT API Key

Put one of the caller's branches in the group

Three proofs, none implied by the others: the group is in a visible organisation, the branch is one the caller is a member of, and the branch belongs to the same organisation as the group. The third matters because a user may hold memberships across two organisations, and a cross-organisation grouping would claim a membership no consolidation, transfer or roll-up in the system would agree with.

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
{
  "branchId": "00000000-0000-0000-0000-000000000000"
}
branchId
string (uuid)
A branch from the caller's own membership set. Anything else reads as NOT_FOUND.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/branch-groups/{id}/branches" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "branchId": "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/branch-groups/{id}/branches/{branchId} JWT API Key

Remove a branch from the group

A tombstone on the join row with a mandatory reason — revoking a grouping stays auditable, and the partial unique index releases the pair so the branch may re-join later without colliding with its own history.

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

Path parameters

idrequired
string (uuid)
—
branchIdrequired
string (uuid)
—

Request body

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

Responses

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

Path parameters

Headers

Set credentials in the “Authorize” menu