API Reference

Price Preview

2 endpoints· Auth: JWT or API Key
get/api/v1/console/pricing/live-promotions JWT API Key

The campaigns live for a channel right now, each evaluated against a cart total.,,

Unpaginated by design: a branch runs a handful of campaigns at a time and the till reads this as the cart changes, so a page cursor would be ceremony around a single round trip.

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

Query parameters

ChannelId
string (uuid)
—
GrossTotal
integer (int64)
The cart's gross total in minor units, so each campaign can be evaluated against it. <br>Zero is legal and useful: it returns the live campaigns with a zero discount each, which is what a screen wants before the first item is rung.

Responses

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

Price a cart.,,

Returns the money waterfall as far as `netRevenue` and deliberately no further: the food cost is resolved only at sale time, and a preview that reported a margin would have to guess it.

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

Request body

application/json
{
  "channelId": "00000000-0000-0000-0000-000000000000",
  "lines": [
    {
      "productId": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "modifierOptionIds": [
        "00000000-0000-0000-0000-000000000000"
      ],
      "manualDiscountIqd": 0
    }
  ],
  "promotionId": "00000000-0000-0000-0000-000000000000",
  "manualDiscountIqd": 0
}
channelId
string (uuid)
The channel the order would be rung into. Decides which campaigns apply (FR-CAT-062) and which commission contract prices it (FR-CAT-065).
lines
PricePreviewLineRequest[]
—
promotionId
string (uuid)
A campaign the cashier's tile already chose. Null asks the server to choose <b>automatically</b> — the campaign producing the largest discount for this cart (FR-CAT-061). <br>A cashier can never type a promotional discount by hand; that is what Panoptes.Application.DTOs.Requests.Catalog.PricePreviewRequest.ManualDiscountIqd is for, and the two stack under BR-028 rather than substituting for one another.
manualDiscountIqd
integer (int64)
The check-level manual discount in minor units, floored at zero and stacked on top of the campaign's (BR-028).

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/pricing/preview" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "channelId": "00000000-0000-0000-0000-000000000000",
  "lines": [
    {
      "productId": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "modifierOptionIds": [
        "00000000-0000-0000-0000-000000000000"
      ],
      "manualDiscountIqd": 0
    }
  ],
  "promotionId": "00000000-0000-0000-0000-000000000000",
  "manualDiscountIqd": 0
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu