API Reference

Brands

6 endpoints· Auth: JWT or API Key
get/api/v1/console/brands JWT API Key

This branch's brands

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

Query parameters

Active
boolean
Filter on the operational flag. Null returns both suspended and live brands.
IncludeDeleted
boolean
Include tombstoned rows. `manage_brands` only.
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/brands" \
  -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/brands JWT API Key

Create a brand.,,

The slug is derived Unicode-aware when omitted, so an Arabic name yields a real slug rather than an empty string, and `(branchId, slug)` is pre-checked so a collision reads as a field error instead of a constraint violation.

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

Request body

application/json
{
  "name": "string",
  "nameAr": "string",
  "slug": "string"
}
name
string
—
nameAr
string
—
slug
string
Optional. Omitted, it is derived from Panoptes.Application.DTOs.Requests.Tenancy.CreateBrandRequest.Name by the Unicode-aware rule of FR-TEN-087 — which exists precisely so an Arabic brand name does not collapse to an empty slug the way a Latin-only `[a-z0-9]` filter would collapse it.

Responses

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

Request body (JSON)

Headers

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

One brand

Another branch's brand reads as NOT_FOUND.

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

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/brands/{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/brands/{id} JWT API Key

Rename a brand

A `PATCH` because it is exactly that: the slug does not move with the name, since it is the stable handle a channel, a QR menu and an export column already carry.

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

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "name": "string",
  "nameAr": "string"
}
name
string
—
nameAr
string
—

Responses

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

Path parameters

Request body (JSON)

Headers

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

Retire a brand

A tombstone with a mandatory reason, never a `DELETE`. Products and orders that carry the brand id keep resolving — the row and its id survive — so last quarter's brand P&L still renders while the brand leaves every live picker and the till.

Capability
manage_brands
API key scope
cap:manage_brands (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/brands/{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/brands/{id}/active JWT API Key

Suspend or resume a brand

Its own endpoint, separate from the rename and separate from retirement, because is explicit that `active` must never be used as a retirement mechanism — a suspended brand is still live data whose history still attributes.

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

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "active": false
}
active
boolean
—

Responses

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

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu