201Successful Response
Schema: SuccessEnvelope_CycleCloseResponse_
successbooleanmessagestringcodestringdataCycleCloseResponse
/api/v1/credit/cycles/closeCloses every cycle whose period has ended: fixes the principal, computes the disbursement fee and the full-term interest once, and sets the due date. Idempotent — a cycle already closed is skipped. Pass dry_run to see what would close without writing.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: CycleCloseRequest
credit_line_idstringLimit to one line. Omit to sweep the business.
as_ofstring · dateTreat this as today. Defaults to the current date.
issue_statementsbooleanAlso mark closed cycles issued.
dry_runbooleanSchema: SuccessEnvelope_CycleCloseResponse_
successbooleanmessagestringcodestringdataCycleCloseResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject