API Reference
Legal Entities
5 endpoints· Auth: JWT or API Key
get
/api/v1/console/accounting/legal-entities JWT API KeyThe legal entities reachable from this session.,
- Capability (any)
view_glormanage_org- API key scope
cap:view_glorcap:manage_org(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
| Active boolean | Filter on the operational flag. Null returns both. |
| IncludeDeleted boolean | Include tombstoned rows. Write capability only. |
| 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/legal-entities" \
-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/legal-entities JWT API KeyRegister a legal entity under the caller's active branch
Home branch from the token, organisation from that branch. A solo branch yields an entity with a null organisation, which is coherent rather than an error — that branch has no roll-up tier yet.
- Capability
manage_accounting- API key scope
cap: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
application/json
{
"name": "string",
"taxId": "string",
"currency": "string",
"isDefault": false
}| name string | — |
| taxId string | The tax registration number, where the entity has one. Optional. |
| currency string | The currency the entity reports in. Validated against an `active` row in the currency registry — an entity denominated in a code the registry has never heard of is an entity whose statements nothing can interpret. |
| isDefault boolean | Make this the branch's default entity. At most one live default per branch: setting it here demotes the previous holder in the same transaction, because two defaults is a posting path that silently picks one. |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/accounting/legal-entities" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"taxId": "string",
"currency": "string",
"isDefault": false
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/accounting/legal-entities/{id} JWT API KeyOne legal entity
Outside the two-legged scope it reads as NOT_FOUND.
- Capability (any)
view_glormanage_org- API key scope
cap:view_glorcap:manage_org(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
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/accounting/legal-entities/{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/legal-entities/{id} JWT API KeyAmend a legal entity
At most one live default per branch.
- Capability
manage_accounting- API key scope
cap: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
application/json
{
"name": "string",
"taxId": "string",
"currency": "string",
"isDefault": false,
"active": false
}| name string | — |
| taxId string | — |
| currency string | — |
| isDefault boolean | — |
| active boolean | Operational suspension. Orthogonal to retirement (FR-TEN-119). |
Responses
200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/accounting/legal-entities/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"taxId": "string",
"currency": "string",
"isDefault": false,
"active": false
}' 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/legal-entities/{id} JWT API KeyRetire a legal entity
Refused while any branch still posts under it. A tombstoned entity with live branches pointing at it leaves the next intercompany posting resolving its taxpayer through a row every live read filters out — a classification that silently reverts to `__solo__` and eliminates a move that should not have been eliminated.
- Capability
manage_accounting- API key scope
cap: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
application/json
{
"reason": "string"
}| reason string | — |
Responses
200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/accounting/legal-entities/{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