Lock a Wirtschaftsjahr with its stored Jahresabschluss (a person of the Mandant only): stores who, when and the state of the books, posts the Saldenvortrag; afterwards a Buchung dated in the year is refused. With an open check it is refused unless the person confirms (bestaetigt) with a reason (grund); the lock then stores the open checks, the confirmation and the reason.
curl --request POST \ --url https://example.com/v1/commands/year.festschreiben \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "dry_run": false, "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": { "bestaetigt": false, "reason": null, "year": 1 }, "rationale": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”A repeated key returns the first result without running the Command again.
The Mandant a session acts on; an API-Schlüssel is bound to its own.
Request Body
Section titled “Request Body”object
Dry run: the checks of executing, then the handler in a transaction that is always rolled back; nothing is logged, sent or kept. The answer is then a BefehlPruefung (as command.check) with the handler’s result as output, not the result below.
Who or what a call comes from beyond its Actor, set by the caller (an automation, an integration): stored and hashed with the log entry, shown and filtered in the Verlauf.
object
The name a person reads in the Verlauf, 1 to 120 characters.
The caller’s own id of it, 1 to 200 characters.
What kind of caller, 1 to 40 of a-z, 0-9 and _ (for example automation, integration).
object
The person closes the year although a check is open (needs grund); without an open
check nothing is asked.
Why the Actor issues this; stored in the Command-Log.
Responses
Section titled “Responses”Result
object
After a Berichtigung: the Meldungen that rest on the year, each needing a Berichtigung.
The checks that were open when the person closed the year with confirmation; stored with the lock, as are the person, the time and the reason.
object
A question of judgement the product flags and never decides (the text is the Command’s).
Interest and terms of a loan from a Gesellschafter: arm’s length or a hidden distribution.
No written contract for a balance with a Gesellschafter.
A debit balance on a Konto of a Gesellschafter (§ 42 Abs. 3, § 30 GmbHG, § 8 Abs. 3 KStG).
A deferral up to the tax limit may be left out uniformly; in the commercial balance sheet that is the person’s decision.
Inventories and unfinished services at the Stichtag.
Whether expenses are a time-limited transfer of rights (§ 8 Nr. 1 Buchst. f GewStG).
Receivables overdue at the Stichtag: whether and how much to write down.
A gain from the conversion of a foreign-currency balance at the Stichtag: the tax balance sheet differs from the commercial one (§ 256a Satz 2 HGB has no counterpart in the EStG).
What the person does next; none when the check passes.
The differing items, one sentence each (tolerance zero; a check never books).
Where it is fixed (a route of the app).
Geprueft, hinweis or offen.
The Steuerschlüssel a check is about (the Verprobung per key); the text names it in words.
Example
{ "offene_pruefungen": [ { "marker": "fremdueblichkeit" } ]}default
Section titled “default”Problem
object
What is wrong.
The Command the next step names, whatever the language of next_step.
What to do next.
Fields that complete the refused call when the refusal carries a proposal: merged into its payload, the same call goes through.
Example
{ "code": "validation"}