API Reference

Accounts

8 endpoints· Auth: JWT or API Key
get/api/v1/console/accounting/accounts JWT API Key

List the chart

Capability (any)
view_glormanage_accounting
API key scope
cap:view_glorcap:manage_accounting (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

Type
string
One of `asset | liability | equity | revenue | cogs | expense`. Optional.
Active
boolean
Filter on the `active` flag. Null returns both — an inactive account carrying history still renders in statements (§5.16.11), so hiding it by default would be a lie.
IncludeDeleted
boolean
Include tombstoned rows (FR-ACC-092). Off by default: a tombstoned account is excluded from every list, selector, statement and export.
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/accounts" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

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

Create an account

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (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
{
  "code": "string",
  "name": "string",
  "nameAr": "string",
  "type": "string",
  "parentCode": "string"
}
code
string
Numeric COA code, `^[0-9]{3,6}$`. Sorts by statement section.
name
string
—
nameAr
string
Optional on a hand-created account; <b>mandatory</b> on every account in the canonical seed (FR-ACC-003, the house bilingual rule).
type
string
One of `asset | liability | equity | revenue | cogs | expense`.
parentCode
string
Sub-account parent. Must already exist in this branch's chart.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/accounts" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "code": "string",
  "name": "string",
  "nameAr": "string",
  "type": "string",
  "parentCode": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

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

One account

Capability (any)
view_glormanage_accounting
API key scope
cap:view_glorcap:manage_accounting (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/accounts/{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
put/api/v1/console/accounting/accounts/{id} JWT API Key

Edit name, Arabic name and parent

Code and type are frozen.

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (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
{
  "name": "string",
  "nameAr": "string",
  "parentCode": "string"
}
name
string
—
nameAr
string
—
parentCode
string
—

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/accounting/accounts/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "nameAr": "string",
  "parentCode": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

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

Tombstone an account

A tombstone, never a `DELETE`, and refused outright while any journal line references the account — its id still has to resolve for the lines pointing at it.

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (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/accounts/{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/accounts/{id}/active JWT API Key

Deactivate or reactivate.,

Its own endpoint rather than a field on the update body: the two carry different refusals and different audit verbs, and folding them together would let a rename smuggle a deactivation past the poster-target check.

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (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
{
  "active": false,
  "reason": "string"
}
active
boolean
—
reason
string
Free text carried into the audit row. Optional on reactivation.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/accounts/{id}/active" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "active": false,
  "reason": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/accounting/accounts/channel-receivables JWT API Key

Create channel-receivables

Give every delivery channel its own receivable sub-account of 1100 (SEEDER-REFERENCE) — idempotent, for a branch that adopted the ledger before per-channel receivables existed.

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

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/accounts/channel-receivables" \
  -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/accounts/seed JWT API Key

Seed the canonical chart into this branch.,

Idempotent: re-running preserves owner-customised names and the active flag, and refreshes only the structural type.

Capability (any)
view_glormanage_accounting and also manage_accounting
API key scope
cap:view_glorcap:manage_accounting (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
{
  "dryRun": false
}
dryRun
boolean
Report what the seed <i>would</i> do without writing. Useful before running it on a branch whose chart an accountant has already edited.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/accounts/seed" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "dryRun": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu