201Successful Response
Schema: SuccessEnvelope_LoanWriteOffResponse_
successbooleanmessagestringcodestringdataLoanWriteOffResponse
/api/v1/loans/{instrument_id}/write-offWrite off all (default) or part of a loan's balance.
Request Body:
principal_cents: Principal to write off (optional; omit for the
full remaining balance).write_off_date: Effective date (optional, defaults to today).memo: Optional journal-entry memo.Effect:
written_off.Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
instrument_idstringrequiredSchema: LoanWriteOffRequest
write_off_datestring · dateprincipal_centsintegerPrincipal to write off; omit for the full remaining balance.
memostringSchema: SuccessEnvelope_LoanWriteOffResponse_
successbooleanmessagestringcodestringdataLoanWriteOffResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject