201Successful Response
Schema: SuccessEnvelope_BulkLockPeriodsResult_
successbooleanmessagestringcodestringdataBulkLockPeriodsResult
/api/v1/accounting-periods/bulk-lockClose and lock multiple accounting periods in one call. Designed for historical-data migration: any open period in the list is closed first, then transitioned to locked. Already-locked periods are skipped.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: BulkLockPeriodsRequest
period_idsarray · stringrequiredPeriod UUIDs to lock
lock_reasonstringReason recorded on each period. Defaults to 'Historical migration - bulk locked' when omitted.
Schema: SuccessEnvelope_BulkLockPeriodsResult_
successbooleanmessagestringcodestringdataBulkLockPeriodsResultSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject