Legal Entities
Required scope: legal-entities:read
Pagination: cursor
Error codes: INVALID_CURSOR, VALIDATION_FAILED
access-tokenAuthorizationBearer <token>ownership_kind?stringWhich entities to list by ownership. Defaults to 'owned' — managed (externally-owned, fee-managed) entities are opt-in.
"owned""managed""all"search?stringentity_type?string"llc""corp""partnership""trust""other"cursor?stringlimit?number1..100, default 50
sort?stringDefault: name
"name""-name""created_at""-created_at"application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/legal-entities'{ "data": [ { "address_line1": "string", "address_line2": "string", "aliases": [], "city": "string", "code": "string", "country": "string", "created_at": "2019-08-24T14:15:22Z", "default_currency": "string", "dissolved_at": "2019-08-24", "entity_type": "llc", "federal_tax_class": "disregarded_entity", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "managing_legal_entity_id": "b522100b-0f0e-46bf-9e46-681f248a16fc", "managing_legal_entity_name": "string", "name": "string", "operations_start_date": "2019-08-24", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "ownership_kind": "owned", "postal_code": "string", "received_distribution_treatment": "income", "state": "string", "status": "active", "tax_id": "string" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Required scope: legal-entities:write
Plannable: yes. An agent can use this operation as a step in a plan.
Error codes: VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEGAL_ENTITY_CODE_TAKEN, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>Idempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- body
address_line1?stringlength <= 500address_line2?stringlength <= 500aliases?array<string>city?stringlength <= 200code?stringAn operator-assigned code for this entity, e.g. for a bulk CSV importer to resolve it by something shorter and more stable than its name. Unique per ORG, case-insensitively — a duplicate is 409 LEGAL_ENTITY_CODE_TAKEN. Omit it and it stays null; it is never derived from name.
length <= 100country?stringlength <= 10default_currency?stringISO 4217 code. Cannot change once the entity has journal entries (one currency per entity).
^[A-Z]{3}$dissolved_at?stringdateentity_type?stringRequired for owned entities. Optional for managed (defaults to 'other').
"llc""corp""partnership""trust""other"federal_tax_class?string"disregarded_entity""partnership""s_corp""c_corp""unknown"managing_legal_entity_id?stringThe owned legal entity administering this managed entity. Required iff ownership_kind = 'managed'.
uuidname*string1 <= length <= 500operations_start_date?stringEarliest date this entity can record transactions. Accounting periods materialize from this date forward; backdated posting before this date is blocked. Required for owned entities; optional for managed (defaults to the first of the current month).
dateownership_kind?stringDefaults to 'owned'. 'managed' = an external owner's entity whose books this org keeps; requires managing_legal_entity_id and relaxes entity_type/operations_start_date. Immutable after creation.
"owned""managed"postal_code?stringlength <= 50state?stringlength <= 100status?string"active""inactive""in_process""dissolved"tax_id?stringlength <= 20application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/legal-entities' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "data": { "address_line1": "string", "address_line2": "string", "aliases": [], "city": "string", "code": "string", "country": "string", "created_at": "2019-08-24T14:15:22Z", "default_currency": "string", "dissolved_at": "2019-08-24", "entity_type": "llc", "federal_tax_class": "disregarded_entity", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "managing_legal_entity_id": "b522100b-0f0e-46bf-9e46-681f248a16fc", "managing_legal_entity_name": "string", "name": "string", "operations_start_date": "2019-08-24", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "ownership_kind": "owned", "postal_code": "string", "received_distribution_treatment": "income", "state": "string", "status": "active", "tax_id": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: legal-entities:read
Pagination: none
access-tokenAuthorizationBearer <token>ownership_kind?stringWhich entities to list by ownership. Defaults to 'owned' — managed (externally-owned, fee-managed) entities are opt-in.
"owned""managed""all"application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/legal-entities/options'{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "ownership_kind": "owned" } ], "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Given seed legal-entity ids, returns every legal entity transitively OWNED by them (via entity_ownerships, current-effective only, at any ownership_percentage > 0) — reusing SecurityGroupRepository.expandOwnedLegalEntities, the single source of truth for the look-through walk that per-legal-entity scope enforcement also uses. Does NOT apply the caller's own allow-list: this is a look-up helper for an admin configuring a security group’s scope, who needs to see the full ownership implication of the queried ids regardless of their own scope.
Required scope: legal-entities:read
Error codes: VALIDATION_FAILED
access-tokenAuthorizationBearer <token>ids?stringComma-separated legal-entity ids to expand via ownership look-through.
application/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/legal-entities/owned-expansion'{ "data": { "implied": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" } ], "seeds": [ "string" ] }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: legal-entities:read
Error codes: NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>id*stringapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/legal-entities/string'{ "data": { "address_line1": "string", "address_line2": "string", "aliases": [], "city": "string", "code": "string", "country": "string", "created_at": "2019-08-24T14:15:22Z", "default_currency": "string", "dissolved_at": "2019-08-24", "entity_type": "llc", "federal_tax_class": "disregarded_entity", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "managing_legal_entity_id": "b522100b-0f0e-46bf-9e46-681f248a16fc", "managing_legal_entity_name": "string", "name": "string", "operations_start_date": "2019-08-24", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "ownership_kind": "owned", "postal_code": "string", "received_distribution_treatment": "income", "state": "string", "status": "active", "tax_id": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: legal-entities:write
Plannable: yes. An agent can use this operation as a step in a plan.
Error codes: NOT_FOUND, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE, LEGAL_ENTITY_CODE_TAKEN, LEGAL_ENTITY_CURRENCY_LOCKED
access-tokenAuthorizationBearer <token>id*stringapplication/json- body
address_line1?|length <= 500address_line2?|length <= 500aliases?array<string>city?|length <= 200code?|An operator-assigned code for this entity, e.g. for a bulk CSV importer to resolve it by something shorter and more stable than its name. Unique per ORG, case-insensitively — a duplicate is 409 LEGAL_ENTITY_CODE_TAKEN. Send null to release the code so another entity may claim it.
length <= 100country?|length <= 10default_currency?|ISO 4217 code. Cannot change once the entity has journal entries (one currency per entity); re-sending the current code is accepted.
^[A-Z]{3}$dissolved_at?|dateentity_type?string"llc""corp""partnership""trust""other"federal_tax_class?|"disregarded_entity""partnership""s_corp""c_corp""unknown"name?string1 <= length <= 500postal_code?|length <= 50received_distribution_treatment?stringHow this entity books a distribution it receives from another entity of the group ('income' or 'return_of_investment'). Applies to receipts posted after the change.
"income""return_of_investment"state?|length <= 100status?string"active""inactive""in_process""dissolved"tax_id?|length <= 20application/json- response
data*meta*curl -X PUT 'https://api.acreum.io/v1/legal-entities/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "address_line1": "string", "address_line2": "string", "aliases": [], "city": "string", "code": "string", "country": "string", "created_at": "2019-08-24T14:15:22Z", "default_currency": "string", "dissolved_at": "2019-08-24", "entity_type": "llc", "federal_tax_class": "disregarded_entity", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "managing_legal_entity_id": "b522100b-0f0e-46bf-9e46-681f248a16fc", "managing_legal_entity_name": "string", "name": "string", "operations_start_date": "2019-08-24", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "ownership_kind": "owned", "postal_code": "string", "received_distribution_treatment": "income", "state": "string", "status": "active", "tax_id": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: legal-entities:read
Pagination: cursor
Error codes: ATTACHMENT_NOT_FOUND, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_CURSOR
access-tokenAuthorizationBearer <token>parentId*stringcursor?stringlimit?number1..500, default 200
include?"hierarchy"Pass "hierarchy" to roll up the legal entity's own files plus files of every property or space it owns (and their descendants) and its contracts.
"hierarchy"application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/legal-entities/string/files'{ "data": [ { "content_type": "application/pdf", "file_name": "string", "file_sha256": "string", "file_size_bytes": 0, "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901", "folder_name": "string", "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f", "group_label": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "owner_name": "string", "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef", "source_kind": "party", "source_label": "string", "uploaded_at": "2019-08-24T14:15:22Z", "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Required scope: legal-entities:write
Error codes: ATTACHMENT_NOT_FOUND, ATTACHMENT_TYPE_UNSUPPORTED, ATTACHMENT_TOO_LARGE, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>parentId*stringfolderId*stringIdempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255multipart/form-data- body
file*unknownPDF, image, Office, CSV or TXT file. Max 20 MiB. Sniffed server-side.
application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/legal-entities/string/files?folderId=string' \ -H 'Idempotency-Key: string' \ -F 'file=null'{ "data": { "content_type": "application/pdf", "file_name": "string", "file_sha256": "string", "file_size_bytes": 0, "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901", "folder_name": "string", "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f", "group_label": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "owner_name": "string", "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef", "source_kind": "party", "source_label": "string", "uploaded_at": "2019-08-24T14:15:22Z", "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: legal-entities:write
Error codes: ATTACHMENT_NOT_FOUND, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>parentId*stringfileId*stringIdempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- body
file_name?stringNew display name for the file (rename). Trimmed server-side; storage_path and content_type never change. The extension is immutable — the new name must keep the current extension (changing it returns VALIDATION_FAILED). Omit to leave the current name unchanged. An explicit null is rejected — omit the field instead.
1 <= length <= 255folder_id?|Target folder id (see GET /v1/org-folders), or null to move the file to the root. Omit to leave the current folder unchanged.
uuidapplication/json- response
data*meta*curl -X PATCH 'https://api.acreum.io/v1/legal-entities/string/files/string' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "content_type": "application/pdf", "file_name": "string", "file_sha256": "string", "file_size_bytes": 0, "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901", "folder_name": "string", "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f", "group_label": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "owner_name": "string", "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef", "source_kind": "party", "source_label": "string", "uploaded_at": "2019-08-24T14:15:22Z", "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: files:delete
Error codes: ATTACHMENT_NOT_FOUND, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>parentId*stringfileId*stringIdempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255Possible error codes: IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY
application/json- response
code*stringdetail*stringerrors?array<>instance*stringnext_action?stringWhat the caller does next. Sent only by codes that declare it (the PLAN_* codes).
"fix_step""re_preview""retry_later""split_plan""use_plan_mode""release_first""contact_operator"request_id*stringretryable?booleanWhether the same request can succeed unchanged later. Sent only by codes that declare it (the PLAN_* codes).
status*numbertitle*stringtype*stringcurl -X DELETE 'https://api.acreum.io/v1/legal-entities/string/files/string' \ -H 'Idempotency-Key: string'{ "code": "DOCUMENT_ALREADY_POSTED", "detail": "Document doc_01 is already posted.", "errors": [ { "code": "INVALID_VALUE", "field": "amount", "message": "must be > 0" } ], "instance": "/v1/documents/doc_01/post", "next_action": "fix_step", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "retryable": true, "status": 409, "title": "Document already posted", "type": "https://docs.acreum.io/errors/DOCUMENT_ALREADY_POSTED"}Required scope: legal-entities:read
Error codes: ATTACHMENT_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>parentId*stringfileId*stringapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/legal-entities/string/files/string/download'{ "data": { "expires_at": "2019-08-24T14:15:22Z", "url": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}