API Reference
Accounts
/api/v1/console/accounting/accounts JWT API KeyList 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
accountingmust 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/accounts" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/accounting/accounts JWT API KeyCreate an account
- Capability (any)
view_glormanage_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(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
{
"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
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"
}'Request body (JSON)
Headers
/api/v1/console/accounting/accounts/{id} JWT API KeyOne 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
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/accounts/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/accounting/accounts/{id} JWT API KeyEdit name, Arabic name and parent
Code and type are frozen.
- Capability (any)
view_glormanage_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(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
{
"name": "string",
"nameAr": "string",
"parentCode": "string"
}| name string | — |
| nameAr string | — |
| parentCode string | — |
Responses
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"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/accounting/accounts/{id} JWT API KeyTombstone 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_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(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/accounts/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/accounting/accounts/{id}/active JWT API KeyDeactivate 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_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(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
{
"active": false,
"reason": "string"
}| active boolean | — |
| reason string | Free text carried into the audit row. Optional on reactivation. |
Responses
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"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/accounting/accounts/channel-receivables JWT API KeyCreate 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_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(the key's owner must also hold the capability)- Plan feature
accountingmust be on the branch's plan, or the call answers 403.
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/accounts/channel-receivables" \
-H "X-Api-Key: <YOUR_API_KEY>"Headers
/api/v1/console/accounting/accounts/seed JWT API KeySeed 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_accountingand alsomanage_accounting- API key scope
cap:view_glorcap:manage_accounting(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
{
"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
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
}'Request body (JSON)
Headers