API Reference
Ledger Adoption
Whether the general ledger is switched on and its opening balances.
4 endpoints· Auth: JWT or API Key
post
/api/v1/console/accounting/back-post JWT API KeyBack-post documents since a day (idempotent, period-lock aware, bounded per run)
- 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
{
"from": "2026-11-27",
"to": "2026-11-27",
"dryRun": false,
"limit": 0
}| from string (date) | The first business day whose documents are posted. |
| to string (date) | The last business day, inclusive. Null means today. |
| dryRun boolean | Count what would be posted, write nothing. |
| limit integer (int32) | The most documents one run looks at (default and ceiling `BackPostService.MaxLimit`). |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/back-post" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"from": "2026-11-27",
"to": "2026-11-27",
"dryRun": false,
"limit": 0
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/accounting/gl-status JWT API KeyWhether the branch keeps a ledger, since when, and its live opening balance
- 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/gl-status" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/accounting/opening-balance JWT API KeyPost opening balances as of a cut-over day, balanced against 3000 Equity
- 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
{
"cutOverDate": "2026-11-27",
"memo": "string",
"lines": [
{
"accountCode": "string",
"debit": 0,
"credit": 0,
"memo": "string"
}
]
}| cutOverDate string (date) | The business day the opening balances stand at; it must fall in an open period. |
| memo string | — |
| lines OpeningBalanceLineInput[] | One line per balance-sheet account. Each is exactly one side, never negative. 3000 is not named: it is the balancing line the service computes. |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/opening-balance" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"cutOverDate": "2026-11-27",
"memo": "string",
"lines": [
{
"accountCode": "string",
"debit": 0,
"credit": 0,
"memo": "string"
}
]
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/accounting/opening-balance/reverse JWT API KeyReverse the live opening balances, dated their cut-over day, with the reason
- 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
{
"reason": "string"
}| reason string | — |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/opening-balance/reverse" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"reason": "string"
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu