API Reference
Year Close
Close the financial year and carry balances forward.
4 endpoints· Auth: JWT or API Key
get
/api/v1/console/accounting/year-close JWT API KeyThe fiscal years the branch's ledger touches, newest first, with their state
- 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.
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/year-close" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/accounting/year-close/{year} JWT API KeyOne year: the server-computed checklist and the closing-entry preview
- 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
| yearrequired integer (int32) | — |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/year-close/{year}" \
-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/year-close/close JWT API KeyCreate close
Close the year: the closing entry into retained earnings and every month locked, in one transaction. A closed year is a successful no-op; a failing check is a CONFLICT naming it.
- 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.- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Request body
application/json
{
"year": 0,
"explanation": "string"
}| year integer (int32) | — |
| explanation string | The manager explanation FR-ACC-063 forces when a still-CLOSED day of the year carries a material loss — the close locks every month, so it runs the same gate a period lock does. |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/year-close/close" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"year": 0,
"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/year-close/reopen JWT API KeyReopen a closed year: its closing entry reversed, with the reason in the audit log
- 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.- Idempotency
- Send an
Idempotency-Keyheader (a UUID you mint). A retry with the same key replays the first answer.
Request body
application/json
{
"year": 0,
"reason": "string"
}| year integer (int32) | — |
| reason string | — |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/year-close/reopen" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"year": 0,
"reason": "string"
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu