API Reference
Periods
/api/v1/console/accounting/periods JWT API KeyList the branch's periods, newest first
- Capability (any)
view_glormanage_accountingormanage_periods- API key scope
cap:view_glorcap:manage_accountingorcap:manage_periods(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Query parameters
| Status string | `open`, `closed` or `locked`. Optional. |
| IncludeDeleted boolean | — |
| 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/periods" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/accounting/periods/{id} JWT API KeyOne period
- Capability (any)
view_glormanage_accountingormanage_periods- API key scope
cap:view_glorcap:manage_accountingorcap:manage_periods(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/periods/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/accounting/periods/{id} JWT API KeyTombstone a period
Refused while it is locked.
- Capability (any)
view_glormanage_accountingormanage_periodsand alsomanage_periods- API key scope
cap:view_glorcap:manage_accountingorcap:manage_periods(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/accounting/periods/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/accounting/periods/close JWT API KeyClose a month for review
Closing is not a write lock — see M:Panoptes.Api.Controllers.V1.Console.Accounting.PeriodsController.Lock(Panoptes.Application.DTOs.Requests.Accounting.LockPeriodRequest,System.Threading.CancellationToken), which is the act that stops a dated write and freezes the loss figures.
- Capability (any)
view_glormanage_accountingormanage_periodsand alsomanage_periods- API key scope
cap:view_glorcap:manage_accountingorcap:manage_periods(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Request body
{
"key": "string"
}| key string | The monthly key, `^\d{4}-\d{2}$` — for example `2026-07`. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/periods/close" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"key": "string"
}'Request body (JSON)
Headers
/api/v1/console/accounting/periods/lock JWT API KeyLock through a business day and sweep the still-CLOSED ledger rows to LOCKED.,
A material loss on any still-CLOSED day in range demands a manager explanation; without one the lock is refused with `CONFLICT` and the refusal names the days.
- Capability (any)
view_glormanage_accountingormanage_periodsand alsomanage_periods- API key scope
cap:view_glorcap:manage_accountingorcap:manage_periods(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Request body
{
"key": "string",
"lockThrough": "2026-11-27",
"explanation": "string"
}| key string | The monthly key, `^\d{4}-\d{2}$`. |
| lockThrough string (date) | Business days on or before this are write-locked, inclusive. |
| explanation string | The manager's explanation for locking over a material loss (FR-ACC-063). Required — at least ten characters — only when a still-CLOSED day in range carries a loss at or above that day's threshold. Supplying one when it is not required is harmless and is still recorded. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/periods/lock" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"key": "string",
"lockThrough": "2026-11-27",
"explanation": "string"
}'Request body (JSON)
Headers
/api/v1/console/accounting/periods/reopen JWT API KeyReopen a locked period
The elevated act. It needs its own capability, a reason is mandatory, and the audit row records both the reason and how many ledger rows it thawed.
- Capability (any)
view_glormanage_accountingormanage_periodsand alsoreopen_period- API key scope
cap:view_glorcap:manage_accountingorcap:manage_periods(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Request body
{
"key": "string",
"reason": "string"
}| key string | The monthly key, `^\d{4}-\d{2}$`. |
| reason string | Why. Non-empty, and written into the audit row verbatim. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/periods/reopen" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"key": "string",
"reason": "string"
}'Request body (JSON)
Headers