API Reference

Periods

6 endpoints· Auth: JWT or API Key
get/api/v1/console/accounting/periods JWT API Key

List 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
accounting must 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

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/periods" \
  -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/accounting/periods/{id} JWT API Key

One 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
accounting must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Responses

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

Path parameters

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/accounting/periods/{id} JWT API Key

Tombstone a period

Refused while it is locked.

Capability (any)
view_glormanage_accountingormanage_periods and also manage_periods
API key scope
cap:view_glorcap:manage_accountingorcap:manage_periods (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/accounting/periods/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/accounting/periods/close JWT API Key

Close 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_periods and also manage_periods
API key scope
cap:view_glorcap:manage_accountingorcap:manage_periods (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Request body

application/json
{
  "key": "string"
}
key
string
The monthly key, `^\d{4}-\d{2}$` — for example `2026-07`.

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/accounting/periods/lock JWT API Key

Lock 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_periods and also manage_periods
API key scope
cap:view_glorcap:manage_accountingorcap:manage_periods (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Request body

application/json
{
  "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

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/accounting/periods/reopen JWT API Key

Reopen 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_periods and also reopen_period
API key scope
cap:view_glorcap:manage_accountingorcap:manage_periods (the key's owner must also hold the capability)
Plan feature
accounting must be on the branch's plan, or the call answers 403.

Request body

application/json
{
  "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

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu