pub struct AccountUpdate {
pub account_group_id: i64,
pub annotation: Option<Option<String>>,
pub budget: Option<Option<i64>>,
pub identifier: Option<Option<String>>,
pub is_donation_account: Option<bool>,
pub is_mandatory_eubp: Option<bool>,
pub is_opening_balance_account: Option<bool>,
pub name: String,
pub number: String,
pub tax_rate_id: Option<Option<i64>>,
pub extra: Map<String, Value>,
}Expand description
Replacement values for an account in an open accounting period. The period cannot be changed here. Omitted optional fields reset to false or null. A donation account with existing donation transactions cannot have isDonationAccount disabled through this single-update endpoint.
Fields§
§account_group_id: i64Existing parent account group from /finance/accountgroups.
annotation: Option<Option<String>>Optional trimmed note. Omitted, null or blank clears it.
None leaves the field out, Some(None) sends null.
budget: Option<Option<i64>>Budget in minor currency units. Omitted or null clears it.
None leaves the field out, Some(None) sends null.
identifier: Option<Option<String>>Optional account identifier, for example an IBAN. All spaces are removed before storage; no IBAN-format validation is performed. Omitted or null clears it.
None leaves the field out, Some(None) sends null.
is_donation_account: Option<bool>Whether transactions on this account can be recorded as donations. Omission resets the flag to false.
is_mandatory_eubp: Option<bool>Whether the account is included in electronically supported employer audits (euBP). On update, an existing lock forces this flag to true.
is_opening_balance_account: Option<bool>Whether this account is used for opening-balance postings. Omission resets the flag to false.
name: StringTrimmed, nonblank account name. Creation checks uniqueness within the accounting period.
number: StringTrimmed account number. The value 9999 is reserved for the profit-and-loss total in reports. On creation, number must be unique within the accounting period.
tax_rate_id: Option<Option<i64>>Optional default tax rate from /finance/taxrates. Omitted or null clears it.
None leaves the field out, Some(None) sends null.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.