Run interest accrual across all active loans

POST/api/v1/loans/accrue-interest

Accrue interest on every active loan through a date.

Request Body:

  • through_date: Date to accrue through (typically a month-end).

Effect:

  • Posts one accrual journal entry per loan with interest due (actual/365 simple interest on the outstanding balance).
  • Loans with nothing to accrue are skipped, so this is safe to run as a recurring month-end batch.

Returns: Per-loan accrual results and the total interest posted.

Operation ID: run_loan_interest_accruals_api_v1_loans_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.

Request body

through_datestring · daterequired

Responses

201Successful Response

successboolean
messagestring
codestring
dataLoanRunAccrualsResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error

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