200Successful Response
Schema: SuccessEnvelope_LedgerResponse_
successbooleanmessagestringcodestringdataLedgerResponse
/api/v1/ledgers/{ledger_id}Update an existing ledger account.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
ledger_idstringrequiredSchema: LedgerUpdateRequest
namestringLedger name
typestringLedger type: asset, liability, equity, revenue, or expense. Used to reclassify an account (e.g. correcting a liability to an asset).
descriptionstringLedger description
account_numberstringOptional account number/code for chart-of-accounts numbering.
statusstringLedger status (active, inactive)
debit_creditstringDebit/credit behavior (debit, credit)
sort_codeintegerSort code for chart ordering (e.g. 1000 for assets, 4000 for revenue).
sub_typestringLedger sub-type
report_cash_flowbooleanInclude in cash flow reports
cash_flow_sectionCashFlowSectionEnumCash flow statement section: 'operating' (working capital changes), 'investing' (fixed assets, investments), 'financing' (loans, equity), or 'excluded' (not shown in cash flow statement).
cfs_classCashFlowClassEnumIndirect-method cash flow classification (e.g. 'ar', 'ppe', 'lt_debt'). See CashFlowClassEnum for full list.
editablebooleanWhether journal entries can be manually posted to this account.
parent_idstringParent ledger ID for creating child/sub-ledgers
financial_account_typestringFinancial account type: bank_account, credit_card, payments, payroll, loan, prepaid_card, accounts_receivable, accounts_payable. Set to designate this ledger as a financial account.
Schema: SuccessEnvelope_LedgerResponse_
successbooleanmessagestringcodestringdataLedgerResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject