API Reference
Brands
/api/v1/console/brands JWT API KeyThis 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/brands" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/brands JWT API KeyCreate 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
{
"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
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"
}'Request body (JSON)
Headers
/api/v1/console/brands/{id} JWT API KeyOne 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/brands/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/brands/{id} JWT API KeyRename 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
{
"name": "string",
"nameAr": "string"
}| name string | — |
| nameAr string | — |
Responses
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"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/brands/{id} JWT API KeyRetire 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
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/brands/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/brands/{id}/active JWT API KeySuspend 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
{
"active": false
}| active boolean | — |
Responses
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
}'Path parameters
Request body (JSON)
Headers