API Reference

Legal Entities

5 endpoints· Auth: JWT or API Key
post/api/v1/console/accounting/legal-entities JWT API Key

Register 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
accounting must 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