API Reference

Promotions

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

This branch's campaigns with their derived status badges.,

Reading is gated, unlike the products list: a campaign states the discount ceiling the owner agreed to spend, which is management information rather than till information. A cashier never calls this — the POS reads the live campaigns through the pricing surface, which returns the discount and not the terms behind it.

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

Query parameters

ChannelId
string (uuid)
Restrict to campaigns bound to one channel. Does <b>not</b> include the all-channel campaigns — use Panoptes.Application.DTOs.Requests.Catalog.ListPromotionsRequest.IncludeAllChannel for that.
IncludeAllChannel
boolean
When a Panoptes.Application.DTOs.Requests.Catalog.ListPromotionsRequest.ChannelId is given, also return the campaigns with no channel at all. Those apply to every channel (FR-CAT-056), so a screen asking "what runs on Talabat" wants them and a screen asking "what did I bind to Talabat" does not.
Active
boolean
—
Status
string
`live` | `scheduled` | `ended` | `off` (FR-CAT-059). Derived from the window and the flag, never stored — a stored status would need a cron to flip it and would be wrong for the minutes between the boundary and the job.
IncludeDeleted
boolean
Include tombstoned campaigns. Gated on `edit_promotion` in the service.
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/promotions" \
  -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/promotions JWT API Key

Create a campaign, self-approved.,,

The attribute admits either capability on purpose, so an Administrator reaches the service and receives the `FORBIDDEN` that names the approval path. Gating on `edit_promotion` alone would return a bare 403 that reads as a broken permission rather than as "this change goes through approval".

Capability (any)
edit_promotionorrequest_change
API key scope
cap:edit_promotionorcap:request_change (the key's owner must also hold the capability)

Request body

application/json
{
  "name": "string",
  "discountPercent": 0,
  "maxDiscountCap": 0,
  "minOrderValue": 0,
  "startDate": "2026-11-27",
  "endDate": "2026-11-27",
  "channelId": "00000000-0000-0000-0000-000000000000",
  "active": false
}
name
string
—
discountPercent
number (double)
Inclusive 0–100, stored as `numeric(9,6)`. A `decimal` and never a float: this rate multiplies the gross total of every order it touches (FR-CAT-056).
maxDiscountCap
integer (int64)
The absolute ceiling in minor units, ≥ 0. <br><b>Zero means "no discount", not "no cap"</b> (BR-027, SRS §5.3.11 ⑭). It is deliberately unlike `DeliveryPolicy.maxContributionAmount`, where 0 <i>does</i> mean uncapped. The two must never be unified — the day someone tidies them together, every campaign in the estate silently starts paying out uncapped.
minOrderValue
integer (int64)
Floor in minor units, ≥ 0. Below it the campaign does not apply at all (BR-027).
startDate
string (date)
Mandatory. A day-granular `date`, inclusive, in Asia/Baghdad business days.
endDate
string (date)
Mandatory, never before Panoptes.Application.DTOs.Requests.Catalog.CreatePromotionRequest.StartDate. Inclusive: a campaign ending 30 June still discounts an order rung on 30 June.
channelId
string (uuid)
Null = every channel (FR-CAT-056). A named channel must be this branch's (FR-CAT-057).
active
boolean
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/promotions" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "discountPercent": 0,
  "maxDiscountCap": 0,
  "minOrderValue": 0,
  "startDate": "2026-11-27",
  "endDate": "2026-11-27",
  "channelId": "00000000-0000-0000-0000-000000000000",
  "active": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

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

One campaign

Capability
manage_promotion
API key scope
cap:manage_promotion (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/promotions/{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
delete/api/v1/console/promotions/{id} JWT API Key

Retire a campaign

㉑.

A tombstone, never a `DELETE`, never a synonym for `active = false`, and the reason is mandatory — in the request, in the validator and in a database CHECK.

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

Switch a campaign on or off

`PATCH` on a sub-resource rather than a whole-row `PUT`, because the flag is the only thing about a live campaign that may change: its terms are frozen onto every order it priced, so restating them would produce a row that no longer describes the discounts booked under it.

Capability
edit_promotion
API key scope
cap:edit_promotion (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 PATCH "https://staging-api.panoptesos.com/api/v1/console/promotions/{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
post/api/v1/console/promotions/change-requests JWT API Key

File an administrator's campaign for owner approval

A separate route rather than a fallback inside M:Panoptes.Api.Controllers.V1.Console.Catalog.PromotionsController.Create(Panoptes.Application.DTOs.Requests.Catalog.CreatePromotionRequest,System.Threading.CancellationToken): an action that silently becomes a different action is how an operator learns to click and hope. The caller asks for the request path explicitly.

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

Request body

application/json
{
  "name": "string",
  "discountPercent": 0,
  "maxDiscountCap": 0,
  "minOrderValue": 0,
  "startDate": "2026-11-27",
  "endDate": "2026-11-27",
  "channelId": "00000000-0000-0000-0000-000000000000",
  "active": false
}
name
string
—
discountPercent
number (double)
Inclusive 0–100, stored as `numeric(9,6)`. A `decimal` and never a float: this rate multiplies the gross total of every order it touches (FR-CAT-056).
maxDiscountCap
integer (int64)
The absolute ceiling in minor units, ≥ 0. <br><b>Zero means "no discount", not "no cap"</b> (BR-027, SRS §5.3.11 ⑭). It is deliberately unlike `DeliveryPolicy.maxContributionAmount`, where 0 <i>does</i> mean uncapped. The two must never be unified — the day someone tidies them together, every campaign in the estate silently starts paying out uncapped.
minOrderValue
integer (int64)
Floor in minor units, ≥ 0. Below it the campaign does not apply at all (BR-027).
startDate
string (date)
Mandatory. A day-granular `date`, inclusive, in Asia/Baghdad business days.
endDate
string (date)
Mandatory, never before Panoptes.Application.DTOs.Requests.Catalog.CreatePromotionRequest.StartDate. Inclusive: a campaign ending 30 June still discounts an order rung on 30 June.
channelId
string (uuid)
Null = every channel (FR-CAT-056). A named channel must be this branch's (FR-CAT-057).
active
boolean
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/promotions/change-requests" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "discountPercent": 0,
  "maxDiscountCap": 0,
  "minOrderValue": 0,
  "startDate": "2026-11-27",
  "endDate": "2026-11-27",
  "channelId": "00000000-0000-0000-0000-000000000000",
  "active": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu