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
access-tokenAuthorizationBearer <token>legal_entity_id?stringuuidstatus?string"active""paused""archived"cursor?stringlimit?number1..100, default 50
sort?stringDefault: -created_at
"-created_at""created_at"application/json- 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" }}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
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
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.
items <= 100[]base?stringFormula field — required on a custom policy. available_cash is not accepted in this release (its formula is a pending product decision).
"net_income_ex_receipts""zero"baseline_date?stringDefaults 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.
datebasis?|Null (default) means the org's default_reporting_basis.
"accrual""cash"cadence?stringFormula field — required on a custom policy.
"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"cap""cap""flag""off"distribution_type?string"operating_income""operating_income""capital_event""distribution_in_kind""tax_distribution"due_day?integerFormula field — required on a custom policy. Day of month a due date falls on (never month-clamped).
1 <= value <= 28holdback_amount?|Held back, never negative. On a template-based policy an override: null or omitted inherits the template, 0.00 means none.
horizon_months?integer1 <= value <= 3612legal_entity_id*stringuuidmin_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"carry_forward""carry_forward""forfeit"opening_undistributed?stringEither sign. Defaults to 0.00.
period_lag?integerPeriods 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).
1 <= value <= 121template_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.
uuidupstream_basis?string"declared""declared""received"application/json- 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 }}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
access-tokenAuthorizationBearer <token>id*stringuuidapplication/json- 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 }}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
access-tokenAuthorizationBearer <token>id*stringuuidIdempotency-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
adjustments?array<>Replaces every existing OWN line (a template-based policy's template lines are untouched); seq reassigned 1..n from array order.
items <= 100base?stringavailable_cash is not accepted in this release (its formula is a pending product decision).
"net_income_ex_receipts""zero"baseline_date?stringYYYY-MM-DD only — a partial date (e.g. "2026-09") or a full datetime is rejected.
datebasis?|"accrual""cash"cadence?string"monthly""quarterly""semi_annual""annual"cash_floor?string|nullcash_guard?string"cap""flag""off"distribution_type?string"operating_income""capital_event""distribution_in_kind""tax_distribution"due_day?integer1 <= value <= 28excluded_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|nullhorizon_months?integer1 <= value <= 36min_amount?string|nullon_skip?string"carry_forward""forfeit"opening_undistributed?stringperiod_lag?integer1 <= value <= 12status?stringarchived is terminal — a further PATCH is refused.
"active""paused""archived"upstream_basis?string"declared""received"application/json- 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 }}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
access-tokenAuthorizationBearer <token>id*stringuuidIdempotency-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
source_policy_id*stringThe source policy whose adjustment lines replace this policy's. Every line is re-validated against THIS policy's legal entity.
uuidapplication/json- 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 }}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
access-tokenAuthorizationBearer <token>id*stringuuidIdempotency-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- 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 }}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
access-tokenAuthorizationBearer <token>id*stringuuidas_of?stringDefaults to the org today. YYYY-MM-DD only — a partial date (e.g. "2026-09") or a full datetime is rejected.
dateapplication/json- 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 }}