200Successful Response
Schema: SuccessEnvelope_LedgerListResponse_
successbooleanmessagestringcodestringdataLedgerListResponse
/api/v1/ledgersRetrieve chart of accounts (ledgers) for the business.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
idarray · stringdefault: []Filter by specific ledger UUIDs
namestringFilter by ledger name (partial match)
typestringFilter by type: asset, liability, equity, revenue, expense
statusstringFilter by status: active, inactive
cursorstringCursor for pagination
limitintegerPagination limit
directionstringdefault: nextPagination direction: 'next' or 'prev'
include_total_countbooleandefault: FalseWhether to include total count (expensive - avoid if possible)
sort_bystringColumn name to sort by (e.g. 'created_at', 'amount', 'name'). When changing sort, reset cursor to None.
descendingbooleandefault: TrueSort direction: true for descending (newest/largest first), false for ascending
Schema: SuccessEnvelope_LedgerListResponse_
successbooleanmessagestringcodestringdataLedgerListResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject