Cascade delete ledger
DELETE
/api/v1/ledgers/{ledger_id}/cascadeStart a Temporal workflow that deletes a ledger and all dependent records. Poll GET /ledgers/deletion-status/{workflow_id} for progress.
Authentication
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Parameters
Path
ledger_idstringrequired
Responses
202Successful Response
Schema: app__core__success__MessageResponse
successbooleanmessagestringcodestring
400Bad Request - Invalid input
401Unauthorized - Authentication required
403Forbidden - Insufficient permissions
404Not Found - Resource does not exist
422Validation Error
Schema: HTTPValidationError
detailarray · ValidationErrorValidationError5 fields
locarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject