Acreum Docs
Capital & assets

Distribution Policies

GET
/v1/distribution-policies

Lists distribution policies across the org, optionally filtered by legal_entity_id and/or status, each with its template and its resolved effective policy. A caller restricted to a subset of legal entities (an LE-scoped API key, or a role confined to a subset) sees only policies on entities it may act on.

Required scope: distributions:read

Pagination: cursor

Error codes: INVALID_CURSOR, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

legal_entity_id?string
Formatuuid
status?string
Value in"active""paused""archived"
cursor?string
limit?number

1..100, default 50

sort?string

Default: -created_at

Value in"-created_at""created_at"

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/distribution-policies'
{  "data": [    {      "adjustments": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "label": "string",          "measure": "decrease_in_balance",          "seq": 0,          "system_role": "accounts_receivable"        }      ],      "base": "net_income_ex_receipts",      "baseline_date": "2019-08-24",      "basis": "accrual",      "cadence": "monthly",      "cash_floor": "1234.50",      "cash_guard": "cap",      "created_at": "2019-08-24T14:15:22Z",      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",      "distribution_type": "operating_income",      "due_day": 0,      "effective": {        "base": "net_income_ex_receipts",        "basis": "accrual",        "cadence": "monthly",        "cash_floor": "1234.50",        "cash_guard": "cap",        "distribution_type": "operating_income",        "due_day": 0,        "excluded_lines": [          {            "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",            "direction": "add",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "label": "string",            "measure": "decrease_in_balance",            "seq": 0,            "system_role": "accounts_receivable",            "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"          }        ],        "holdback_amount": "1234.50",        "horizon_months": 0,        "lines": [          {            "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",            "direction": "add",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "label": "string",            "measure": "decrease_in_balance",            "origin": "template",            "seq": 0,            "system_role": "accounts_receivable",            "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"          }        ],        "min_amount": "1234.50",        "on_skip": "carry_forward",        "origins": {          "base": "inherited",          "basis": "inherited",          "cadence": "inherited",          "cash_floor": "inherited",          "cash_guard": "inherited",          "distribution_type": "inherited",          "due_day": "inherited",          "holdback_amount": "inherited",          "horizon_months": "inherited",          "min_amount": "inherited",          "on_skip": "inherited",          "period_lag": "inherited",          "upstream_basis": "inherited"        },        "period_lag": 0,        "upstream_basis": "declared"      },      "holdback_amount": "1234.50",      "horizon_months": 0,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",      "min_amount": "1234.50",      "on_skip": "carry_forward",      "opening_undistributed": "1234.50",      "period_lag": 0,      "status": "active",      "template": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "updated_at": "2019-08-24T14:15:22Z",      "upstream_basis": "declared"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/distribution-policies

Creates the (at most one) live distribution policy for a legal entity. A custom policy sends its formula (cadence, due_day and base required; the rest default). With template_id the policy is based on that template: it sends no formula field (each one sent is refused with 422, or 400 when it is a null the request validation rejects), only its baseline, opening undistributed, overrides of the template amounts and its own lines, and every role line of the template must resolve for the entity. A caller restricted to a subset of legal entities gets 403 for another entity's legal_entity_id.

Required scope: distributions:write

Error codes: VALIDATION_FAILED, NOT_FOUND, POLICY_ALREADY_EXISTS_FOR_LE, DISTRIBUTION_MANAGED_ENTITY_EXCLUDED, ACCOUNT_LEGAL_ENTITY_MISMATCH, LEDGER_ENTRY_REFUSED, MISSING_SYSTEM_ROLE_ACCOUNT, LEGAL_ENTITY_NOT_IN_SCOPE, DISTRIBUTION_POLICY_FIELD_FROM_TEMPLATE, DISTRIBUTION_POLICY_TEMPLATE_NOT_FOUND, DISTRIBUTION_POLICY_TEMPLATE_ARCHIVED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

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
adjustments?array<>

Ordered add/subtract lines — the policy's OWN lines (on a template-based policy they compute after the template's). seq is assigned server-side from array order.

Itemsitems <= 100
Default[]
base?string

Formula field — required on a custom policy. available_cash is not accepted in this release (its formula is a pending product decision).

Value in"net_income_ex_receipts""zero"
baseline_date?string

Defaults to the covered period start computed from cadence/due_day/period_lag against the org today. YYYY-MM-DD only — a partial date (e.g. "2026-09") or a full datetime is rejected.

Formatdate
basis?|

Null (default) means the org's default_reporting_basis.

Value in"accrual""cash"
cadence?string

Formula field — required on a custom policy.

Value in"monthly""quarterly""semi_annual""annual"
cash_floor?|

Cash guard floor, never negative. On a template-based policy an override: null or omitted inherits the template, 0.00 means none.

cash_guard?string
Default"cap"
Value in"cap""flag""off"
distribution_type?string
Default"operating_income"
Value in"operating_income""capital_event""distribution_in_kind""tax_distribution"
due_day?integer

Formula field — required on a custom policy. Day of month a due date falls on (never month-clamped).

Range1 <= value <= 28
holdback_amount?|

Held back, never negative. On a template-based policy an override: null or omitted inherits the template, 0.00 means none.

horizon_months?integer
Range1 <= value <= 36
Default12
legal_entity_id*string
Formatuuid
min_amount?|

Minimum distribution, never negative. On a template-based policy an override: null or omitted inherits the template, 0.00 means none.

on_skip?string
Default"carry_forward"
Value in"carry_forward""forfeit"
opening_undistributed?string

Either sign. Defaults to 0.00.

period_lag?integer

Periods back from the due date to the period the item covers; 1 = the prior period. At least 1: an item due inside the period it covers could never be declared (a declaration cannot be dated before its period ends).

Range1 <= value <= 12
Default1
template_id?|

The template to base the policy on (spec D29). Set: the formula comes from the template and every formula field must be omitted. Omitted or null: a custom policy.

Formatuuid
upstream_basis?string
Default"declared"
Value in"declared""received"

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/distribution-policies' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839"}'
{  "data": {    "adjustments": [      {        "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",        "direction": "add",        "label": "string",        "measure": "decrease_in_balance",        "seq": 0,        "system_role": "accounts_receivable"      }    ],    "base": "net_income_ex_receipts",    "baseline_date": "2019-08-24",    "basis": "accrual",    "cadence": "monthly",    "cash_floor": "1234.50",    "cash_guard": "cap",    "created_at": "2019-08-24T14:15:22Z",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "distribution_type": "operating_income",    "due_day": 0,    "effective": {      "base": "net_income_ex_receipts",      "basis": "accrual",      "cadence": "monthly",      "cash_floor": "1234.50",      "cash_guard": "cap",      "distribution_type": "operating_income",      "due_day": 0,      "excluded_lines": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "label": "string",          "measure": "decrease_in_balance",          "seq": 0,          "system_role": "accounts_receivable",          "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"        }      ],      "holdback_amount": "1234.50",      "horizon_months": 0,      "lines": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "label": "string",          "measure": "decrease_in_balance",          "origin": "template",          "seq": 0,          "system_role": "accounts_receivable",          "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"        }      ],      "min_amount": "1234.50",      "on_skip": "carry_forward",      "origins": {        "base": "inherited",        "basis": "inherited",        "cadence": "inherited",        "cash_floor": "inherited",        "cash_guard": "inherited",        "distribution_type": "inherited",        "due_day": "inherited",        "holdback_amount": "inherited",        "horizon_months": "inherited",        "min_amount": "inherited",        "on_skip": "inherited",        "period_lag": "inherited",        "upstream_basis": "inherited"      },      "period_lag": 0,      "upstream_basis": "declared"    },    "holdback_amount": "1234.50",    "horizon_months": 0,    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "min_amount": "1234.50",    "on_skip": "carry_forward",    "opening_undistributed": "1234.50",    "period_lag": 0,    "status": "active",    "template": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    },    "updated_at": "2019-08-24T14:15:22Z",    "upstream_basis": "declared"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/distribution-policies/{id}

Returns one distribution policy with its own adjustment lines, its template (id and name; null on a custom policy) and effective: the values it computes with, each field marked inherited (from the template) or own, its template lines minus its exclusions followed by its own lines, and the template lines it excluded. A caller restricted to a subset of legal entities gets 403 outside its scope.

Required scope: distributions:read

Error codes: VALIDATION_FAILED, DISTRIBUTION_POLICY_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/distribution-policies/497f6eca-6276-4993-bfeb-53cbbbba6f08'
{  "data": {    "adjustments": [      {        "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",        "direction": "add",        "label": "string",        "measure": "decrease_in_balance",        "seq": 0,        "system_role": "accounts_receivable"      }    ],    "base": "net_income_ex_receipts",    "baseline_date": "2019-08-24",    "basis": "accrual",    "cadence": "monthly",    "cash_floor": "1234.50",    "cash_guard": "cap",    "created_at": "2019-08-24T14:15:22Z",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "distribution_type": "operating_income",    "due_day": 0,    "effective": {      "base": "net_income_ex_receipts",      "basis": "accrual",      "cadence": "monthly",      "cash_floor": "1234.50",      "cash_guard": "cap",      "distribution_type": "operating_income",      "due_day": 0,      "excluded_lines": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "label": "string",          "measure": "decrease_in_balance",          "seq": 0,          "system_role": "accounts_receivable",          "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"        }      ],      "holdback_amount": "1234.50",      "horizon_months": 0,      "lines": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "label": "string",          "measure": "decrease_in_balance",          "origin": "template",          "seq": 0,          "system_role": "accounts_receivable",          "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"        }      ],      "min_amount": "1234.50",      "on_skip": "carry_forward",      "origins": {        "base": "inherited",        "basis": "inherited",        "cadence": "inherited",        "cash_floor": "inherited",        "cash_guard": "inherited",        "distribution_type": "inherited",        "due_day": "inherited",        "holdback_amount": "inherited",        "horizon_months": "inherited",        "min_amount": "inherited",        "on_skip": "inherited",        "period_lag": "inherited",        "upstream_basis": "inherited"      },      "period_lag": 0,      "upstream_basis": "declared"    },    "holdback_amount": "1234.50",    "horizon_months": 0,    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "min_amount": "1234.50",    "on_skip": "carry_forward",    "opening_undistributed": "1234.50",    "period_lag": 0,    "status": "active",    "template": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    },    "updated_at": "2019-08-24T14:15:22Z",    "upstream_basis": "declared"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PATCH
/v1/distribution-policies/{id}

Partial update of a policy's schedule, base, guards and/or own adjustment lines (a given adjustments array replaces every own line). A template-based policy accepts its status, baseline, opening undistributed, overrides of the template amounts (null re-inherits), own lines and excluded_template_line_ids (replaced whole); a formula field is refused with 422 (an explicit null on any of them but basis is a 400). The entity cannot be moved — there is no legal_entity_id field. Refused with 409 once the policy is archived; a caller restricted to a subset of legal entities gets 403 outside its scope.

Required scope: distributions:write

Error codes: VALIDATION_FAILED, ACCOUNT_LEGAL_ENTITY_MISMATCH, LEDGER_ENTRY_REFUSED, MISSING_SYSTEM_ROLE_ACCOUNT, LEGAL_ENTITY_NOT_IN_SCOPE, DISTRIBUTION_POLICY_NOT_FOUND, DISTRIBUTION_POLICY_ARCHIVED, DISTRIBUTION_POLICY_FIELD_FROM_TEMPLATE, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

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
adjustments?array<>

Replaces every existing OWN line (a template-based policy's template lines are untouched); seq reassigned 1..n from array order.

Itemsitems <= 100
base?string

available_cash is not accepted in this release (its formula is a pending product decision).

Value in"net_income_ex_receipts""zero"
baseline_date?string

YYYY-MM-DD only — a partial date (e.g. "2026-09") or a full datetime is rejected.

Formatdate
basis?|
Value in"accrual""cash"
cadence?string
Value in"monthly""quarterly""semi_annual""annual"
cash_floor?string|null
cash_guard?string
Value in"cap""flag""off"
distribution_type?string
Value in"operating_income""capital_event""distribution_in_kind""tax_distribution"
due_day?integer
Range1 <= value <= 28
excluded_template_line_ids?array<>

Template-based policies only: the ids of the template's lines this entity excludes, replaced whole ([] re-includes every line). Each id must be a line of the policy's current template (effective.lines[].id / effective.excluded_lines[].id), or 400 VALIDATION_FAILED naming it in detail. A custom policy refuses the field outright (400), even [] — omit it.

holdback_amount?string|null
horizon_months?integer
Range1 <= value <= 36
min_amount?string|null
on_skip?string
Value in"carry_forward""forfeit"
opening_undistributed?string
period_lag?integer
Range1 <= value <= 12
status?string

archived is terminal — a further PATCH is refused.

Value in"active""paused""archived"
upstream_basis?string
Value in"declared""received"

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/distribution-policies/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "adjustments": [      {        "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",        "direction": "add",        "label": "string",        "measure": "decrease_in_balance",        "seq": 0,        "system_role": "accounts_receivable"      }    ],    "base": "net_income_ex_receipts",    "baseline_date": "2019-08-24",    "basis": "accrual",    "cadence": "monthly",    "cash_floor": "1234.50",    "cash_guard": "cap",    "created_at": "2019-08-24T14:15:22Z",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "distribution_type": "operating_income",    "due_day": 0,    "effective": {      "base": "net_income_ex_receipts",      "basis": "accrual",      "cadence": "monthly",      "cash_floor": "1234.50",      "cash_guard": "cap",      "distribution_type": "operating_income",      "due_day": 0,      "excluded_lines": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "label": "string",          "measure": "decrease_in_balance",          "seq": 0,          "system_role": "accounts_receivable",          "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"        }      ],      "holdback_amount": "1234.50",      "horizon_months": 0,      "lines": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "label": "string",          "measure": "decrease_in_balance",          "origin": "template",          "seq": 0,          "system_role": "accounts_receivable",          "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"        }      ],      "min_amount": "1234.50",      "on_skip": "carry_forward",      "origins": {        "base": "inherited",        "basis": "inherited",        "cadence": "inherited",        "cash_floor": "inherited",        "cash_guard": "inherited",        "distribution_type": "inherited",        "due_day": "inherited",        "holdback_amount": "inherited",        "horizon_months": "inherited",        "min_amount": "inherited",        "on_skip": "inherited",        "period_lag": "inherited",        "upstream_basis": "inherited"      },      "period_lag": 0,      "upstream_basis": "declared"    },    "holdback_amount": "1234.50",    "horizon_months": 0,    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "min_amount": "1234.50",    "on_skip": "carry_forward",    "opening_undistributed": "1234.50",    "period_lag": 0,    "status": "active",    "template": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    },    "updated_at": "2019-08-24T14:15:22Z",    "upstream_basis": "declared"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/distribution-policies/{id}/copy-adjustments

Copies source_policy_id's effective adjustment lines — on a template-based source, its template's lines it does not exclude, then its own — onto this policy, replacing this policy's OWN lines. A template-based target keeps its template's lines and its exclusions. When both policies are on the same template, only the source's own lines are copied (the template's lines already reach this policy), so a self-copy leaves its own lines unchanged. No link to the source is kept. Every copied line is re-validated against THIS policy's legal entity — a source line that fails (e.g. an explicit account scoped to the source's own, different entity) leaves this policy untouched. More than 100 copied lines is refused with 422 DISTRIBUTION_POLICY_TOO_MANY_ADJUSTMENTS. A caller restricted to a subset of legal entities gets 403 unless BOTH policies are within its scope.

Required scope: distributions:write

Error codes: VALIDATION_FAILED, DISTRIBUTION_POLICY_NOT_FOUND, DISTRIBUTION_POLICY_ARCHIVED, ACCOUNT_LEGAL_ENTITY_MISMATCH, LEDGER_ENTRY_REFUSED, MISSING_SYSTEM_ROLE_ACCOUNT, DISTRIBUTION_POLICY_TOO_MANY_ADJUSTMENTS, LEGAL_ENTITY_NOT_IN_SCOPE, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

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
source_policy_id*string

The source policy whose adjustment lines replace this policy's. Every line is re-validated against THIS policy's legal entity.

Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/distribution-policies/497f6eca-6276-4993-bfeb-53cbbbba6f08/copy-adjustments' \  -H 'Idempotency-Key: string' \  -H 'Content-Type: application/json' \  -d '{  "source_policy_id": "30887e49-4385-4455-b697-b78c87e17368"}'
{  "data": {    "adjustments": [      {        "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",        "direction": "add",        "label": "string",        "measure": "decrease_in_balance",        "seq": 0,        "system_role": "accounts_receivable"      }    ],    "base": "net_income_ex_receipts",    "baseline_date": "2019-08-24",    "basis": "accrual",    "cadence": "monthly",    "cash_floor": "1234.50",    "cash_guard": "cap",    "created_at": "2019-08-24T14:15:22Z",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "distribution_type": "operating_income",    "due_day": 0,    "effective": {      "base": "net_income_ex_receipts",      "basis": "accrual",      "cadence": "monthly",      "cash_floor": "1234.50",      "cash_guard": "cap",      "distribution_type": "operating_income",      "due_day": 0,      "excluded_lines": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "label": "string",          "measure": "decrease_in_balance",          "seq": 0,          "system_role": "accounts_receivable",          "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"        }      ],      "holdback_amount": "1234.50",      "horizon_months": 0,      "lines": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "label": "string",          "measure": "decrease_in_balance",          "origin": "template",          "seq": 0,          "system_role": "accounts_receivable",          "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"        }      ],      "min_amount": "1234.50",      "on_skip": "carry_forward",      "origins": {        "base": "inherited",        "basis": "inherited",        "cadence": "inherited",        "cash_floor": "inherited",        "cash_guard": "inherited",        "distribution_type": "inherited",        "due_day": "inherited",        "holdback_amount": "inherited",        "horizon_months": "inherited",        "min_amount": "inherited",        "on_skip": "inherited",        "period_lag": "inherited",        "upstream_basis": "inherited"      },      "period_lag": 0,      "upstream_basis": "declared"    },    "holdback_amount": "1234.50",    "horizon_months": 0,    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "min_amount": "1234.50",    "on_skip": "carry_forward",    "opening_undistributed": "1234.50",    "period_lag": 0,    "status": "active",    "template": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    },    "updated_at": "2019-08-24T14:15:22Z",    "upstream_basis": "declared"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/distribution-policies/{id}/detach

Makes a template-based policy custom with a copy of its template's current formula and resolved amounts, and as its own lines the template's lines it had not excluded followed by its own (spec D30). No link to the template is kept. A custom policy is returned unchanged. Refused with 409 once the policy is archived, and with 422 DISTRIBUTION_POLICY_TOO_MANY_ADJUSTMENTS when the copied lines would exceed 100; a caller restricted to a subset of legal entities gets 403 outside its scope.

Required scope: distributions:write

Error codes: VALIDATION_FAILED, DISTRIBUTION_POLICY_NOT_FOUND, DISTRIBUTION_POLICY_ARCHIVED, DISTRIBUTION_POLICY_TOO_MANY_ADJUSTMENTS, LEGAL_ENTITY_NOT_IN_SCOPE, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

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

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/distribution-policies/497f6eca-6276-4993-bfeb-53cbbbba6f08/detach' \  -H 'Idempotency-Key: string'
{  "data": {    "adjustments": [      {        "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",        "direction": "add",        "label": "string",        "measure": "decrease_in_balance",        "seq": 0,        "system_role": "accounts_receivable"      }    ],    "base": "net_income_ex_receipts",    "baseline_date": "2019-08-24",    "basis": "accrual",    "cadence": "monthly",    "cash_floor": "1234.50",    "cash_guard": "cap",    "created_at": "2019-08-24T14:15:22Z",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "distribution_type": "operating_income",    "due_day": 0,    "effective": {      "base": "net_income_ex_receipts",      "basis": "accrual",      "cadence": "monthly",      "cash_floor": "1234.50",      "cash_guard": "cap",      "distribution_type": "operating_income",      "due_day": 0,      "excluded_lines": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "label": "string",          "measure": "decrease_in_balance",          "seq": 0,          "system_role": "accounts_receivable",          "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"        }      ],      "holdback_amount": "1234.50",      "horizon_months": 0,      "lines": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "label": "string",          "measure": "decrease_in_balance",          "origin": "template",          "seq": 0,          "system_role": "accounts_receivable",          "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"        }      ],      "min_amount": "1234.50",      "on_skip": "carry_forward",      "origins": {        "base": "inherited",        "basis": "inherited",        "cadence": "inherited",        "cash_floor": "inherited",        "cash_guard": "inherited",        "distribution_type": "inherited",        "due_day": "inherited",        "holdback_amount": "inherited",        "horizon_months": "inherited",        "min_amount": "inherited",        "on_skip": "inherited",        "period_lag": "inherited",        "upstream_basis": "inherited"      },      "period_lag": 0,      "upstream_basis": "declared"    },    "holdback_amount": "1234.50",    "horizon_months": 0,    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "min_amount": "1234.50",    "on_skip": "carry_forward",    "opening_undistributed": "1234.50",    "period_lag": 0,    "status": "active",    "template": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    },    "updated_at": "2019-08-24T14:15:22Z",    "upstream_basis": "declared"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/distribution-policies/{id}/position

Computes the policy's running position as of as_of (defaults to the org's today). The earned, receipts and paid windows all run [baseline_date, as_of] INCLUSIVE of as_of — a distribution paid today already counts as paid. On a template-based policy the statement names the template, marks each adjustment's origin and lists the excluded template lines apart, with no amount. A caller restricted to a subset of legal entities gets 403 outside its scope.

Required scope: reports:read, distributions:read

Error codes: VALIDATION_FAILED, DISTRIBUTION_POLICY_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, MISSING_SYSTEM_ROLE_ACCOUNT, ACCOUNT_LEGAL_ENTITY_MISMATCH

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

Query Parameters

as_of?string

Defaults to the org today. YYYY-MM-DD only — a partial date (e.g. "2026-09") or a full datetime is rejected.

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/distribution-policies/497f6eca-6276-4993-bfeb-53cbbbba6f08/position'
{  "data": {    "as_of": "2019-08-24",    "baseline_date": "2019-08-24",    "basis": "accrual",    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "policy_id": "ee9b03e0-6495-427a-85a5-34444d24ae04",    "statement": {      "adjustments": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "amount": "1234.50",          "closing_balance": "1234.50",          "direction": "add",          "label": "string",          "measure": "decrease_in_balance",          "opening_balance": "1234.50",          "origin": "template",          "seq": 0,          "system_role": "accounts_receivable",          "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc"        }      ],      "base": {        "amount": "1234.50",        "available_cash": "1234.50",        "dividend_income_excluded": "1234.50",        "kind": "net_income_ex_receipts",        "net_income": "1234.50"      },      "bound_by": "income",      "cash_floor": "1234.50",      "cash_guard": "cap",      "cash_shortfall": "1234.50",      "computed_amount": "1234.50",      "distribution_type": "operating_income",      "entitlement": "1234.50",      "excluded_adjustments": [        {          "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",          "direction": "add",          "label": "string",          "measure": "decrease_in_balance",          "seq": 0,          "system_role": "accounts_receivable"        }      ],      "flags": [        "prior_period_open"      ],      "headroom": "1234.50",      "holdback": "1234.50",      "income_lens": "1234.50",      "min_amount": "1234.50",      "opening_undistributed": "1234.50",      "origins": {        "base": "inherited",        "basis": "inherited",        "cadence": "inherited",        "cash_floor": "inherited",        "cash_guard": "inherited",        "distribution_type": "inherited",        "due_day": "inherited",        "holdback_amount": "inherited",        "horizon_months": "inherited",        "min_amount": "inherited",        "on_skip": "inherited",        "period_lag": "inherited",        "upstream_basis": "inherited"      },      "paid": {        "approved_items": "1234.50",        "cascaded_documents": "1234.50",        "declarations": "1234.50",        "total": "1234.50"      },      "position": "1234.50",      "recommendation": "1234.50",      "status": "staged",      "template": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "upstream": {        "pending_downstream": [          {            "adjusted_amount": "1234.50",            "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",            "ownership_percentage": "string",            "scheduled_distribution_id": "373da7f1-1d9f-4bff-8e77-802624a5997a",            "share": "1234.50"          }        ],        "receipts": "1234.50",        "total": "1234.50"      }    },    "windows": {      "cash_as_of": "2019-08-24",      "earned_to": "2019-08-24",      "paid_to_exclusive": "2019-08-24",      "receipts_to": "2019-08-24"    }  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}