Acreum Docs
Organization structure

Consolidation Groups

List entity groups

GET
/v1/consolidation-groups

Lists entity groups of one type: group_type=consolidation (the default, so existing callers are unchanged), payment, or all. Payment groups need reports:read or payment-runs:read; consolidation and all need reports:read.

Required scope: reports:read, payment-runs:read

Required scope (any of): reports:read, payment-runs:read

Pagination: none

Error codes: VALIDATION_FAILED, INSUFFICIENT_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

group_type?string

Which group type to list. Defaults to 'consolidation' so existing callers keep seeing consolidation groups only.

Default"consolidation"
Value in"consolidation""payment""all"

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/consolidation-groups'
{  "data": [    {      "created_at": "string",      "currency_code": "USD",      "description": "string",      "group_type": "consolidation",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "member_count": 0,      "member_entity_ids": [        "e23a1c95-93f3-4f29-8e17-d02d12da7be9"      ],      "name": "string",      "status": "active",      "updated_at": "string"    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Create an entity group

POST
/v1/consolidation-groups

Required scope: legal-entities:write

Error codes: VALIDATION_FAILED, CONFLICT, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEGAL_ENTITY_NOT_IN_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Header Parameters

Idempotency-Key*string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
currency_code*string
description?string
Lengthlength <= 1024
group_type?string

'consolidation' groups feed consolidated reports; 'payment' groups are used only by payment runs and may include managed legal entities. Immutable after creation.

Default"consolidation"
Value in"consolidation""payment"
member_entity_ids*array<>
Itemsitems <= 100
name*string
Lengthlength <= 128

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/consolidation-groups' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "currency_code": "USD",  "member_entity_ids": [    "e23a1c95-93f3-4f29-8e17-d02d12da7be9"  ],  "name": "string"}'
{  "data": {    "created_at": "string",    "currency_code": "USD",    "description": "string",    "group_type": "consolidation",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "member_count": 0,    "member_entity_ids": [      "e23a1c95-93f3-4f29-8e17-d02d12da7be9"    ],    "name": "string",    "status": "active",    "updated_at": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Get an entity group

GET
/v1/consolidation-groups/{id}

Required scope: reports:read, payment-runs:read

Required scope (any of): reports:read, payment-runs:read

Error codes: NOT_FOUND, INSUFFICIENT_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/consolidation-groups/string'
{  "data": {    "created_at": "string",    "currency_code": "USD",    "description": "string",    "group_type": "consolidation",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "member_count": 0,    "member_entity_ids": [      "e23a1c95-93f3-4f29-8e17-d02d12da7be9"    ],    "name": "string",    "status": "active",    "updated_at": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Update an entity group

PATCH
/v1/consolidation-groups/{id}

Required scope: legal-entities:write

Error codes: VALIDATION_FAILED, NOT_FOUND, CONFLICT, ENTITY_GROUP_IN_USE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEGAL_ENTITY_NOT_IN_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Client-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
description?string
Lengthlength <= 1024
member_entity_ids?array<>
Itemsitems <= 100
name?string
Lengthlength <= 128
status?string
Value in"active""archived"

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/consolidation-groups/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "created_at": "string",    "currency_code": "USD",    "description": "string",    "group_type": "consolidation",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "member_count": 0,    "member_entity_ids": [      "e23a1c95-93f3-4f29-8e17-d02d12da7be9"    ],    "name": "string",    "status": "active",    "updated_at": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Delete an entity group

DELETE
/v1/consolidation-groups/{id}

Required scope: legal-entities:write

Error codes: NOT_FOUND, ENTITY_GROUP_IN_USE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Client-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

Possible error codes: INVALID_IDEMPOTENCY_KEY

application/json
  1. response
code*string
detail*string
errors?array<>
instance*string
next_action?string

What the caller does next. Sent only by codes that declare it (the PLAN_* codes).

Value in"fix_step""re_preview""retry_later""split_plan""use_plan_mode""release_first""contact_operator"
request_id*string
retryable?boolean

Whether the same request can succeed unchanged later. Sent only by codes that declare it (the PLAN_* codes).

status*number
title*string
type*string
curl -X DELETE 'https://api.acreum.io/v1/consolidation-groups/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"}
GET
/v1/consolidation-groups/{parentId}/files

Required scope: reports:read

Pagination: cursor

Error codes: ATTACHMENT_NOT_FOUND, VALIDATION_FAILED, INVALID_CURSOR

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

parentId*string

Query Parameters

cursor?string
limit?number

1..500, default 200

include?"hierarchy"

Pass "hierarchy" to roll up the group's own files plus the full file hierarchy of every member legal entity (its own files, owned properties and spaces and their descendants, and its contracts), grouped by member.

Value in"hierarchy"

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/consolidation-groups/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"  }}
POST
/v1/consolidation-groups/{parentId}/files

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

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

parentId*string

Query Parameters

folderId*string

Header Parameters

Idempotency-Key*string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

multipart/form-data
  1. body
file*unknown

PDF, image, Office, CSV or TXT file. Max 20 MiB. Sniffed server-side.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/consolidation-groups/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  }}
PATCH
/v1/consolidation-groups/{parentId}/files/{fileId}

Required scope: legal-entities:write

Error codes: ATTACHMENT_NOT_FOUND, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

parentId*string
fileId*string

Header Parameters

Idempotency-Key*string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
file_name?string

New 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.

Length1 <= length <= 255
folder_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.

Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/consolidation-groups/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  }}
DELETE
/v1/consolidation-groups/{parentId}/files/{fileId}

Required scope: files:delete

Error codes: ATTACHMENT_NOT_FOUND, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

parentId*string
fileId*string

Header Parameters

Idempotency-Key*string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Response Body

Possible error codes: IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY

application/json
  1. response
code*string
detail*string
errors?array<>
instance*string
next_action?string

What the caller does next. Sent only by codes that declare it (the PLAN_* codes).

Value in"fix_step""re_preview""retry_later""split_plan""use_plan_mode""release_first""contact_operator"
request_id*string
retryable?boolean

Whether the same request can succeed unchanged later. Sent only by codes that declare it (the PLAN_* codes).

status*number
title*string
type*string
curl -X DELETE 'https://api.acreum.io/v1/consolidation-groups/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"}
GET
/v1/consolidation-groups/{parentId}/files/{fileId}/download

Required scope: reports:read

Error codes: ATTACHMENT_NOT_FOUND

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

parentId*string
fileId*string

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/consolidation-groups/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  }}