API Reference

Cost Cards

4 endpoints· Auth: JWT or API Key
get/api/v1/console/costing/cost-per-serving JWT API Key

The menu-costing report and its margin ranking.,,

A live quote from today's kitchen averages, ranked worst margin first with the products nobody has costed above all of them.

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

Query parameters

Channel
string
The reference channel the consumable and packaging edges are scoped against (FR-CST-055, FR-CST-060). `takeaway` by default, which is what excludes a dine-in-only packaging edge from a report the operator reads as "what does this cost to sell".
IncompleteOnly
boolean
Restrict to products whose serving cost is unknown — the pricing work queue.
IncludeInactive
boolean
Include deactivated menu items. Off by default; a retired dish has no margin to fix.
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/costing/cost-per-serving" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/costing/orders JWT API Key

Cost cards over a range of business days.,

The default range is the last seven Baghdad business days — not the last seven UTC days, which would misplace every sale rung between midnight and 04:00 local.

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

Query parameters

From
string (date)
First business day, inclusive. Absent means the last seven Baghdad business days.
To
string (date)
Last business day, inclusive. Absent means today's Baghdad business day.
IncompleteOnly
boolean
Return only the cards whose cost basis cannot be trusted (FR-CST-062, FR-CST-064). <br>This is the work queue, not a filter for convenience: a cost-incomplete order is one whose margin the system refuses to state, and the list of them is the list of things somebody has to go and price.
IncludeTerminal
boolean
Include cancelled and refunded orders. <br>Off by default: FR-CST-065 excludes terminal orders from every COGS figure, so including them silently would make a page of cards that does not reconcile with any COGS report. On, they are returned and each is flagged by its own `status`.
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/costing/orders" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/costing/orders/{orderId} JWT API Key

Get orderId

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

Path parameters

orderIdrequired
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

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/costing/orders/{orderId}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Query parameters

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/costing/orders/export JWT API Key

One order's cost card

…,.

The drill-down: what the order cost, broken down by where the cost came from, and the margin — or an explicit refusal to state one when any component had no cost basis.

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

Query parameters

From
string (date)
First business day, inclusive. Absent means the last seven Baghdad business days.
To
string (date)
Last business day, inclusive. Absent means today's Baghdad business day.
IncompleteOnly
boolean
Return only the cards whose cost basis cannot be trusted (FR-CST-062, FR-CST-064). <br>This is the work queue, not a filter for convenience: a cost-incomplete order is one whose margin the system refuses to state, and the list of them is the list of things somebody has to go and price.
IncludeTerminal
boolean
Include cancelled and refunded orders. <br>Off by default: FR-CST-065 excludes terminal orders from every COGS figure, so including them silently would make a page of cards that does not reconcile with any COGS report. On, they are returned and each is flagged by its own `status`.
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.
Format
string
—
Lang
string
—
Digits
string
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/costing/orders/export" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu