201Successful Response
Schema: SuccessEnvelope_AccountingPeriodResponse_
successbooleanmessagestringcodestringdataAccountingPeriodResponse
/api/v1/accounting-periods/closeClose an accounting period to prevent modifications.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: ClosePeriodRequest
period_endstring · daterequiredEnd date of the period to close
lock_reasonstringReason for closing the period
forcebooleanBypass soft client-side blockers (unresolved checklist items) and force the close. Backend still rejects already-closed periods. Required for historical migration when the period was reviewed offline.
Schema: SuccessEnvelope_AccountingPeriodResponse_
successbooleanmessagestringcodestringdataAccountingPeriodResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject