API Reference
Sales Channel Setup
Configure the channels you sell through and their sale rules.
5 endpoints· Auth: JWT or API Key
get
/api/v1/console/sales-channels JWT API KeyEvery channel of the branch with its live commission (the same rows as)
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)
Query parameters
| TypeCode string | Filter to one channel class by its `sales_channel_type` code, e.g. `delivery_app` (FR-DLV-108). Null lists every class. |
| Active boolean | Null shows active and inactive alike; the screen defaults to both. |
| 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/sales-channels" \
-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/sales-channels JWT API KeyCreate sales-channels
Create a channel, born with its always-on commission rule and, for a delivery app, a zeroed policy.
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)
Request body
application/json
{
"name": "string",
"nameAr": "string",
"typeId": "00000000-0000-0000-0000-000000000000",
"active": false,
"brandId": "00000000-0000-0000-0000-000000000000",
"commissionPercent": 0,
"commissionMethod": "string",
"externalStoreId": "string",
"principalMode": "string"
}| name string | — |
| nameAr string | Optional Arabic display name. |
| typeId string (uuid) | — |
| active boolean | — |
| brandId string (uuid) | Additive cloud-kitchen binding to a virtual brand. Optional. |
| commissionPercent number (double) | Inclusive 0–100; the initial always-on rule (FR-DLV-005). |
| commissionMethod string | `BEFORE_DISCOUNT` | `AFTER_DISCOUNT`; anything else is coerced to `AFTER_DISCOUNT` (FR-DLV-007). |
| externalStoreId string | The aggregator's own store id — the key the public ingest door resolves a channel by (FR-DLV-097). Delivery apps only; unique among active delivery-app channels. Optional. |
| principalMode string | `principal` | `agent` (IFRS 15, FR-DLV-099); null keeps `principal`. |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/sales-channels" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"typeId": "00000000-0000-0000-0000-000000000000",
"active": false,
"brandId": "00000000-0000-0000-0000-000000000000",
"commissionPercent": 0,
"commissionMethod": "string",
"externalStoreId": "string",
"principalMode": "string"
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
put
/api/v1/console/sales-channels/{id} JWT API KeyRename, re-brand or (de)activate a channel; re-class it only while it has no history
Its rate is never edited here — a new rate is a new rule (I-DLV-3).
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
application/json
{
"name": "string",
"nameAr": "string",
"typeId": "00000000-0000-0000-0000-000000000000",
"active": false,
"brandId": "00000000-0000-0000-0000-000000000000",
"externalStoreId": "string",
"principalMode": "string"
}| name string | — |
| nameAr string | — |
| typeId string (uuid) | — |
| active boolean | — |
| brandId string (uuid) | — |
| externalStoreId string | Null keeps the current store id; an empty string clears it. |
| principalMode string | Null keeps the current mode. Frozen once the channel has history. |
Responses
200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/sales-channels/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"typeId": "00000000-0000-0000-0000-000000000000",
"active": false,
"brandId": "00000000-0000-0000-0000-000000000000",
"externalStoreId": "string",
"principalMode": "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/sales-channels/{id} JWT API KeyTombstone a channel created by mistake, with a required reason
A channel with orders or settlement history is refused (CONFLICT) — deactivate it instead.
- Capability
change_commission- API key scope
cap:change_commission(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/sales-channels/{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
get
/api/v1/console/sales-channels/types JWT API KeyThe branch's channel classes, for the channel form
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/sales-channels/types" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Headers
Set credentials in the “Authorize” menu