API Reference
Channels
/api/v1/console/delivery/channels JWT API KeyEvery channel with its resolved live commission
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/delivery/channels" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/delivery/channels JWT API KeyCreate a channel by type code — Raqeeb's channel management
Born with its always-on commission rule and, for a delivery app, a zeroed policy and receivable sub-account. `externalStoreId` must be unique among active delivery apps ( … 003, 097).
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Request body
{
"name": "string",
"nameAr": "string",
"typeCode": "string",
"brandId": "00000000-0000-0000-0000-000000000000",
"externalStoreId": "string",
"principalMode": "string",
"commissionPercent": 0,
"commissionMethod": "string"
}| name string | — |
| nameAr string | — |
| typeCode string | A live, active `sales_channel_type` code of the branch (`delivery_app`, `whatsapp`, `takeaway`, `dine_in` …). |
| brandId string (uuid) | — |
| externalStoreId string | — |
| principalMode string | `principal` | `agent`; defaults to `principal`. |
| commissionPercent number (double) | Initial always-on commission, 0–100 (defaults to 0). |
| commissionMethod string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/delivery/channels" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"typeCode": "string",
"brandId": "00000000-0000-0000-0000-000000000000",
"externalStoreId": "string",
"principalMode": "string",
"commissionPercent": 0,
"commissionMethod": "string"
}'Request body (JSON)
Headers
/api/v1/console/delivery/channels/{channelId}/rules JWT API KeyOne channel's commission rules, the live one flagged
Takes `?sort=&dir=` (`CommissionRuleListSort`); the parameter is not named `sort` so the binder does not read that key as its prefix.
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Path parameters
| channelIdrequired string (uuid) | — |
Query parameters
| 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/delivery/channels/{channelId}/rules" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Query parameters
Headers
/api/v1/console/delivery/channels/{id} JWT API KeyUpdate id
Partially edit a channel: name, type (only before history), brand, store id, principal mode (only before history), active. Audited as `UPDATE_SALES_CHANNEL`.
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string",
"nameAr": "string",
"typeCode": "string",
"brandId": "00000000-0000-0000-0000-000000000000",
"clearBrand": false,
"externalStoreId": "string",
"principalMode": "string",
"active": false
}| name string | — |
| nameAr string | — |
| typeCode string | — |
| brandId string (uuid) | — |
| clearBrand boolean | True removes the brand binding (an absent Panoptes.Application.DTOs.Requests.Delivery.PatchDeliveryChannelRequest.BrandId keeps it). |
| externalStoreId string | — |
| principalMode string | — |
| active boolean | — |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/delivery/channels/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"nameAr": "string",
"typeCode": "string",
"brandId": "00000000-0000-0000-0000-000000000000",
"clearBrand": false,
"externalStoreId": "string",
"principalMode": "string",
"active": false
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/delivery/channels/rule-requests JWT API KeyFile a commission change for the Owner to decide
`request_change` — Admin only.
Writes an `ApprovalRequest` and nothing else. The requester can never be the decider: deciding needs `approve_requests`, which the Admin does not hold.
- Capability
request_change- API key scope
cap:request_change(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Request body
{
"channelId": "00000000-0000-0000-0000-000000000000",
"percentage": 0,
"commissionMethod": "string",
"startDate": "2026-11-27",
"endDate": "2026-11-27",
"active": false
}| channelId string (uuid) | — |
| percentage number (double) | Inclusive 0–100. Stored as `numeric(9,6)` — it multiplies every order on the channel, so a binary float here would be a rounding error on every sale (FR-DLV-005). |
| commissionMethod string | `BEFORE_DISCOUNT` | `AFTER_DISCOUNT`. Anything else is coerced to `AFTER_DISCOUNT` rather than refused (FR-DLV-007). |
| startDate string (date) | — |
| endDate string (date) | — |
| active boolean | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/delivery/channels/rule-requests" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"channelId": "00000000-0000-0000-0000-000000000000",
"percentage": 0,
"commissionMethod": "string",
"startDate": "2026-11-27",
"endDate": "2026-11-27",
"active": false
}'Request body (JSON)
Headers
/api/v1/console/delivery/channels/rules JWT API KeyCreate a time-windowed commission rule
`change_commission` — Owner only. …,.
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Request body
{
"channelId": "00000000-0000-0000-0000-000000000000",
"percentage": 0,
"commissionMethod": "string",
"startDate": "2026-11-27",
"endDate": "2026-11-27",
"active": false
}| channelId string (uuid) | — |
| percentage number (double) | Inclusive 0–100. Stored as `numeric(9,6)` — it multiplies every order on the channel, so a binary float here would be a rounding error on every sale (FR-DLV-005). |
| commissionMethod string | `BEFORE_DISCOUNT` | `AFTER_DISCOUNT`. Anything else is coerced to `AFTER_DISCOUNT` rather than refused (FR-DLV-007). |
| startDate string (date) | — |
| endDate string (date) | — |
| active boolean | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/delivery/channels/rules" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"channelId": "00000000-0000-0000-0000-000000000000",
"percentage": 0,
"commissionMethod": "string",
"startDate": "2026-11-27",
"endDate": "2026-11-27",
"active": false
}'Request body (JSON)
Headers
/api/v1/console/delivery/channels/rules/{ruleId}/active JWT API KeyActivate or deactivate a rule without deleting it
- Capability
change_commission- API key scope
cap:change_commission(the key's owner must also hold the capability)- Plan feature
deliverymust be on the branch's plan, or the call answers 403.
Path parameters
| ruleIdrequired string (uuid) | — |
Request body
{
"active": false
}| active boolean | — |
Responses
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/delivery/channels/rules/{ruleId}/active" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"active": false
}'Path parameters
Request body (JSON)
Headers