Accrue interest on one loan

POST/api/v1/loans/{instrument_id}/accrue-interest

Accrue interest on one loan through a date.

Request Body:

  • through_date: Date to accrue through (required).
  • memo: Optional journal-entry memo.

Effect:

  • Posts an accrual JE: Interest Receivable / Interest Income for a loan we made, Interest Expense / Accrued Interest Payable for debt we owe.
  • The accrued amount is relieved automatically by the next payment.

Prerequisites: Loan is active with a positive balance, a stated interest rate, and an accrual period of at least one day.

Operation ID: accrue_loan_interest_api_v1_loans__instrument_id__accrue_interest_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

instrument_idstringrequired

Request body

through_datestring · daterequired
memostring

Responses

201Successful Response

successboolean
messagestring
codestring
dataLoanAccrualResult

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

409Conflict - Resource already exists

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject