pub struct AccountCreate {Show 13 fields
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 accounting_period_id: i64,
pub is_mandatory_eubp_locked: Option<bool>,
pub extra: Map<String, Value>,
}Expand description
A ledger account belongs to one accounting period and one account group. The group links it to an account class and account type. Transactions post amounts between an account and a contra account. Amounts and budgets use integer minor currency units, for example cents.
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.
accounting_period_id: i64Existing, open accounting period. Required for creation and cannot be changed by PUT.
is_mandatory_eubp_locked: Option<bool>Initial euBP lock. When already locked, later updates force isMandatoryEubp to true. PUT validates but does not change this lock.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.