Acreum Docs
Capital & assets

Loans

List loans

GET
/v1/loans

Required scope: loans:read

Pagination: cursor

Error codes: INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

status?string
Value in"pending""active""matured""paid_off""defaulted""cancelled"
loan_side?string
Value in"borrower""lender"
counterparty_id?string
Formatuuid
legal_entity_id?string
Formatuuid
legal_entity_ids?array<>

Narrow to loans of any of these legal entities. Comma-separated, or the parameter repeated.

view?string

A preset view. due_30: the next payment is due on or before the org's today + 30 days (overdue ones included). needs_attention: a period is past due or not billed, or the loan is in default. maturing_12m: the loan matures on or before the org's today + 12 months and is not finished (matured, paid off, defaulted or cancelled).

Value in"due_30""needs_attention""maturing_12m"
property_id?string

Narrow to loans that have a participant row on this property. Matches whether or not the participant is current: a window that has already ended, and a participant whose release_status is released, both still match. This filter is deliberately not an as-of-today question, so its result set does not change with the calendar.

Formatuuid
search?string

Search loan name, loan number or counterparty name

cursor?string
limit?number

1..500, default 50

sort?string

Default: next_payment_date

Value in"created_at""-created_at""maturity_date""-maturity_date""loan_number""-loan_number""name""-name""next_payment_date""-next_payment_date""next_payment_amount""-next_payment_amount""counterparty_name""-counterparty_name"

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/loans'
{  "data": [    {      "amortization_type": "level_payment",      "attention": {        "escrow_shortfall": "1234.50",        "extension_notice_deadline": "2019-08-24",        "in_default": true,        "no_collateral": true,        "periods_not_billed": 0      },      "commitment_amount": "1234.50",      "counterparty_name": "string",      "created_at": "2019-08-24T14:15:22Z",      "currency": "USD",      "current_balance": "1234.50",      "current_rate": {        "all_in_rate": "string",        "fixed_rate": "string",        "index_type": "sofr",        "index_variant": "term_1m",        "next_reset_date": "2019-08-24",        "rate_type": "fixed",        "spread": "string"      },      "funded_amount": "1234.50",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_number": "string",      "loan_side": "borrower",      "maturity_date": "2019-08-24",      "name": "string",      "next_payment": {        "amount": "1234.50",        "billed": true,        "date_status": "upcoming",        "days_past_due": 0,        "days_until": 0,        "direction": "pay",        "due_date": "2019-08-24",        "fees": "1234.50",        "interest_and_escrow": "1234.50",        "principal": "1234.50"      },      "past_due": {        "amount": "1234.50",        "count": 0,        "days_past_due": 0,        "oldest_due_date": "2019-08-24"      },      "payment_frequency": "monthly",      "status": "pending"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}

Create a loan

POST
/v1/loans

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: LOAN_PARTICIPANT_PROPERTY_NOT_ACTIVE, VALIDATION_FAILED, LOAN_COLLATERAL_REQUIRED, LOAN_COLLATERAL_CHOICE_INVALID, LOAN_COLLATERAL_LENDER_SIDE, LOAN_COLLATERAL_OWNER_MISMATCH, 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. 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
accrued_interest_account_id?string
Formatuuid
amortization_type*string
Value in"level_payment""interest_only""io_then_amortizing""custom""balloon"
balloon_amortization_months?number

Balloon only: the amortization period in months the payment is sized on. Required when amortization_type is "balloon".

Range1 <= value
collateral?|null

What secures the loan: a list of properties, or unsecured: true. Required for a borrower loan (400 LOAN_COLLATERAL_REQUIRED without it); refused on a lender loan (LOAN_COLLATERAL_LENDER_SIDE). The loan and its collateral are saved together. null is read as absent.

commitment_amount*string
counterparty_id*string
Formatuuid
currency?string
Default"USD"
funded_amount?string
hedge_required?boolean

The lender requires an interest-rate cap or swap on this loan (loan hedges spec §7).

Defaultfalse
interest_account_id?string
Formatuuid
io_end_date?string
Formatdate
legal_entity_id*string
Formatuuid
loan_account_id?string
Formatuuid
loan_side*string
Value in"borrower""lender"
maturity_date*string
Formatdate
name*string
notes?string
origination_date*string
Formatdate
payment_day*number
Range1 <= value <= 31
payment_frequency*string
Value in"monthly""quarterly""semi_annual""annual"
rate_terms*

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans' \  -H 'Content-Type: application/json' \  -d '{  "amortization_type": "level_payment",  "commitment_amount": "1234.50",  "counterparty_id": "fd38dae9-b300-4017-a630-101c4279eafd",  "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",  "loan_side": "borrower",  "maturity_date": "2019-08-24",  "name": "string",  "origination_date": "2019-08-24",  "payment_day": 1,  "payment_frequency": "monthly",  "rate_terms": {    "day_count_convention": "actual_360",    "effective_from": "2019-08-24",    "rate_type": "fixed"  }}'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/loans/summary

The five debt page cards over the loans the list filters select, finished loans (matured, paid off, defaulted, cancelled) excluded: cash to pay and to receive in the next 30 days (open periods due on or before the org's today + 30 that are not past due), past due, principal maturing within 12 months, and outstanding principal by side.

Required scope: loans:read

Error codes: VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Query Parameters

status?string
Value in"pending""active""matured""paid_off""defaulted""cancelled"
loan_side?string
Value in"borrower""lender"
legal_entity_ids?array<>

Narrow to loans of any of these legal entities. Comma-separated, or the parameter repeated.

search?string

Search loan name, loan number or counterparty name

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/loans/summary'
{  "data": {    "maturing_12m": {      "loan_count": 0,      "principal": "1234.50",      "soonest": {        "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",        "maturity_date": "2019-08-24",        "name": "string"      }    },    "outstanding": {      "owed": "1234.50",      "owed_to_you": "1234.50",      "total": "1234.50",      "unresolved_count": 0    },    "past_due": {      "amount": "1234.50",      "count": 0,      "loan_count": 0,      "oldest_days": 0    },    "to_pay_30d": {      "amount": "1234.50",      "count": 0,      "next_date": "2019-08-24"    },    "to_receive_30d": {      "amount": "1234.50",      "count": 0,      "next_date": "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  }}

Get a loan by id

GET
/v1/loans/{id}

Required scope: loans:read

Error codes: LOAN_NOT_FOUND

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/loans/string'
{  "data": {    "accrued_interest_account_id": "816293ef-bd3f-4106-821e-1395631b49ed",    "amortization_type": "level_payment",    "balloon_amortization_months": 0,    "collateral_locked_through": "2019-08-24",    "commitment_amount": "1234.50",    "counterparty_id": "fd38dae9-b300-4017-a630-101c4279eafd",    "counterparty_name": "string",    "created_at": "2019-08-24T14:15:22Z",    "currency": "USD",    "current_balance": "1234.50",    "default_status": {      "cured_on": "2019-08-24",      "declared_on": "2019-08-24",      "in_default": true,      "rate_uplift": "0.05000",      "reason": "string"    },    "funded_amount": "1234.50",    "funding_status": "unfunded",    "hedge_required": true,    "hedged_all_in_rate": "0.06333",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "interest_account_id": "5bb40884-7479-471d-9666-8eed4b26ee60",    "io_end_date": "2019-08-24",    "is_unsecured": true,    "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",    "loan_account_id": "ac448ec3-3776-403c-9e43-f2409a0e55ef",    "loan_number": "string",    "loan_side": "borrower",    "maturity_date": "2019-08-24",    "name": "string",    "notes": "string",    "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",    "origination_date": "2019-08-24",    "payment_day": 0,    "payment_frequency": "monthly",    "prepayment_terms": [      {        "description": "string",        "end_date": "2019-08-24",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "penalty_pct": "2.00000",        "provision_type": "lockout",        "start_date": "2019-08-24"      }    ],    "rate_terms": [      {        "compounding": "simple",        "day_count_convention": "actual_360",        "effective_from": "2019-08-24",        "effective_rate": "string",        "effective_to": "2019-08-24",        "fixed_rate": "0.0525",        "floor_applies_to": "index",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "index_type": "sofr",        "index_variant": "term_1m",        "lookback_days": 0,        "lookback_method": "observation_shift",        "rate_cap": "string",        "rate_floor": "string",        "rate_type": "fixed",        "reset_frequency": "monthly",        "spread": "0.0250"      }    ],    "status": "pending",    "updated_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Update a loan

PATCH
/v1/loans/{id}

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: LOAN_COLLATERAL_RELEASED_NEEDS_END_DATE, LOAN_COLLATERAL_UNSECURED_CONFLICT, LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_PRINCIPAL_BASIS_IMMUTABLE, LOAN_TERMS_REQUIRE_AMENDMENT, LOAN_COLLATERAL_LENDER_SIDE, LOAN_COLLATERAL_COVERAGE_GAP, LOAN_COLLATERAL_WINDOW_OUTSIDE_LOAN, LOAN_COLLATERAL_REQUIRED, 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

Request Body

application/json
  1. body
accrued_interest_account_id?string
Formatuuid
amortization_type?string
Value in"level_payment""interest_only""io_then_amortizing""custom""balloon"
balloon_amortization_months?number

Balloon only: the amortization period in months the payment is sized on. Required when amortization_type is "balloon".

Range1 <= value
commitment_amount?string
counterparty_id?string
Formatuuid
currency?string
funded_amount?string
hedge_required?boolean

The lender requires an interest-rate cap or swap on this loan. Editable in any status.

interest_account_id?string
Formatuuid
io_end_date?string
Formatdate
loan_account_id?string
Formatuuid
loan_side?string
Value in"borrower""lender"
maturity_date?string
Formatdate
name?string
notes?string
origination_date?string
Formatdate
payment_day?number
Range1 <= value <= 31
payment_frequency?string
Value in"monthly""quarterly""semi_annual""annual"

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/loans/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Delete a loan

DELETE
/v1/loans/{id}

Deletes a pending loan. A loan with swaps or caps is refused unless ?cascade=true, which deletes them with it (marks and settlement schedules included); a hedge holding a recorded settlement blocks the delete either way.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_HAS_ACTIVE_HEDGES, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cascade?boolean

Delete the loan together with its swaps and caps, their fair-value marks and their settlement schedules, in one transaction. Omitted or false, a loan with any hedge is refused with LOAN_HAS_ACTIVE_HEDGES, whose context.hedge_ids names them. A hedge holding a recorded settlement is refused even with cascade=true (context.cascade_allowed false).

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: VALIDATION_FAILED, 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/loans/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"}
POST
/v1/loans/{id}/activate

Required scope: loans:activate

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: MISSING_SYSTEM_ROLE_ACCOUNT, LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_COLLATERAL_REQUIRED, LOAN_COLLATERAL_NOT_LIVE_ON_DATE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, PERIOD_LOCKED, PERIOD_CLOSED, PERIOD_MISSING, NO_OPEN_PERIOD_FOR_CORRECTION, DIMENSION_REQUIRED

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

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/activate'
{  "data": {    "schedule_entries_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

List a loan's amendments

GET
/v1/loans/{id}/amendments

Amendments on the loan, 100 per page; drain meta.next_cursor for the rest. Default sort is newest first (-amendment_number); ties break on id.

Required scope: loans:read

Pagination: cursor

Error codes: LOAN_NOT_FOUND, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: -amendment_number

Value in"-amendment_number""amendment_number""effective_date""-effective_date"
search?string

Case-insensitive substring match on: description, amendment_type.

ids?string

Up to 100 ids; returns those rows regardless of other filters and ignores search.

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/loans/string/amendments'
{  "data": [    {      "amendment_number": 0,      "amendment_type": "rate_change",      "changed_fields": {},      "created_at": "2019-08-24T14:15:22Z",      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",      "description": "string",      "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",      "effective_date": "2019-08-24",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}

Record a loan amendment

POST
/v1/loans/{id}/amendments

Records an amendment and, unless it is covenant_waiver or other, rebuilds the schedule from effective_date (billed or paid periods are kept). Amendments are immutable: undo one by recording another that restores the old values. effective_date must be on or before the org's today.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_AMENDMENT_LOAN_NOT_ACTIVE, LOAN_AMENDMENT_EFFECTIVE_DATE_INVALID, LOAN_AMENDMENT_TERMS_INVALID, LOAN_AMENDMENT_BEFORE_ACCRUED_THROUGH, LOAN_RATE_TERMS_MISSING, LOAN_PRINCIPAL_BASIS_UNAVAILABLE, 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

Request Body

application/json
  1. body
amendment_type*string
Value in"rate_change""maturity_extension""principal_increase""payment_change""restructure""covenant_waiver""other"
description*string

Why the terms changed (the reason). Required.

document_id?|

The signed amendment document, if any.

Formatuuid
effective_date*string

On or before the org's today and after origination_date. A rate change may not be before interest is accrued through.

Formatdate
rate_term?

The full rate terms from effective_date (replaces the generation in force). effective_rate is required unless rate_type is fixed.

terms?

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/amendments' \  -H 'Content-Type: application/json' \  -d '{  "amendment_type": "rate_change",  "description": "string",  "effective_date": "2019-08-24"}'
{  "data": {    "amendment": {      "amendment_number": 0,      "amendment_type": "rate_change",      "changed_fields": {},      "created_at": "2019-08-24T14:15:22Z",      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",      "description": "string",      "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",      "effective_date": "2019-08-24",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3"    },    "regeneration": {      "new_final_due_date": "2019-08-24",      "new_payment_amount": "1234.50",      "schedule_version": 0    }  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/loans/{id}/default

Opens a default window from declared_on. From that day every accrual adds principal × the default uplift × days; the uplift comes from the loan's delinquency terms (default_rate_uplift) at declaration and stays with the window. declared_on may be in the past — a catch-up loan_accrual is posted at once for the days already accrued, on the principal outstanding on each day, dated the accrued-through date — but not in the future, not before origination, and not before the loan's latest cure (windows never overlap). Refused while the loan is already in default, when the terms carry no uplift, and for a loan that is not active.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_DEFAULT_LOAN_NOT_ACTIVE, LOAN_DEFAULT_DATE_INVALID, LOAN_RATE_TERMS_MISSING, PERIOD_CLOSED, PERIOD_LOCKED, PERIOD_MISSING, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_ALREADY_IN_DEFAULT, LOAN_DEFAULT_UPLIFT_NOT_SET

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

The first day in default. May be in the past (the uplift for days already accrued is posted at once); not after the org's today, not before origination, not before the loan's latest cure.

Formatdate
reason*string
Length1 <= length <= 500

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/default' \  -H 'Content-Type: application/json' \  -d '{  "declared_on": "2019-08-24",  "reason": "Notice of default dated 2026-09-01"}'
{  "data": {    "cured_on": "2019-08-24",    "declared_on": "2019-08-24",    "in_default": true,    "rate_uplift": "0.05000",    "reason": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Cure a loan default

POST
/v1/loans/{id}/default/cure

Closes the open default window on cured_on, the first day no longer in default. cured_on may be in the past — the uplift already accrued for the days from it is taken back at once (a negative loan_accrual at the window's own uplift, dated the accrued-through date) — but not in the future and not before declared_on; equal to declared_on withdraws the default (no uplift at all). Refused when the loan is not in default and for a loan that is not active.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_DEFAULT_LOAN_NOT_ACTIVE, LOAN_DEFAULT_DATE_INVALID, LOAN_RATE_TERMS_MISSING, PERIOD_CLOSED, PERIOD_LOCKED, PERIOD_MISSING, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_NOT_IN_DEFAULT

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

The first day no longer in default (the window is [declared_on, cured_on)). May be in the past (the uplift already accrued for the days from it is taken back); not after the org's today, not before declared_on. Equal to declared_on withdraws the default.

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/default/cure' \  -H 'Content-Type: application/json' \  -d '{  "cured_on": "2019-08-24"}'
{  "data": {    "cured_on": "2019-08-24",    "declared_on": "2019-08-24",    "in_default": true,    "rate_uplift": "0.05000",    "reason": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/loans/{id}/delinquency-terms

Grace days, the payment waterfall, the late fee and the default-rate uplift. A loan that never had terms set answers the defaults: grace_days 0; fees, interest, principal; late_fee_basis none with late_fee_cadence once; no default_rate_uplift.

Required scope: loans:read

Error codes: LOAN_NOT_FOUND

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/loans/string/delinquency-terms'
{  "data": {    "default_rate_uplift": "0.05",    "grace_days": 10,    "late_fee_basis": "pct_past_due_amount",    "late_fee_cadence": "monthly",    "late_fee_value": "0.05",    "payment_waterfall": [      "fees",      "interest",      "principal"    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
PUT
/v1/loans/{id}/delinquency-terms

Replaces the whole object (late_fee_basis and late_fee_cadence are required). payment_waterfall must name fees, interest and principal once each; late_fee_value is required for a fee basis and must be null for none (a pct_* value is a decimal fraction from 0 to 1, flat is money above 0); late_fee_cadence must be once when there is no fee; default_rate_uplift is from 0 to 1. Anything else is 400 VALIDATION_FAILED. Returns the stored terms.

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, 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

Request Body

application/json
  1. body
default_rate_uplift?|

Added to the interest rate while the loan is in default (0.05 = +5 percentage points). Null = the note has none, and default cannot be declared.

grace_days*number

Days after the due date before an unpaid period is past due. 0 = past due the day after.

Range0 <= value <= 365
late_fee_basis*string

What the late fee is computed on: none (no fee), pct_scheduled_payment (late_fee_value × the period's scheduled payment), pct_past_due_amount (late_fee_value × what the period still owes, fees excluded, on the fee date), or flat (late_fee_value is the fee).

Value in"none""pct_scheduled_payment""pct_past_due_amount""flat"
late_fee_cadence*string

How often the fee is charged while the period stays unpaid: once; monthly (again each month after the first fee); per_billing_period (again each time a later due date passes). Each repeat is priced on the day it is charged. Must be once when late_fee_basis is none.

Value in"once""monthly""per_billing_period"
late_fee_value?|

A decimal fraction for the pct_* bases (0.05 = 5%), money for flat. Null when the basis is none.

payment_waterfall*array<>

The order a payment is applied in: fees, interest and principal, each exactly once.

Items3 <= items <= 3

Response Body

application/json
  1. response
data*
meta*
curl -X PUT 'https://api.acreum.io/v1/loans/string/delinquency-terms' \  -H 'Content-Type: application/json' \  -d '{  "grace_days": 10,  "late_fee_basis": "pct_past_due_amount",  "late_fee_cadence": "monthly",  "payment_waterfall": [    "fees",    "interest",    "principal"  ]}'
{  "data": {    "default_rate_uplift": "0.05",    "grace_days": 10,    "late_fee_basis": "pct_past_due_amount",    "late_fee_cadence": "monthly",    "late_fee_value": "0.05",    "payment_waterfall": [      "fees",      "interest",      "principal"    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/loans/{id}/drawdown

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: MISSING_SYSTEM_ROLE_ACCOUNT, LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_REGENERATION_BLOCKED_BY_CURTAILMENT, LOAN_COLLATERAL_REQUIRED, LOAN_COLLATERAL_NOT_LIVE_ON_DATE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, PERIOD_LOCKED, PERIOD_CLOSED, PERIOD_MISSING, NO_OPEN_PERIOD_FOR_CORRECTION, DIMENSION_REQUIRED

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

Drawdown amount (must be positive; ≤ remaining commitment)

drawdown_date*string
Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/drawdown' \  -H 'Content-Type: application/json' \  -d '{  "amount": "1234.50",  "drawdown_date": "2019-08-24"}'
{  "data": {    "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",    "funded_amount": "1234.50",    "funding_status": "unfunded"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

List a loan's escrows

GET
/v1/loans/{id}/escrows

Every escrow (active and closed) with its current deposit, letters, balance from the GL, funded balance (deposits whose bill is paid) and shortfall flag. Oldest first (created_at) by default.

Required scope: loans:read

Pagination: cursor

Error codes: LOAN_NOT_FOUND, LOAN_ESCROW_DIMENSION_MISSING, LOAN_ESCROW_ROLE_ACCOUNT_MISSING, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: created_at

Value in"created_at""-created_at""name""-name"
search?string

Case-insensitive substring match on: name, escrow_type.

ids?string

Up to 100 ids; returns those rows regardless of other filters and ignores search.

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/loans/string/escrows'
{  "data": [    {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "balance": "1234.50",      "billed_unpaid": "1234.50",      "closed_at": "2019-08-24",      "current_deposit": "1234.50",      "deposit_history": [        {          "amount": "1234.50",          "effective_date": "2019-08-24"        }      ],      "escrow_type": "tax",      "funded_balance": "1234.50",      "has_movements": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",      "name": "string",      "required_balance": "1234.50",      "shortfall": true,      "status": "active"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}

Add an escrow to a loan

POST
/v1/loans/{id}/escrows

Creates the escrow with its first deposit letter and re-prices every unbilled period due on or after the letter's effective_date (repriced_periods says how many changed). Billed periods keep the escrow their bill carried.

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_ESCROW_DIMENSION_MISSING, LOAN_ESCROW_ROLE_ACCOUNT_MISSING, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_ESCROW_DEPOSIT_BEFORE_BILLED, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, LOAN_ESCROW_ACCOUNT_NOT_ALLOWED

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
account_id?string

Overrides the role account for this escrow; must be usable by the loan's legal entity.

Formatuuid
deposit*
escrow_type*string
Value in"tax""insurance""replacement_reserve""ti_lc_reserve""other"
name*string

Unique on the loan.

Lengthlength <= 120
required_balance*string

The lender's minimum balance; 0.00 = none.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/escrows' \  -H 'Content-Type: application/json' \  -d '{  "deposit": {    "amount": "1234.50",    "effective_date": "2019-08-24"  },  "escrow_type": "tax",  "name": "string",  "required_balance": "1234.50"}'
{  "data": {    "escrow": {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "balance": "1234.50",      "billed_unpaid": "1234.50",      "closed_at": "2019-08-24",      "current_deposit": "1234.50",      "deposit_history": [        {          "amount": "1234.50",          "effective_date": "2019-08-24"        }      ],      "escrow_type": "tax",      "funded_balance": "1234.50",      "has_movements": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",      "name": "string",      "required_balance": "1234.50",      "shortfall": true,      "status": "active"    },    "repriced_periods": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Edit an escrow

PATCH
/v1/loans/{id}/escrows/{escrowId}

Name, minimum balance, and the account override — the account only while no journal line carries the escrow. Deposits change through POST …/deposits.

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_ESCROW_DIMENSION_MISSING, LOAN_ESCROW_ROLE_ACCOUNT_MISSING, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_ESCROW_NOT_FOUND, LOAN_ESCROW_CLOSED, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, LOAN_ESCROW_ACCOUNT_NOT_ALLOWED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
escrowId*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
account_id?|

Only while no journal line carries the escrow; null returns to the role account.

Formatuuid
name?string
Lengthlength <= 120
required_balance?string

The lender's minimum balance; 0.00 = none.

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/loans/string/escrows/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "escrow": {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "balance": "1234.50",      "billed_unpaid": "1234.50",      "closed_at": "2019-08-24",      "current_deposit": "1234.50",      "deposit_history": [        {          "amount": "1234.50",          "effective_date": "2019-08-24"        }      ],      "escrow_type": "tax",      "funded_balance": "1234.50",      "has_movements": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",      "name": "string",      "required_balance": "1234.50",      "shortfall": true,      "status": "active"    },    "repriced_periods": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Close an escrow

POST
/v1/loans/{id}/escrows/{escrowId}/close

Only at a zero balance (409 LOAN_ESCROW_NOT_EMPTY), and closed_at must fall strictly after the latest billed due date (422 LOAN_ESCROW_CLOSE_BEFORE_BILLED), and no unbilled period due before closed_at may still owe it a deposit (422 LOAN_ESCROW_CLOSE_LEAVES_UNBILLED_DEPOSIT). Prices no deposit from closed_at; unbilled periods from that date are re-priced.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_ESCROW_DIMENSION_MISSING, LOAN_ESCROW_ROLE_ACCOUNT_MISSING, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_ESCROW_NOT_FOUND, LOAN_ESCROW_CLOSED, LOAN_ESCROW_NOT_EMPTY, LOAN_ESCROW_CLOSE_BEFORE_BILLED, LOAN_ESCROW_CLOSE_LEAVES_UNBILLED_DEPOSIT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
escrowId*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
closed_at*string

On or before the org's today. No deposit is priced from this date.

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/escrows/string/close' \  -H 'Content-Type: application/json' \  -d '{  "closed_at": "2019-08-24"}'
{  "data": {    "escrow": {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "balance": "1234.50",      "billed_unpaid": "1234.50",      "closed_at": "2019-08-24",      "current_deposit": "1234.50",      "deposit_history": [        {          "amount": "1234.50",          "effective_date": "2019-08-24"        }      ],      "escrow_type": "tax",      "funded_balance": "1234.50",      "has_movements": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",      "name": "string",      "required_balance": "1234.50",      "shortfall": true,      "status": "active"    },    "repriced_periods": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/loans/{id}/escrows/{escrowId}/deposits

The lender's new monthly deposit from effective_date on (the annual escrow analysis). Re-prices every unbilled period due on or after it; refused before the latest billed due date. A letter for a date that already has one replaces it.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_ESCROW_DIMENSION_MISSING, LOAN_ESCROW_ROLE_ACCOUNT_MISSING, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_ESCROW_NOT_FOUND, LOAN_ESCROW_CLOSED, LOAN_ESCROW_DEPOSIT_BEFORE_BILLED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
escrowId*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
amount*string

The monthly deposit from the lender's escrow-analysis letter; 0 or more.

effective_date*string

Prices every period due on or after this date. May not precede the latest billed due date.

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/escrows/string/deposits' \  -H 'Content-Type: application/json' \  -d '{  "amount": "1234.50",  "effective_date": "2019-08-24"}'
{  "data": {    "escrow": {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "balance": "1234.50",      "billed_unpaid": "1234.50",      "closed_at": "2019-08-24",      "current_deposit": "1234.50",      "deposit_history": [        {          "amount": "1234.50",          "effective_date": "2019-08-24"        }      ],      "escrow_type": "tax",      "funded_balance": "1234.50",      "has_movements": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",      "name": "string",      "required_balance": "1234.50",      "shortfall": true,      "status": "active"    },    "repriced_periods": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/loans/{id}/escrows/{escrowId}/disbursements

The lender paid a tax or insurance bill from escrow: with bill_document_id a payment from the escrow account is applied to that AP bill (the bill closes, the expense stays where the bill booked it); with expense_account_id (no bill in the books) DR expense / CR escrow. Recorded after the fact, so it skips approval. Refused when it would take the escrow below zero. A lender records its disbursement through …/movements.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_ESCROW_DIMENSION_MISSING, LOAN_ESCROW_ROLE_ACCOUNT_MISSING, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_ESCROW_NOT_FOUND, LOAN_ESCROW_CLOSED, LOAN_ESCROW_INSUFFICIENT_BALANCE, LOAN_ESCROW_MOVEMENT_KIND_NOT_ALLOWED, LOAN_ESCROW_OFFSET_ACCOUNT_INVALID, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, PERIOD_CLOSED, PERIOD_LOCKED, PERIOD_MISSING, PERIOD_OVERRIDE_FORBIDDEN, LOAN_ESCROW_BILL_NOT_PAYABLE, DOCUMENT_HELD_BY_PAYMENT_RUN, DOCUMENT_STATUS_FORBIDS_ACTION, DIMENSION_REQUIRED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
escrowId*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
amount*string

Greater than 0.

bill_document_id?string

The AP bill the lender paid from escrow (posted, open, the loan's entity and currency). Exactly one of bill_document_id / expense_account_id.

Formatuuid
date*string

The movement's date: on or before the org's today, in an open period (or with period_override_reason).

Formatdate
expense_account_id?string

With no bill in the books: the expense account the disbursement is recognised on.

Formatuuid
memo?string
Lengthlength <= 500
period_override_reason?string

Post into a closed period; needs the accounting:periods_override scope.

Lengthlength <= 500

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/escrows/string/disbursements' \  -H 'Content-Type: application/json' \  -d '{  "amount": "1234.50",  "date": "2019-08-24"}'
{  "data": {    "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",    "escrow": {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "balance": "1234.50",      "billed_unpaid": "1234.50",      "closed_at": "2019-08-24",      "current_deposit": "1234.50",      "deposit_history": [        {          "amount": "1234.50",          "effective_date": "2019-08-24"        }      ],      "escrow_type": "tax",      "funded_balance": "1234.50",      "has_movements": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",      "name": "string",      "required_balance": "1234.50",      "shortfall": true,      "status": "active"    },    "kind": "disbursement"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/loans/{id}/escrows/{escrowId}/movements

Every document that moved the escrow (its tagged lines on the escrow's account): deposits from period bills and recorded movements, newest first, signed (+ in), with the running balance after each (a voided movement counts zero) and whether it can be voided here.

Required scope: loans:read

Pagination: cursor

Error codes: LOAN_NOT_FOUND, LOAN_ESCROW_NOT_FOUND, LOAN_ESCROW_DIMENSION_MISSING, LOAN_ESCROW_ROLE_ACCOUNT_MISSING, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
escrowId*string

Query Parameters

cursor?string
limit?number

1..100, default 50

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/loans/string/escrows/string/movements'
{  "data": [    {      "amount": "1234.50",      "date": "2019-08-24",      "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",      "document_number": "string",      "document_type": "string",      "kind": "deposit",      "memo": "string",      "running_balance": "1234.50",      "status": "posted",      "voidable": true    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/loans/{id}/escrows/{escrowId}/movements

draw / refund (cash back from a reserve or a surplus), interest, opening_balance, adjustment (either direction, may go negative), and a lender's disbursement. A draw, refund or lender disbursement on a bank's cash account must send bank_transaction_id: the entry posts on that bank's cash account and the bank line is matched by the same act. Recorded after the fact, so it skips approval.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_ESCROW_DIMENSION_MISSING, LOAN_ESCROW_ROLE_ACCOUNT_MISSING, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_ESCROW_NOT_FOUND, LOAN_ESCROW_CLOSED, LOAN_ESCROW_INSUFFICIENT_BALANCE, LOAN_ESCROW_MOVEMENT_KIND_NOT_ALLOWED, LOAN_ESCROW_OFFSET_ACCOUNT_INVALID, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, PERIOD_CLOSED, PERIOD_LOCKED, PERIOD_MISSING, PERIOD_OVERRIDE_FORBIDDEN, LOAN_ESCROW_BANK_LINE_REQUIRED, LOAN_ESCROW_BANK_LINE_INVALID, BANK_LINE_EXCLUDED, BANK_LINE_ALREADY_MATCHED, BANK_LINE_REMOVED_BY_PROVIDER

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
escrowId*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
amount*string

Greater than 0.

bank_transaction_id?string

draw / refund / lender disbursement: the bank line the cash moved on. Required when the offset is a bank cash account; the line is matched by the same act.

Formatuuid
date*string

The movement's date: on or before the org's today, in an open period (or with period_override_reason).

Formatdate
direction?string

adjustment only, and required for it.

Value in"increase""decrease"
kind*string

disbursement is lender-only here (a borrower uses …/disbursements).

Value in"disbursement""draw""refund""interest""opening_balance""adjustment"
memo?string
Lengthlength <= 500
offset_account_id?string

The other side of the entry. With bank_transaction_id it may be omitted (the bank cash account is used) or must equal it.

Formatuuid
period_override_reason?string

Post into a closed period; needs the accounting:periods_override scope.

Lengthlength <= 500

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/escrows/string/movements' \  -H 'Content-Type: application/json' \  -d '{  "amount": "1234.50",  "date": "2019-08-24",  "kind": "disbursement"}'
{  "data": {    "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",    "escrow": {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "balance": "1234.50",      "billed_unpaid": "1234.50",      "closed_at": "2019-08-24",      "current_deposit": "1234.50",      "deposit_history": [        {          "amount": "1234.50",          "effective_date": "2019-08-24"        }      ],      "escrow_type": "tax",      "funded_balance": "1234.50",      "has_movements": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",      "name": "string",      "required_balance": "1234.50",      "shortfall": true,      "status": "active"    },    "kind": "disbursement"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Void an escrow movement

POST
/v1/loans/{id}/escrows/{escrowId}/movements/{movementId}/void

Reverses a recorded movement (movementId = its document_id from …/movements). Its bank line, if any, goes back to the bank feed; a payment of a bill is unapplied and the bill reopens. A deposit is voided with its period bill, not here. The void may leave the escrow negative. The generic POST /v1/documents/{id}/void refuses these documents (LOAN_ESCROW_MOVEMENT_HELD).

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_ESCROW_DIMENSION_MISSING, LOAN_ESCROW_ROLE_ACCOUNT_MISSING, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_ESCROW_NOT_FOUND, LOAN_ESCROW_MOVEMENT_NOT_FOUND, DOCUMENT_ALREADY_VOIDED, DOCUMENT_RECONCILED_CANNOT_VOID, PERIOD_LOCKED, NO_OPEN_PERIOD_FOR_CORRECTION

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
escrowId*string
movementId*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
memo*string

Why — kept on the reversing entry.

Lengthlength <= 500

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/escrows/string/movements/string/void' \  -H 'Content-Type: application/json' \  -d '{  "memo": "string"}'
{  "data": {    "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",    "escrow": {      "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",      "balance": "1234.50",      "billed_unpaid": "1234.50",      "closed_at": "2019-08-24",      "current_deposit": "1234.50",      "deposit_history": [        {          "amount": "1234.50",          "effective_date": "2019-08-24"        }      ],      "escrow_type": "tax",      "funded_balance": "1234.50",      "has_movements": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",      "name": "string",      "required_balance": "1234.50",      "shortfall": true,      "status": "active"    },    "kind": "disbursement"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/loans/{id}/escrows/{escrowId}/payable-bills

Open, posted AP bills of the loan's legal entity and currency, for paying from escrow. Bills tagged with one of the loan's collateral properties come first, then by due date. source_hint names the property-tax or insurance module that raised a bill.

Required scope: loans:read

Pagination: cursor

Error codes: LOAN_NOT_FOUND, LOAN_ESCROW_NOT_FOUND, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
escrowId*string

Query Parameters

search?string

Matches the bill number or the vendor name.

cursor?string
limit?number

1..100, default 50

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/loans/string/escrows/string/payable-bills'
{  "data": [    {      "balance_amount": "1234.50",      "collateral": true,      "document_date": "2019-08-24",      "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",      "document_number": "string",      "due_date": "2019-08-24",      "party_name": "string",      "source_hint": "property_tax",      "total_amount": "1234.50"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
GET
/v1/loans/{id}/extension-options

The options with derived state, is_live and notice dates, ordered by option_number by default. Only the lowest-numbered option that is neither exercised nor waived is live, judged across the whole set whatever search or ids narrows the page to. The PUT replaces the whole set: read it unfiltered and drain meta.next_cursor first.

Required scope: loans:read

Pagination: cursor

Error codes: LOAN_NOT_FOUND, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: option_number

Value in"option_number""-option_number"
search?string

Case-insensitive substring match on: conditions.

ids?string

Up to 100 ids; returns those rows regardless of other filters and ignores search.

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/loans/string/extension-options'
{  "data": [    {      "conditions": "string",      "exercised_amendment_id": "5199ac48-48f0-4f36-81f5-776bc30e7dec",      "extended_maturity_date": "2019-08-24",      "fee_rate": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_live": true,      "notice_deadline": "2019-08-24",      "notice_deadline_days": 0,      "notice_window_start": "2019-08-24",      "notice_window_start_days": 0,      "option_number": 0,      "state": "available",      "waived_at": "2019-08-24T14:15:22Z",      "waived_reason": "string"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
PUT
/v1/loans/{id}/extension-options

REPLACES the whole set in one transaction; at most 10. Exercised and waived options are history: re-send them unchanged or get 409 LOAN_EXTENSION_OPTION_LOCKED. extended_maturity_date must increase with option_number and exceed the loan maturity (422 LOAN_EXTENSION_OPTIONS_INVALID). fee_rate is a decimal rate and informational. Returns the committed set.

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_EXTENSION_OPTIONS_INVALID, LOAN_EXTENSION_OPTION_LOCKED, 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

Request Body

application/json
  1. body
options*array<>

The WHOLE set; it replaces what the loan has. Exercised and waived options must be re-sent unchanged.

Itemsitems <= 10

Response Body

application/json
  1. response
data*array<>
meta*
curl -X PUT 'https://api.acreum.io/v1/loans/string/extension-options' \  -H 'Content-Type: application/json' \  -d '{  "options": [    {      "extended_maturity_date": "2019-08-24",      "notice_deadline_days": 1,      "option_number": 1    }  ]}'
{  "data": [    {      "conditions": "string",      "exercised_amendment_id": "5199ac48-48f0-4f36-81f5-776bc30e7dec",      "extended_maturity_date": "2019-08-24",      "fee_rate": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_live": true,      "notice_deadline": "2019-08-24",      "notice_deadline_days": 0,      "notice_window_start": "2019-08-24",      "notice_window_start_days": 0,      "option_number": 0,      "state": "available",      "waived_at": "2019-08-24T14:15:22Z",      "waived_reason": "string"    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/loans/{id}/extension-options/{optionId}/exercise

Records a maturity_extension amendment to the option extended_maturity_date, rebuilds the schedule and marks the option exercised, atomically. Only the live option can be exercised (409 LOAN_EXTENSION_OPTION_NOT_LIVE); a lapsed live option can still be exercised. An option whose extended_maturity_date is no longer after the loan maturity is refused (409 LOAN_EXTENSION_OPTION_NO_LONGER_EXTENDS); waive it to move on. Any refusal from the amendment path leaves the option unexercised.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_EXTENSION_OPTION_NOT_FOUND, LOAN_EXTENSION_OPTION_NOT_LIVE, LOAN_EXTENSION_OPTION_NO_LONGER_EXTENDS, LOAN_AMENDMENT_LOAN_NOT_ACTIVE, LOAN_AMENDMENT_EFFECTIVE_DATE_INVALID, LOAN_AMENDMENT_TERMS_INVALID, LOAN_AMENDMENT_BEFORE_ACCRUED_THROUGH, LOAN_RATE_TERMS_MISSING, LOAN_PRINCIPAL_BASIS_UNAVAILABLE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
optionId*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

Why the option is being exercised (the reason). Required.

document_id?|

The signed extension document, if any.

Formatuuid
effective_date*string

On or before the org's today (the amendment's effective date).

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/extension-options/string/exercise' \  -H 'Content-Type: application/json' \  -d '{  "description": "string",  "effective_date": "2019-08-24"}'
{  "data": {    "amendment": {      "amendment_number": 0,      "amendment_type": "rate_change",      "changed_fields": {},      "created_at": "2019-08-24T14:15:22Z",      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",      "description": "string",      "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",      "effective_date": "2019-08-24",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3"    },    "option": {      "conditions": "string",      "exercised_amendment_id": "5199ac48-48f0-4f36-81f5-776bc30e7dec",      "extended_maturity_date": "2019-08-24",      "fee_rate": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_live": true,      "notice_deadline": "2019-08-24",      "notice_deadline_days": 0,      "notice_window_start": "2019-08-24",      "notice_window_start_days": 0,      "option_number": 0,      "state": "available",      "waived_at": "2019-08-24T14:15:22Z",      "waived_reason": "string"    },    "regeneration": {      "new_final_due_date": "2019-08-24",      "new_payment_amount": "1234.50",      "schedule_version": 0    }  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/loans/{id}/extension-options/{optionId}/waive

Marks the live option waived with a reason; the loan is unchanged and the next option becomes live. Only the live option can be waived (409 LOAN_EXTENSION_OPTION_NOT_LIVE).

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_EXTENSION_OPTION_NOT_FOUND, LOAN_EXTENSION_OPTION_NOT_LIVE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
optionId*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
reason*string

Why the option is being waived. Required.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/extension-options/string/waive' \  -H 'Content-Type: application/json' \  -d '{  "reason": "string"}'
{  "data": {    "conditions": "string",    "exercised_amendment_id": "5199ac48-48f0-4f36-81f5-776bc30e7dec",    "extended_maturity_date": "2019-08-24",    "fee_rate": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "is_live": true,    "notice_deadline": "2019-08-24",    "notice_deadline_days": 0,    "notice_window_start": "2019-08-24",    "notice_window_start_days": 0,    "option_number": 0,    "state": "available",    "waived_at": "2019-08-24T14:15:22Z",    "waived_reason": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

List a loan's hedges

GET
/v1/loans/{id}/hedges

Every swap and cap on the loan (active, terminated and expired) with its latest fair-value mark. Oldest first (created_at) by default.

Required scope: loans:read

Pagination: cursor

Error codes: LOAN_NOT_FOUND, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: created_at

Value in"created_at""-created_at"
search?string

Case-insensitive substring match on: reference, instrument_type.

ids?string

Up to 100 ids; returns those rows regardless of other filters and ignores search.

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/loans/string/hedges'
{  "data": [    {      "call_frequency": "monthly",      "cancellation_holder": "borrower",      "cancellation_style": "none",      "counterparty_id": "fd38dae9-b300-4017-a630-101c4279eafd",      "created_at": "2019-08-24T14:15:22Z",      "day_count_convention": "actual_360",      "effective_date": "2019-08-24",      "first_call_date": "2019-08-24",      "fixed_rate": "0.04000",      "floating_spread": "0.00000",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "index_type": "sofr",      "index_variant": "term_1m",      "instrument_type": "swap",      "latest_mark": {        "as_of_date": "2019-08-24",        "fair_value": "1234.50"      },      "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",      "lookback_days": 0,      "lookback_method": "observation_shift",      "maturity_date": "2019-08-24",      "next_call_date": "2019-08-24",      "next_notice_deadline": "2019-08-24",      "notes": "string",      "notice_business_days": 1,      "notional_amount": "1234.50",      "opening_premium_balance": "1234.50",      "opening_premium_offset_account_id": "fe692cd3-0b82-4b43-bcef-8e4f489d8081",      "premium_amount": "1234.50",      "premium_paid_date": "2019-08-24",      "reference": "string",      "settlement_day": 1,      "settlement_frequency": "monthly",      "status": "active",      "strike_rate": "0.05000",      "terminated_on": "2019-08-24",      "termination_amount": "1234.50",      "tracking_start_date": "2019-08-24",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/loans/{id}/hedges

Floating-rate borrower loans only (422 LOAN_HEDGE_NOT_SUPPORTED otherwise, with the reason). On an active loan the hedge's settlement periods are written to the loan's event spine at once, projected at the latest index reading; on a pending loan at activation. settlement_day defaults to the loan payment day; tracking_start_date to effective_date, or the start of the legal entity's first open period after it.

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_HEDGE_NOT_SUPPORTED, LOAN_HEDGE_INVALID_TERMS

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
call_frequency?string

Bermudan only (required there, absent otherwise): call dates step from first_call_date on its day of month, clamped to month end, while before maturity_date.

Value in"monthly""quarterly""semi_annual""annual"
cancellation_holder?string

Who may cancel: 'borrower' (we decide) or 'counterparty' (the bank may cancel). Required unless cancellation_style is 'none'.

Value in"borrower""counterparty"
cancellation_style?string

Spec §12.2, swap only (a cap is always 'none'). 'none': not cancellable; 'european': one call date (first_call_date); 'bermudan': a call date every call_frequency from first_call_date, exercised at most once. Exercising a call = terminating the hedge on the call date.

Default"none"
Value in"none""european""bermudan"
counterparty_id*string

A party of this org.

Formatuuid
day_count_convention?string
Default"actual_360"
Value in"actual_360""actual_365""30_360"
effective_date*string
Formatdate
first_call_date?string

The first (european: the only) call date; after effective_date and before maturity_date. Required unless cancellation_style is 'none'.

Formatdate
fixed_rate?string

Swap: required. Cap: must be absent. Decimal fraction, not a percent: 0.055 = 5.5%.

floating_spread?string

Swap only. Decimal fraction, not a percent: 0.055 = 5.5%.

Default"0"
index_type*string
Value in"sofr""prime""treasury""other"
index_variant*string

term_1m, term_3m, term_6m or na: fixed in advance, on any index_type. daily_simple or compounded_arrears: SOFR in arrears, accepted for index_type sofr only (422 LOAN_HEDGE_NOT_SUPPORTED otherwise).

Value in"term_1m""term_3m""term_6m""daily_simple""compounded_arrears""na"
instrument_type*string
Value in"swap""cap"
lookback_days?number

Counted in SOFR publication days: weekdays less SIFMA US full closes and every Good Friday (weekdays only after 2030). Fixed in advance (term_1m, term_3m, term_6m, na): publication days before a period start the index is read. In arrears (daily_simple, compounded_arrears): how far back the readings are taken, weighed per lookback_method — observation_shift moves the window back this many publication days, lookback has each day of the period read this many publication days earlier.

Range0 <= value <= 30
Default2
lookback_method?string

How an in-arrears index (daily_simple, compounded_arrears) weighs its readings, from the agreement or confirmation. observation_shift: each reading weighs the calendar days it covers in the window shifted back lookback_days publication days, and the day count is that window. lookback: each calendar day of the interest period weighs 1 on the reading lookback_days publication days before it; a weekend or holiday takes the reading of the publication day before it, so Friday to Sunday share one. The day count is the period. Ignored by in-advance variants. Default observation_shift.

Default"observation_shift"
Value in"observation_shift""lookback"
maturity_date*string

After effective_date.

Formatdate
notes?string
notice_business_days?number

SOFR publication days of notice before a call date (1–90). Required unless cancellation_style is 'none'. Counted in SOFR publication days: weekdays less SIFMA US full closes and every Good Friday (weekdays only after 2030). A bank holiday calendar can differ, so check the confirmation.

Range1 <= value <= 90
notional_amount*string

More than 0.

opening_premium_balance?string

Cap only: the unamortized premium on tracking_start_date (0 or more).

opening_premium_offset_account_id?string

Cap only: the account the opening premium balance is credited to (an account of this organization, org-wide or of the loan's legal entity). Required when opening_premium_balance is above 0 and the premium was paid before tracking_start_date.

Formatuuid
premium_amount?string

Cap: required (0 or more).

premium_paid_date?string

Cap: required when premium_amount is above 0.

Formatdate
reference?string
Lengthlength <= 120
settlement_day?number

Default: the loan's payment day.

Range1 <= value <= 31
settlement_frequency*string
Value in"monthly""quarterly""semi_annual"
strike_rate?string

Cap: required. Swap: must be absent. Decimal fraction, not a percent: 0.055 = 5.5%.

tracking_start_date?string

Default: effective_date when its accounting period is open, else the first day of the loan's legal entity's earliest open period after it.

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/hedges' \  -H 'Content-Type: application/json' \  -d '{  "counterparty_id": "fd38dae9-b300-4017-a630-101c4279eafd",  "effective_date": "2019-08-24",  "index_type": "sofr",  "index_variant": "term_1m",  "instrument_type": "swap",  "maturity_date": "2019-08-24",  "notional_amount": "1234.50",  "settlement_frequency": "monthly"}'
{  "data": {    "call_frequency": "monthly",    "cancellation_holder": "borrower",    "cancellation_style": "none",    "counterparty_id": "fd38dae9-b300-4017-a630-101c4279eafd",    "created_at": "2019-08-24T14:15:22Z",    "day_count_convention": "actual_360",    "effective_date": "2019-08-24",    "first_call_date": "2019-08-24",    "fixed_rate": "0.04000",    "floating_spread": "0.00000",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "index_type": "sofr",    "index_variant": "term_1m",    "instrument_type": "swap",    "latest_mark": {      "as_of_date": "2019-08-24",      "fair_value": "1234.50"    },    "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",    "lookback_days": 0,    "lookback_method": "observation_shift",    "maturity_date": "2019-08-24",    "next_call_date": "2019-08-24",    "next_notice_deadline": "2019-08-24",    "notes": "string",    "notice_business_days": 1,    "notional_amount": "1234.50",    "opening_premium_balance": "1234.50",    "opening_premium_offset_account_id": "fe692cd3-0b82-4b43-bcef-8e4f489d8081",    "premium_amount": "1234.50",    "premium_paid_date": "2019-08-24",    "reference": "string",    "settlement_day": 1,    "settlement_frequency": "monthly",    "status": "active",    "strike_rate": "0.05000",    "terminated_on": "2019-08-24",    "termination_amount": "1234.50",    "tracking_start_date": "2019-08-24",    "updated_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Edit a hedge

PATCH
/v1/loans/{id}/hedges/{hedgeId}

reference, counterparty_id and notes are always editable. Any economic term only while the hedge is active and no settlement has been recorded against it (409 LOAN_HEDGE_TERMS_LOCKED); such a change re-projects every unfilled settlement row. The cancellation terms (cancellation_style, cancellation_holder, first_call_date, call_frequency, notice_business_days) are not economic: editable while the hedge is active, even after settlements, and they re-project nothing. Setting cancellation_style 'none' clears the other four.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_HEDGE_NOT_FOUND, LOAN_HEDGE_NOT_SUPPORTED, LOAN_HEDGE_INVALID_TERMS, LOAN_HEDGE_TERMS_LOCKED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
hedgeId*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
call_frequency?|

Bermudan only (required there, absent otherwise): call dates step from first_call_date on its day of month, clamped to month end, while before maturity_date.

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

Who may cancel: 'borrower' (we decide) or 'counterparty' (the bank may cancel). Required unless cancellation_style is 'none'.

Value in"borrower""counterparty"
cancellation_style?string

Spec §12.2, swap only (a cap is always 'none'). 'none': not cancellable; 'european': one call date (first_call_date); 'bermudan': a call date every call_frequency from first_call_date, exercised at most once. Exercising a call = terminating the hedge on the call date. Setting 'none' clears the four other cancellation fields (no need to send them). Switching to 'european' does not clear call_frequency; send call_frequency: null with it.

Value in"none""european""bermudan"
counterparty_id?string
Formatuuid
day_count_convention?string
Value in"actual_360""actual_365""30_360"
effective_date?string
Formatdate
first_call_date?|

The first (european: the only) call date; after effective_date and before maturity_date. Required unless cancellation_style is 'none'.

Formatdate
fixed_rate?|

Decimal fraction, not a percent: 0.055 = 5.5%.

floating_spread?string

Decimal fraction, not a percent: 0.055 = 5.5%.

index_type?string
Value in"sofr""prime""treasury""other"
index_variant?string
Value in"term_1m""term_3m""term_6m""daily_simple""compounded_arrears""na"
instrument_type?string
Value in"swap""cap"
lookback_days?number

Counted in SOFR publication days: weekdays less SIFMA US full closes and every Good Friday (weekdays only after 2030). Fixed in advance (term_1m, term_3m, term_6m, na): publication days before a period start the index is read. In arrears (daily_simple, compounded_arrears): how far back the readings are taken, weighed per lookback_method — observation_shift moves the window back this many publication days, lookback has each day of the period read this many publication days earlier.

Range0 <= value <= 30
lookback_method?string

How an in-arrears index (daily_simple, compounded_arrears) weighs its readings, from the agreement or confirmation. observation_shift: each reading weighs the calendar days it covers in the window shifted back lookback_days publication days, and the day count is that window. lookback: each calendar day of the interest period weighs 1 on the reading lookback_days publication days before it; a weekend or holiday takes the reading of the publication day before it, so Friday to Sunday share one. The day count is the period. Ignored by in-advance variants. Default observation_shift. Locked once any period is fixed (fixed rows are final), and like every other economic term once a settlement is recorded.

Value in"observation_shift""lookback"
maturity_date?string
Formatdate
notes?string|null
notice_business_days?|

SOFR publication days of notice before a call date (1–90). Required unless cancellation_style is 'none'. Counted in SOFR publication days: weekdays less SIFMA US full closes and every Good Friday (weekdays only after 2030). A bank holiday calendar can differ, so check the confirmation.

Range1 <= value <= 90
notional_amount?string
opening_premium_balance?string|null
opening_premium_offset_account_id?|

Cap only: the account the opening premium balance is credited to. Changing it re-posts the premium.

Formatuuid
premium_amount?string|null
premium_paid_date?|
Formatdate
reference?|
Lengthlength <= 120
settlement_day?number
Range1 <= value <= 31
settlement_frequency?string
Value in"monthly""quarterly""semi_annual"
strike_rate?|

Decimal fraction, not a percent: 0.055 = 5.5%.

tracking_start_date?string
Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X PATCH 'https://api.acreum.io/v1/loans/string/hedges/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "data": {    "call_frequency": "monthly",    "cancellation_holder": "borrower",    "cancellation_style": "none",    "counterparty_id": "fd38dae9-b300-4017-a630-101c4279eafd",    "created_at": "2019-08-24T14:15:22Z",    "day_count_convention": "actual_360",    "effective_date": "2019-08-24",    "first_call_date": "2019-08-24",    "fixed_rate": "0.04000",    "floating_spread": "0.00000",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "index_type": "sofr",    "index_variant": "term_1m",    "instrument_type": "swap",    "latest_mark": {      "as_of_date": "2019-08-24",      "fair_value": "1234.50"    },    "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",    "lookback_days": 0,    "lookback_method": "observation_shift",    "maturity_date": "2019-08-24",    "next_call_date": "2019-08-24",    "next_notice_deadline": "2019-08-24",    "notes": "string",    "notice_business_days": 1,    "notional_amount": "1234.50",    "opening_premium_balance": "1234.50",    "opening_premium_offset_account_id": "fe692cd3-0b82-4b43-bcef-8e4f489d8081",    "premium_amount": "1234.50",    "premium_paid_date": "2019-08-24",    "reference": "string",    "settlement_day": 1,    "settlement_frequency": "monthly",    "status": "active",    "strike_rate": "0.05000",    "terminated_on": "2019-08-24",    "termination_amount": "1234.50",    "tracking_start_date": "2019-08-24",    "updated_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/loans/{id}/hedges/{hedgeId}/marks

One mark per as_of_date, newest first (-as_of_date) by default. fair_value is signed: + an asset, − a liability.

Required scope: loans:read

Pagination: cursor

Error codes: LOAN_HEDGE_NOT_FOUND, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
hedgeId*string

Query Parameters

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: -as_of_date

Value in"-as_of_date""as_of_date"
search?string

Case-insensitive substring match on: note, source.

ids?string

Up to 100 ids; returns those rows regardless of other filters and ignores search.

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/loans/string/hedges/string/marks'
{  "data": [    {      "as_of_date": "2019-08-24",      "created_at": "2019-08-24T14:15:22Z",      "fair_value": "1234.50",      "hedge_id": "e2d1ffa1-88f8-4695-805c-e0aaa0da9c62",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "note": "string",      "source": "manual",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
POST
/v1/loans/{id}/hedges/{hedgeId}/marks

The bank's mark-to-market on as_of_date (signed: + an asset, − a liability). A second mark for the same date replaces the first. Informational: nothing posts.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_HEDGE_NOT_FOUND, LOAN_HEDGE_INVALID_TERMS

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
hedgeId*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
as_of_date*string

One mark per date: a second POST for a date replaces it.

Formatdate
fair_value*string

Signed: + an asset to us, − a liability.

note?string
source?string
Default"manual"
Value in"manual""import"

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/hedges/string/marks' \  -H 'Content-Type: application/json' \  -d '{  "as_of_date": "2019-08-24",  "fair_value": "1234.50"}'
{  "data": {    "as_of_date": "2019-08-24",    "created_at": "2019-08-24T14:15:22Z",    "fair_value": "1234.50",    "hedge_id": "e2d1ffa1-88f8-4695-805c-e0aaa0da9c62",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "note": "string",    "source": "manual",    "updated_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/loans/{id}/hedges/{hedgeId}/move

The refinance case: re-points an active hedge at another active floating borrower loan of the same legal entity. Unfilled settlement rows due after effective_on leave this loan and are regenerated on the new one; recorded settlements stay where they were booked.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_HEDGE_NOT_FOUND, LOAN_HEDGE_NOT_SUPPORTED, LOAN_HEDGE_INVALID_TERMS, LOAN_HEDGE_TERMS_LOCKED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
hedgeId*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
effective_on*string

Unfilled settlement rows due after this date leave the old loan and are regenerated on the new one; recorded settlements stay where they were booked.

Formatdate
loan_id*string

The active floating borrower loan, of the same legal entity, the hedge moves to.

Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/hedges/string/move' \  -H 'Content-Type: application/json' \  -d '{  "effective_on": "2019-08-24",  "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3"}'
{  "data": {    "call_frequency": "monthly",    "cancellation_holder": "borrower",    "cancellation_style": "none",    "counterparty_id": "fd38dae9-b300-4017-a630-101c4279eafd",    "created_at": "2019-08-24T14:15:22Z",    "day_count_convention": "actual_360",    "effective_date": "2019-08-24",    "first_call_date": "2019-08-24",    "fixed_rate": "0.04000",    "floating_spread": "0.00000",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "index_type": "sofr",    "index_variant": "term_1m",    "instrument_type": "swap",    "latest_mark": {      "as_of_date": "2019-08-24",      "fair_value": "1234.50"    },    "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",    "lookback_days": 0,    "lookback_method": "observation_shift",    "maturity_date": "2019-08-24",    "next_call_date": "2019-08-24",    "next_notice_deadline": "2019-08-24",    "notes": "string",    "notice_business_days": 1,    "notional_amount": "1234.50",    "opening_premium_balance": "1234.50",    "opening_premium_offset_account_id": "fe692cd3-0b82-4b43-bcef-8e4f489d8081",    "premium_amount": "1234.50",    "premium_paid_date": "2019-08-24",    "reference": "string",    "settlement_day": 1,    "settlement_frequency": "monthly",    "status": "active",    "strike_rate": "0.05000",    "terminated_on": "2019-08-24",    "termination_amount": "1234.50",    "tracking_start_date": "2019-08-24",    "updated_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/loans/{id}/hedges/{hedgeId}/settlements

Books one settlement period from the bank's advice: a hedge_settlement document (+ amount: DR hedge expense / CR loan clearing; − amount: the reverse), split across the securing properties, on the loan that holds the period. The period then reads filled; variance = amount − expected_amount. Void it through the document void endpoint to record it again.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_HEDGE_NOT_FOUND, LOAN_HEDGE_INVALID_TERMS, LOAN_HEDGE_SETTLEMENT_ROW_INVALID, LOAN_HEDGE_SETTLEMENT_ALREADY_RECORDED, PERIOD_CLOSED, PERIOD_LOCKED, PERIOD_MISSING

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
hedgeId*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
amount*string

Signed, as the advice states it: + we pay the bank, − we receive. Never 0.00 (a cap below strike simply leaves the period's expected 0.00 unrecorded).

date?string

The settlement date; default the period's due_date.

Formatdate
loan_event_id*string

The hedge's live settlement period (a swap_settlement row of this hedge on the loan's schedule).

Formatuuid

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/hedges/string/settlements' \  -H 'Content-Type: application/json' \  -d '{  "amount": "1234.50",  "loan_event_id": "02765405-6df1-41b0-8230-f45650dcb548"}'
{  "data": {    "amount": "1234.50",    "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",    "expected_amount": "1234.50",    "loan_event_id": "02765405-6df1-41b0-8230-f45650dcb548",    "variance": "1234.50"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Terminate a hedge early

POST
/v1/loans/{id}/hedges/{hedgeId}/terminate

Ends an active hedge on terminated_on. A cap first amortizes its premium through that date, then one hedge_termination document books the termination amount against the termination gain/loss account and writes off the unamortized premium. Unfilled settlement rows due after terminated_on are superseded; recorded ones stay. Refused while amortization is posted for a month ending after terminated_on (void it first). Void the termination document to restore the hedge.

Required scope: loans:write

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LOAN_HEDGE_NOT_FOUND, LOAN_HEDGE_INVALID_TERMS, LOAN_HEDGE_TERMS_LOCKED, PERIOD_CLOSED, PERIOD_LOCKED, PERIOD_MISSING

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string
hedgeId*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
terminated_on*string

On or after the tracking start date and before maturity. Unfilled settlement rows due after it are superseded; recorded ones stay.

Formatdate
termination_amount*string

Signed: + we pay the bank to unwind, − we receive. 0.00 when the hedge simply ends.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/hedges/string/terminate' \  -H 'Content-Type: application/json' \  -d '{  "terminated_on": "2019-08-24",  "termination_amount": "1234.50"}'
{  "data": {    "call_frequency": "monthly",    "cancellation_holder": "borrower",    "cancellation_style": "none",    "counterparty_id": "fd38dae9-b300-4017-a630-101c4279eafd",    "created_at": "2019-08-24T14:15:22Z",    "day_count_convention": "actual_360",    "effective_date": "2019-08-24",    "first_call_date": "2019-08-24",    "fixed_rate": "0.04000",    "floating_spread": "0.00000",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "index_type": "sofr",    "index_variant": "term_1m",    "instrument_type": "swap",    "latest_mark": {      "as_of_date": "2019-08-24",      "fair_value": "1234.50"    },    "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",    "lookback_days": 0,    "lookback_method": "observation_shift",    "maturity_date": "2019-08-24",    "next_call_date": "2019-08-24",    "next_notice_deadline": "2019-08-24",    "notes": "string",    "notice_business_days": 1,    "notional_amount": "1234.50",    "opening_premium_balance": "1234.50",    "opening_premium_offset_account_id": "fe692cd3-0b82-4b43-bcef-8e4f489d8081",    "premium_amount": "1234.50",    "premium_paid_date": "2019-08-24",    "reference": "string",    "settlement_day": 1,    "settlement_frequency": "monthly",    "status": "active",    "strike_rate": "0.05000",    "terminated_on": "2019-08-24",    "termination_amount": "1234.50",    "tracking_start_date": "2019-08-24",    "updated_at": "2019-08-24T14:15:22Z"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/loans/{id}/participants

Every participant configured on the loan, whatever its effective window — including windows that have already ended and ones that have not opened yet. This is deliberately not an as-of-today view: the PUT replaces the whole set, so a filtered read would make a read-modify-write silently delete the windows it could not see; for the same reason a caller that writes the set back must read it without search or ids and drain meta.next_cursor. Ordered by effective_from, then by id, by default.

Required scope: loans:read

Pagination: cursor

Error codes: LOAN_NOT_FOUND, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: effective_from

Value in"effective_from""-effective_from"
search?string

Case-insensitive substring match on: participant_type, allocation_basis.

ids?string

Up to 100 ids; returns those rows regardless of other filters and ignores search.

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/loans/string/participants'
{  "data": [    {      "allocated_loan_amount": "400000.00",      "allocation_basis": "string",      "effective_from": "2019-08-24",      "effective_to": "2019-08-24",      "frozen_by": {        "due_date": "2019-08-24",        "loan_event_id": "02765405-6df1-41b0-8230-f45650dcb548",        "period_number": 0      },      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",      "method": "allocated",      "participant_type": "property",      "property_id": "05003a8a-8f3c-454b-8884-a906ec46f5f5",      "release_status": "held",      "share_pct": "60.0000"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
PUT
/v1/loans/{id}/participants

REPLACES the whole set of collateral properties in one transaction — a row left out of the payload is removed — and, with is_unsecured, sets or clears the unsecured mark. Refused as a whole, leaving the existing set untouched, when: the loan is a lender loan; a property is not active or is owned by a legal entity other than the borrower; the live shares do not total exactly 100% wherever a row is live; the rows leave a day uncovered between the first window and maturity (or the last end date on an unsecured loan) — only days after the loan's collateral_locked_through count, so a loan made unsecured is secured again with a new window after the lock and is_unsecured: false; a window starts outside the loan's life; a released row has no effective_to; an unsecured loan keeps an open-ended row; or the set would rewrite a billed period or posted accrued interest (a new window starting on or before the loan's collateral_locked_through, or an end date before a locked due date the row was part of). An empty array on a borrower loan that is no longer pending needs is_unsecured: true in the same request. A participant a posted period froze cannot be removed, and its share_pct, effective_from and reference cannot change — close its window with effective_to instead. Returns the committed set.

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_PARTICIPANT_FROZEN_ROW_REMOVED, LOAN_PARTICIPANT_FROZEN_ROW_IMMUTABLE, LOAN_PARTICIPANT_PROPERTY_NOT_ACTIVE, LOAN_COLLATERAL_OWNER_MISMATCH, LOAN_COLLATERAL_REQUIRED, LOAN_COLLATERAL_LENDER_SIDE, LOAN_COLLATERAL_COVERAGE_GAP, LOAN_COLLATERAL_WINDOW_OUTSIDE_LOAN, LOAN_COLLATERAL_RELEASED_NEEDS_END_DATE, LOAN_COLLATERAL_UNSECURED_CONFLICT, LOAN_COLLATERAL_BILLED_HISTORY, 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

Request Body

application/json
  1. body
is_unsecured?boolean

Marks the loan unsecured (tied to no property) or clears that mark. Absent leaves it unchanged. Removing all collateral from a borrower loan that is no longer pending needs true in the same request, and an unsecured loan cannot keep a collateral row with no end date.

participants*array<>

The complete participant set for this loan. A row left out of the payload is removed only if nothing has frozen it; a row a posted period was split by is refused instead — close its window with effective_to to end its participation. Once every document of such a period is voided, the row can be re-stated in any column, and one left out is archived (kept for the voided record, hidden everywhere).

Response Body

application/json
  1. response
data*array<>
meta*
curl -X PUT 'https://api.acreum.io/v1/loans/string/participants' \  -H 'Content-Type: application/json' \  -d '{  "participants": [    {      "effective_from": "2026-01-01",      "participant_type": "property",      "share_pct": "60.0000"    }  ]}'
{  "data": [    {      "allocated_loan_amount": "400000.00",      "allocation_basis": "string",      "effective_from": "2019-08-24",      "effective_to": "2019-08-24",      "frozen_by": {        "due_date": "2019-08-24",        "loan_event_id": "02765405-6df1-41b0-8230-f45650dcb548",        "period_number": 0      },      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",      "method": "allocated",      "participant_type": "property",      "property_id": "05003a8a-8f3c-454b-8884-a906ec46f5f5",      "release_status": "held",      "share_pct": "60.0000"    }  ],  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}

Record a loan payment

POST
/v1/loans/{id}/payments

Spreads one remittance oldest first over the periods due on or before today, each filled in the loan's payment-waterfall order (or by the lender's splits), and posts one debt_service_payment per period touched, in one transaction. A due period the nightly run has not billed is billed first, at the interest that accrued. Interest follows principal to payment_date: a later date accrues through it first; an earlier one posts a correcting accrual, voided with the payment. A period whose outstanding reaches 0 is settled. Periods not yet due are never touched: more than the due periods owe is refused — record extra principal as a prepayment. Refused when the payment reaches a due period that is moot (its documents were voided): re-record its statement first. A moot period the payment does not reach refuses nothing.

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: MISSING_SYSTEM_ROLE_ACCOUNT, LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_PERIOD_NOT_ACTIONABLE, LOAN_PAYMENT_EXCEEDS_OUTSTANDING, LOAN_PAYMENT_SPLIT_INVALID, LOAN_PAYMENT_DATE_IN_FUTURE, LOAN_PAYMENT_BEFORE_ORIGINATION, LOAN_RATE_TERMS_MISSING, PERIOD_CLOSED, PERIOD_LOCKED, PERIOD_MISSING, LOAN_COLLATERAL_NOT_LIVE_ON_DATE, 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

Request Body

application/json
  1. body
amount*string

The whole remittance. Spread oldest first over the periods due on or before today, each filled in the loan's payment-waterfall order. More than those periods owe is refused (LOAN_PAYMENT_EXCEEDS_OUTSTANDING): record extra principal as a prepayment.

payment_date*string

Cash value date: on or after the loan's origination date and on or before the org's today. It may be before a due date (cash paid early): the periods filled are those due on or before the org's today, and interest is corrected to this date.

Formatdate
splits?array<>

A lender's own split; replaces the computed allocation entirely. Each bucket at most what it owes, rows summing to amount, and a later period only once every earlier open period is filled (LOAN_PAYMENT_SPLIT_INVALID otherwise).

Items1 <= items <= 120

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/payments' \  -H 'Content-Type: application/json' \  -d '{  "amount": "1234.50",  "payment_date": "2019-08-24"}'
{  "data": {    "payment_document_ids": [      "55b65f90-d803-4fc7-80fc-889f9ae21cab"    ],    "periods": [      {        "accrual": {          "accounting_period_id": "4ee67027-6449-4da7-be7d-ad7a99663889",          "amount": "1234.50",          "document_date": "2019-08-24",          "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",          "status": "string"        },        "actuals": [          {            "balance_amount": "1234.50",            "document_date": "2019-08-24",            "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",            "document_role": "scheduled_bill",            "document_status": "string",            "document_type": "string",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "late_fee_window": "string",            "status": "active",            "total_amount": "1234.50",            "waived_at": "2019-08-24T14:15:22Z"          }        ],        "attention": [          {            "created_at": "2019-08-24T14:15:22Z",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "payload": {},            "severity": "info",            "state": "open",            "type": "string"          }        ],        "days_past_due": 0,        "due_date": "2019-08-24",        "escrow_lines": [          {            "billed": "1234.50",            "escrow_id": "3da354a5-bad4-466f-9b34-02d42a59bb3d",            "escrow_type": "tax",            "expected": "1234.50",            "name": "string"          }        ],        "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",        "expected_escrow": "1234.50",        "expected_fees": "1234.50",        "expected_interest": "1234.50",        "expected_principal": "1234.50",        "expected_total": "1234.50",        "fees_outstanding": "1234.50",        "fees_owed": "1234.50",        "interest_to_bill": "1234.50",        "is_past_due": true,        "late_fee_exempt": true,        "loan_id": "5ed6cd76-f362-4946-a79f-1e111d1430d3",        "outstanding": "1234.50",        "owed": "1234.50",        "period_number": 0,        "settled": "1234.50",        "shares": [          {            "escrow_amount": "1234.50",            "fees_amount": "1234.50",            "interest_amount": "1234.50",            "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839",            "method": "allocated",            "participant_id": "78084e63-1c1c-45af-adf1-2af96784867b",            "participant_type": "property",            "principal_amount": "1234.50",            "property_id": "05003a8a-8f3c-454b-8884-a906ec46f5f5",            "share_pct": "60.0000"          }        ],        "slot_integrity_ok": true,        "state": "superseded",        "variance_basis": "total",        "variance_total": "1234.50"      }    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/loans/{id}/payments/preview

Read-only: the allocation POST /payments would post for this amount and date, with what the due periods still owe — the payment dialog pre-fill. Refuses with the same codes the write would. A due period with no bill yet is priced at its scheduled interest (expected_interest); recording bills it at the interest that accrued.

Required scope: loans:read

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_PERIOD_NOT_ACTIONABLE, LOAN_PAYMENT_EXCEEDS_OUTSTANDING, LOAN_PAYMENT_DATE_IN_FUTURE, LOAN_PAYMENT_BEFORE_ORIGINATION

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

amount*string

The remittance to allocate.

payment_date*string

Cash value date: on or after the loan's origination date and on or before the org's today. It may be before a due date (cash paid early): the periods filled are those due on or before the org's today, and interest is corrected to this date.

Formatdate

Response Body

application/json
  1. response
data*
meta*
curl -X GET 'https://api.acreum.io/v1/loans/string/payments/preview?amount=1234.50&payment_date=2019-08-24'
{  "data": {    "outstanding": "1234.50",    "splits": [      {        "due_date": "2019-08-24",        "fees": "1234.50",        "interest": "1234.50",        "principal": "1234.50"      }    ]  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/loans/{id}/payoff

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: LOAN_COLLATERAL_NOT_LIVE_ON_DATE, MISSING_SYSTEM_ROLE_ACCOUNT, LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_PAYMENT_DATE_IN_FUTURE, LOAN_PREPAYMENT_BEFORE_ACCRUED_THROUGH, LOAN_PREPAYMENT_LOCKED_OUT, LOAN_PREPAYMENT_YIELD_REQUIRED, LOAN_PREPAYMENT_DEFEASANCE_COST_REQUIRED, LOAN_RATE_TERMS_MISSING, LOAN_PRINCIPAL_BASIS_UNAVAILABLE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, PERIOD_LOCKED, PERIOD_CLOSED, PERIOD_MISSING, DIMENSION_REQUIRED, LOAN_PREPAYMENT_LOAN_NOT_ACTIVE, LOAN_PREPAYMENT_NOTHING_OUTSTANDING, LOAN_PERIOD_NOT_ACTIONABLE, LOAN_HAS_ACTIVE_HEDGES

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
defeasance_cost?string

Defeasance cost for a defeasance window (computed, never executed).

lockout_override_reason?string

Required, and stored (trimmed), when the payoff date is inside a lockout window.

Lengthlength <= 2000
payoff_date*string

On or before the org's today and on or after the loan's accrued-through date.

Formatdate
treasury_yield?string

Treasury yield for a yield-maintenance window, between 0 and 1 with at most 5 decimals. Decimal fraction, not a percent: 0.055 = 5.5%.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/payoff' \  -H 'Content-Type: application/json' \  -d '{  "payoff_date": "2019-08-24"}'
{  "data": {    "accrued_interest": "1234.50",    "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",    "penalty_amount": "1234.50",    "remaining_principal": "1234.50",    "total": "1234.50"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/loans/{id}/prepayment

Accrues interest through the date, posts a loan_prepayment (principal + penalty), regenerates the schedule (reduce_term by default) and records the prepayment. Interest to the date is billed on the next statement. Inside a lockout window it is refused (409 LOAN_PREPAYMENT_LOCKED_OUT) unless lockout_override_reason is sent; the reason is stored.

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: MISSING_SYSTEM_ROLE_ACCOUNT, LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_PAYMENT_DATE_IN_FUTURE, LOAN_PREPAYMENT_BEFORE_ACCRUED_THROUGH, LOAN_PERIOD_NOT_ACTIONABLE, LOAN_PREPAYMENT_EXCEEDS_OUTSTANDING, LOAN_PREPAYMENT_YIELD_REQUIRED, LOAN_PREPAYMENT_DEFEASANCE_COST_REQUIRED, LOAN_PREPAYMENT_LOCKED_OUT, LOAN_PRINCIPAL_BASIS_UNAVAILABLE, LOAN_RATE_TERMS_MISSING, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, PERIOD_LOCKED, PERIOD_CLOSED, PERIOD_MISSING, DIMENSION_REQUIRED, LOAN_PREPAYMENT_LOAN_NOT_ACTIVE, LOAN_PREPAYMENT_NOTHING_OUTSTANDING, LOAN_PREPAYMENT_PRINCIPAL_NOT_POSITIVE

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
defeasance_cost?string

Defeasance cost for a defeasance window (computed, never executed).

effective_date*string

Cash value date; on or before the org's today and on or after the loan's accrued-through date.

Formatdate
lockout_override_reason?string

Required, and stored (trimmed), when the date is inside a lockout window.

Lengthlength <= 2000
memo?string
Lengthlength <= 2000
principal_amount*string

Principal prepaid; strictly less than the outstanding principal (all of it is a payoff).

schedule_mode?string

reduce_term keeps the payment and ends the loan earlier; reamortize keeps the maturity and lowers the payment. Ignored for an interest-only loan or phase.

Default"reduce_term"
Value in"reduce_term""reamortize"
treasury_yield?string

Treasury yield for a yield-maintenance window, between 0 and 1 with at most 5 decimals. Decimal fraction, not a percent: 0.055 = 5.5%.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/prepayment' \  -H 'Content-Type: application/json' \  -d '{  "effective_date": "2019-08-24",  "principal_amount": "1234.50"}'
{  "data": {    "cash_total": "1234.50",    "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",    "interest_saved": "1234.50",    "penalty_amount": "1234.50",    "prepayment_id": "c2033a35-c697-473c-a319-514b131063de",    "principal_amount": "1234.50",    "schedule_version": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/loans/{id}/prepayment-quote

Read-only. Prices the penalty from the loan prepayment terms and previews the regenerated schedule in memory. Refuses with the same codes the write would, except a lockout, which is reported as locked_out.

Required scope: loans:read

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_PAYMENT_DATE_IN_FUTURE, LOAN_PREPAYMENT_BEFORE_ACCRUED_THROUGH, LOAN_PERIOD_NOT_ACTIONABLE, LOAN_PREPAYMENT_EXCEEDS_OUTSTANDING, LOAN_PREPAYMENT_YIELD_REQUIRED, LOAN_PREPAYMENT_DEFEASANCE_COST_REQUIRED, LOAN_PRINCIPAL_BASIS_UNAVAILABLE, LOAN_RATE_TERMS_MISSING, LOAN_PREPAYMENT_LOAN_NOT_ACTIVE, LOAN_PREPAYMENT_NOTHING_OUTSTANDING, LOAN_PREPAYMENT_PRINCIPAL_NOT_POSITIVE, LOAN_ESCROW_DIMENSION_MISSING, LOAN_ESCROW_ROLE_ACCOUNT_MISSING

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Request Body

application/json
  1. body
defeasance_cost?string

Defeasance cost for a defeasance window (computed, never executed).

effective_date*string
Formatdate
kind*string
Value in"curtailment""payoff"
principal_amount?string

Required for a curtailment; a payoff prices the outstanding principal.

schedule_mode?string

Curtailment only; default reduce_term. Ignored for an interest-only loan or phase.

Value in"reduce_term""reamortize"
treasury_yield?string

Treasury yield for a yield-maintenance window, between 0 and 1 with at most 5 decimals. Decimal fraction, not a percent: 0.055 = 5.5%.

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/loans/string/prepayment-quote' \  -H 'Content-Type: application/json' \  -d '{  "effective_date": "2019-08-24",  "kind": "curtailment"}'
{  "data": {    "accrued_interest": "1234.50",    "cash_total": "1234.50",    "escrow_balances": [      {        "balance": "1234.50",        "escrow_id": "3da354a5-bad4-466f-9b34-02d42a59bb3d",        "escrow_type": "tax",        "name": "string"      }    ],    "interest_saved": "1234.50",    "locked_out": true,    "new_final_due_date": "2019-08-24",    "new_payment_amount": "1234.50",    "outstanding_principal": "1234.50",    "penalty_amount": "1234.50",    "penalty_basis": {      "defeasance_cost": "1234.50",      "penalty_pct": "string",      "provision_type": "lockout",      "remaining_months": 0,      "terms_id": "9fb97676-c58f-407e-a2a0-b717116f69c8",      "treasury_yield": "string"    },    "principal_amount": "1234.50"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
GET
/v1/loans/{id}/prepayment-terms

The windows, ordered by start_date by default. The PUT replaces the whole set: read it without search or ids and drain meta.next_cursor before writing it back.

Required scope: loans:read

Pagination: cursor

Error codes: LOAN_NOT_FOUND, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: start_date

Value in"start_date""-start_date"
search?string

Case-insensitive substring match on: description, provision_type.

ids?string

Up to 100 ids; returns those rows regardless of other filters and ignores search.

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/loans/string/prepayment-terms'
{  "data": [    {      "description": "string",      "end_date": "2019-08-24",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "penalty_pct": "2.00000",      "provision_type": "lockout",      "start_date": "2019-08-24"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}
PUT
/v1/loans/{id}/prepayment-terms

REPLACES the whole set in one transaction; an empty array clears it. Windows are inclusive of both dates and may not overlap (422 LOAN_PREPAYMENT_TERMS_OVERLAP). step_down needs penalty_pct (a percent: 2.0 = 2%); lockout and open must not carry one. Returns the committed set.

Required scope: loans:write

Plannable: yes. An agent can use this operation as a step in a plan.

Error codes: LOAN_NOT_FOUND, VALIDATION_FAILED, LOAN_PREPAYMENT_TERMS_OVERLAP, 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

Request Body

application/json
  1. body
terms*array<>

The WHOLE set; it replaces what the loan has. An empty array clears it.

Itemsitems <= 50

Response Body

application/json
  1. response
data*array<>
meta*
curl -X PUT 'https://api.acreum.io/v1/loans/string/prepayment-terms' \  -H 'Content-Type: application/json' \  -d '{  "terms": [    {      "end_date": "2019-08-24",      "provision_type": "lockout",      "start_date": "2019-08-24"    }  ]}'
{  "data": [    {      "description": "string",      "end_date": "2019-08-24",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "penalty_pct": "2.00000",      "provision_type": "lockout",      "start_date": "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  }}
GET
/v1/loans/{id}/rate-history

One row per interest period a rate reset priced: the period, the reading it was fixed from (fix_date, index_type), the index, spread and all-in rate, and the basis — fixed (a reading on or before the fix date, final), projected (in-arrears, the latest overnight reading held flat until the period closes) or overnight_proxy (a term-rate loan priced from overnight SOFR because no tenor reading was usable). Period 1 is never a reset, so its starting rate is not listed. 100 per page; drain meta.next_cursor for the rest. Default sort is oldest period first (period_start); ties break on id.

Required scope: loans:read

Pagination: cursor

Error codes: LOAN_NOT_FOUND, INVALID_CURSOR, VALIDATION_FAILED

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Query Parameters

cursor?string
limit?number

1..100, default 100

Range1 <= value <= 100
sort?string

Default: period_start

Value in"period_start""-period_start"
search?string

Case-insensitive substring match on: basis, index_type.

ids?string

Up to 100 ids; returns those rows regardless of other filters and ignores search.

Response Body

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://api.acreum.io/v1/loans/string/rate-history'
{  "data": [    {      "all_in_rate": "0.06800",      "basis": "fixed",      "created_at": "2019-08-24T14:15:22Z",      "fix_date": "2019-08-24",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "index_rate": "0.04300",      "index_type": "sofr_1m",      "period_end": "2019-08-24",      "period_start": "2019-08-24",      "spread": "0.02500"    }  ],  "meta": {    "api_version": "2026-04-23",    "limit": 50,    "next_cursor": "eyJpZCI6ICJhYmMifQ==",    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f"  }}