Company Settings

Create a legal subsidiary

Admin/owner only. Creates persisted company accounting configuration; no demo data is generated.

post/companies/{companyId}/entities

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

companyId, string uuid required

Headers

X-Median-App-Surface, 'qa'

Optional customer-app bundle marker for production-promoted demo-parity routes. Production customer calls omit this header. When present, qa selects the QA bundle and the server additionally requires an allowlisted test company with persisted client_status=test.

Request body

CreateLegalEntityInput required
name, string required
shortName, string nullable
role, string nullable
functionalCurrency, string required
ownershipPct, number nullable
parentEntityId, string uuid nullable

Example request

{
  "functionalCurrency": "BRL"
}

Response

Legal entity created

EntityResponse required
success, boolean
data, Entity

A concrete legal entity under a company. Consolidated read identities live exclusively in ReportingScope and never appear as entities.

Changes

No recorded changes to this operation across all 110 revisions of this API.