201Successful Response
Schema: SuccessEnvelope_LedgerResponse_
successbooleanmessagestringcodestringdataLedgerResponse
/api/v1/ledgersCreate a new account in the chart of accounts.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: LedgerCreateRequest
namestringrequiredLedger name (e.g., 'Operating Cash', 'Sales Revenue').
currencystringCurrency for this account (USD, CAD, AUD, EUR, or GBP). Defaults to business default.
editablebooleanWhether journal entries can be manually posted to this account.
typestringAccount type: asset, liability, equity, revenue, expense. Required in Custom Mode.
descriptionstringOptional description of the account's purpose.
account_numberstringOptional account number/code for chart-of-accounts numbering.
statusstringAccount status: 'active' or 'inactive'. Inactive accounts hidden from dropdowns.
debit_creditstringNormal balance: 'debit' (assets/expenses) or 'credit' (liabilities/equity/revenue). Required in Custom Mode.
sort_codeintegerSort code for chart ordering (e.g. 1000 for assets, 4000 for revenue). Required in Custom Mode.
sub_typestringSub-classification (current_assets, operating_expenses, etc.). Required in Custom Mode.
report_cash_flowbooleanInclude in cash flow statement. Required in Custom Mode.
financial_account_typestringTemplated Mode: bank_account, credit_card, payments, payroll, loan, prepaid_card, accounts_receivable, accounts_payable.
parent_idstringUUID of parent ledger for sub-accounts (e.g., 'Operating Expenses' → 'Office Supplies').
cash_flow_sectionCashFlowSectionEnumCash flow statement section (local-only on Teal businesses).
cfs_classCashFlowClassEnumIndirect-method cash flow classification. Determines which row of the Statement of Cash Flows this account populates. If omitted, the system derives it from type/sub_type/financial_account_type on first save; un-derivable rows must be set explicitly to pass cash-flow validation.
Schema: SuccessEnvelope_LedgerResponse_
successbooleanmessagestringcodestringdataLedgerResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject