AccountPatchRequest
RequestThe body of updateAccount.
Sent in requests. Its values are closed: anything not listed is refused.
Attributes
1Fields to change on an account. Only sent fields change; null clears a nullable field.
8 attributes of data
Balance sheet or income statement class.
One of assets, liabilities, equity, revenue, expenses
Whether a bank payment coded to this account should still be chased for a source document.
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, unique per organization and resource; null removes it.
The report lines to show the account on, at most one per report definition, as a whole list: on a create the account is placed on exactly these; on an update the list replaces the account's placements (one left out is removed, [] removes all), omitted leaves them as they are.
Details
A trial-balance definition takes none. Sending the field ([] too) moves the account between report lines, a report-layout edit: the token also needs reports:write (403 INSUFFICIENT_SCOPE otherwise; leave it out to keep them).
The currency the account is kept in: an activated currency's ISO 4217 code (400 CURRENCY_NOT_ACTIVE otherwise), or null for the book currency (sending the book currency itself is 400 ACCOUNT_CURRENCY_IS_BOOK_CURRENCY).
Details
A bank account's ledger account takes the bank account's currency (409 ACCOUNT_CURRENCY_SET_BY_BANK_ACCOUNT); on an account with postings, every posting must already be in the new currency (409 ACCOUNT_CURRENCY_HAS_BOOK_POSTINGS or ACCOUNT_CURRENCY_HAS_FOREIGN_POSTINGS, with suggested_code for a new account). An account with an opening balance in EUR keeps its currency (400 ACCOUNT_OPENING_IN_CURRENCY, details.reason currency_change): an account kept in a currency states its opening balance in that currency in the opening state.