API Reference

HQ

Head-office roll-ups across branches.

3 endpoints· Auth: JWT
get/api/v1/console/hq/branches JWT

The branches the console may roll up, for the selector.,

Signed-in user only
Not open to API keys or OAuth tokens.
Organisation admin
Only an organisation administrator, signed in.
Plan feature
multi_branch must be on the branch's plan, or the call answers 403.

Responses

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

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/hq/consolidated-pnl JWT

The consolidated organisation P&L

–,.

Lines are keyed on `Account.code` and summed over the base debit/credit pair; a branch whose base currency differs from the organisation's reporting currency is translated before it is summed, and one with no rate in force is excluded and named rather than added raw.

Capability
view_hq
Signed-in user only
Not open to API keys or OAuth tokens.
Organisation admin
Only an organisation administrator, signed in.
Plan feature
multi_branch must be on the branch's plan, or the call answers 403.

Query parameters

From
string (date)
—
To
string (date)
—
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/hq/consolidated-pnl" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/hq/today JWT

Today across the organisation

–,.

`branch_id` narrows and can never widen: an id outside the caller's visible set is dropped in favour of the full roll-up, and the response echoes which branch was actually applied so the fallback is visible rather than silent.

Signed-in user only
Not open to API keys or OAuth tokens.
Organisation admin
Only an organisation administrator, signed in.
Plan feature
multi_branch must be on the branch's plan, or the call answers 403.

Query parameters

BranchId
string (uuid)
—
GroupId
string (uuid)
Roll up one branch group instead of the whole organisation (FR-TEN-012, FR-TEN-034): the group's members <b>inside the caller's visible set</b>, totalled by the server. Like Panoptes.Application.DTOs.Requests.Tenancy.HqTodayRequest.BranchId it narrows and never widens — a group outside the caller's organisations, or one with no visible member, is dropped in favour of the full roll-up and the response says so (`NarrowedToGroupId` null). Applied before Panoptes.Application.DTOs.Requests.Tenancy.HqTodayRequest.BranchId.
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/hq/today" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu