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.
depreciation_tagDepreciationTagEnumMarks this account as holding capitalizable spend: 'depreciable' or 'amortizable'. Set to null to clear the tag.
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: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.