Account
ResponseA general ledger account. Its code is a label that differs between charts; what the account means is in type and role.
Returned in responses. Its enums are open: tolerate values not listed here, which later versions may add.
Attributes
14Balance sheet or income statement class.
Known values (open: expect new ones) assets, liabilities, equity, revenue, expenses
The part the account plays in the books, when the organization's settings give it one (the account sales post receivables to, the output VAT account, ...). Lets a client map charts by meaning, never by number.
Known values (open: expect new ones) receivables, payables, bank, cash, vat_output, vat_input, vat_settlement, prepayments_received, prepayments_paid, fixed_assets, accumulated_depreciation, retained_earnings, year_result, rounding, fx_difference
Details
Today the settings name receivables, payables, cash, bank (also every bank account's ledger account), vat_output, vat_input, vat_settlement and rounding; the other values are reserved and null means none.
Archived accounts are hidden from pickers and refuse new postings.
Whether a bank payment coded to this account should still be chased for a source document. Omitted on create, it follows the account's code (tax settlement, payroll, loans, bank charges and transfers between own accounts are not chased); omitted on update it is left as it is.
The VAT code a new purchase line coded to this account starts with (one of the organization's own active tax codes), or null for none.
Your own id for this record (from the system you migrate from or sync with), up to 200 characters, unique per organization and resource. Filter lists by it; on_conflict resolves a create against it.
The report lines the account's balance is shown on: at most one line per report definition (built-in or the organization's own), ordered by definition code. An account on no line of a statement is left out of it.
Details
Only a line without children, formula or role takes a placement (400 REPORT_PLACEMENT_INVALID otherwise). A placement on a definition of the other statement (an asset account on an income statement) counts for coverage and shows nothing there. Placements are not dated: a change moves every statement built afterwards, an earlier year's annual report, PDF or XBRL included when it is regenerated (the annual report then shows it as drift). Writing them is a report-layout edit: it needs reports:write besides ledger:write.
The currency the account is kept in (ISO 4217), or null for the book currency. A posting to an account kept in a currency carries its amount in that currency (FX_ACCOUNT_CURRENCY_MISMATCH otherwise).
The account is a bank account's ledger account: its currency is the bank account's (null for the book currency) and changes only with the bank account's.