API Reference
Brand P&L
Profit and loss per brand from the central kitchen.
2 endpoints· Auth: JWT or API Key
get
/api/v1/console/central-kitchen/brand-pnl JWT API KeyGet brand-pnl
Brand rows, the house row and the branch total; the unallocated shared costs; and, by the owner's basis, their allocation — every figure the server's.
- Capability
view_profit- API key scope
cap:view_profit(the key's owner must also hold the capability)- Plan feature
central_kitchenmust be on the branch's plan, or the call answers 403.
Query parameters
| From string (date) | — |
| To string (date) | — |
| Basis string | How the shared costs are spread over the brands: `net_sales` (the default), `orders`, `equal` or `none`. The unallocated block is always shown beside it. |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/central-kitchen/brand-pnl" \
-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/central-kitchen/brand-pnl/export JWT API KeyGet export
The same P&L as a file — `?format=csv` for the brand table, anything else the XLSX workbook with the brands, the shared costs and the allocation on three sheets.
- Capability
view_profit- API key scope
cap:view_profit(the key's owner must also hold the capability)- Plan feature
central_kitchenmust be on the branch's plan, or the call answers 403.
Query parameters
| Format string | — |
| Lang string | — |
| Digits string | — |
| From string (date) | — |
| To string (date) | — |
| Basis string | How the shared costs are spread over the brands: `net_sales` (the default), `orders`, `equal` or `none`. The unallocated block is always shown beside it. |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/central-kitchen/brand-pnl/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