Skip to content

The workbook of the year-end of a Wirtschaftsjahr: steps with their state and the one next step, the checks, the Abschlussbuchungen, the size class with its marks, the dates, the stored Jahresabschluss, Feststellung, Offenlegung, the lock and the retention.

POST
/v1/queries/closing.workbook
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/v1/queries/closing.workbook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": { "year": 1 }, "rationale": "example" }'
Decuma-Mandant
string format: uuid

The Mandant a session acts on; an API-Schlüssel is bound to its own.

Media typeapplication/json
object
origin

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
display_name
required

The name a person reads in the Verlauf, 1 to 120 characters.

string
id
required

The caller’s own id of it, 1 to 200 characters.

string
kind
required

What kind of caller, 1 to 40 of a-z, 0-9 and _ (for example automation, integration).

string
payload
object
year
required
integer format: int32
rationale

Why the Actor issues this; stored in the Command-Log.

string

Example generated

{
"origin": {
"display_name": "example",
"id": "example",
"kind": "example"
},
"payload": {
"year": 1
},
"rationale": "example"
}

Result

Media typeapplication/json
object
aufbewahrung
required
Array<object>

The retention of one kind of record.

object
bis
required

Kept at least until this day; the tax period runs on while the records matter for a tax whose Festsetzungsfrist is open (§ 147 Abs. 3 Satz 5 AO).

string format: date
fristbeginn
required

End of the calendar year of the starting event.

string format: date
kind
required
string
norm
required
string
years
integer | null format: int32
bestaetigung

When the person closed the year with open checks: the reason and the checks as stored with the lock.

Any of:
object
checks
required
Array<string>
reason
required
string
checks
required
Array<object>
object
amount
string | number | null
/^-?\d+(\.\d+)?([eE]\d+)?$/
marker
Any of:

A question of judgement the product flags and never decides (the text is the Command’s).

One of:

Interest and terms of a loan from a Gesellschafter: arm’s length or a hidden distribution.

string
Allowed value: fremdueblichkeit
next_step

What the person does next; none when the check passes.

string | null
posten
required

The differing items, one sentence each (tolerance zero; a check never books).

Array<string>
route
required

Where it is fixed (a route of the app).

string
schluessel
required
string
stand
required

Geprueft, hinweis or offen.

string
steuerschluessel

The Steuerschlüssel a check is about (the Verprobung per key); the text names it in words.

string | null
text
required
string
feststellung
string | null format: date
groessenklasse
required
object
klasse
Any of:
string
Allowed values: kleinst klein mittelgross gross
merkmale
required

The marks at one Stichtag.

object
bilanzsumme
required

Aktiva A to E, without a Fehlbetrag under § 268 Abs. 3 HGB (§ 267 Abs. 4a HGB).

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
employee
required

Yearly average (§ 267 Abs. 5 HGB).

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
umsatzerloese
required

Of the twelve months before the Stichtag.

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
prior_year
Any of:

The marks at one Stichtag.

object
bilanzsumme
required

Aktiva A to E, without a Fehlbetrag under § 268 Abs. 3 HGB (§ 267 Abs. 4a HGB).

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
employee
required

Yearly average (§ 267 Abs. 5 HGB).

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
umsatzerloese
required

Of the twelve months before the Stichtag.

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
questions
required

Rückfragen that decide the class (employees, the previous year, a holding).

Array<string>
ueberschritten
Any of:
string
Allowed values: kleinst klein mittelgross gross
jahresabschluss
Any of:
object
aufgestellt_am
required
string format: date-time
hash
required
string
jahresabschluss_id
required
string format: uuid
last_number
required
integer format: int64
superseded
required

A later Buchung dated in the year made it out of date.

boolean
version
required
integer format: int32
next_step
string | null
offenlegung
string | null format: date
proposals
required
Array<object>
object
buchung_id
string | null format: uuid
difference
string | number | null
/^-?\d+(\.\d+)?([eE]\d+)?$/
eingabe

What the person still has to give (none when the entry can be posted).

string | null
invoice
required
Array<string>
kind
required
One of:

Follows from a rule; posted after one confirmation.

string
Allowed value: berechnet
markers
required
Array
norm
required
string
nr
required
integer format: uint32
question

The Angabe that answers eingabe, when it is one of closing.set_input.

Any of:

The key and field of closing.set_input that answer an entry, and a proposal from the previous year’s return computed in Decuma (vorschlag): shown to be confirmed, never used before it is given.

object
feld
required
string
proposal
string | number | null
/^-?\d+(\.\d+)?([eE]\d+)?$/
schluessel
required
string
rows
required
Array<object>

One line of a Buchungssatz.

object
amount
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
konto
required
string
side
required

Debit or credit (stored as soll or haben).

string
Allowed values: debit credit
schluessel
required
string
state
required

Vorgeschlagen, gebucht, abgelehnt, ueberholt (posted, recomputed differently), frage.

string
title
required
string
vorlaeufig
required
boolean
sperre
required

Offen, gesperrt or berichtigung.

string
start
required
string format: date
steps
required
Array<object>
object
state
required

Erledigt, offen, blockiert.

string
step
required

Vorbereiten, buchungen, bilanz, feststellen, uebermitteln, jahreswechsel.

string
text
required
string
stichtag
required
string format: date
termine
Any of:
object
aufstellung
required

The regular date (three months).

string format: date
aufstellung_spaetestens

The latest date of a small or Kleinst company (six months); None above.

string | null format: date
feststellung
required
string format: date
offenlegung
required
string format: date
verschiebung_nicht_angewandt
required

The dates of HGB and GmbHG are not moved past a weekend or holiday (a neutral flag, no text).

boolean
termine_ohne_verschiebung
required

The dates of HGB and GmbHG are the unshifted calendar days.

boolean
year
required
integer format: int32

Example

{
"checks": [
{
"marker": "fremdueblichkeit"
}
],
"groessenklasse": {
"klasse": "kleinst",
"ueberschritten": "kleinst"
},
"proposals": [
{
"kind": "berechnet",
"markers": [
"fremdueblichkeit"
],
"rows": [
{
"side": "debit"
}
]
}
]
}

Problem

Media typeapplication/problem+json
object
code
required
string
Allowed values: validation not_authenticated not_allowed needs_human second_factor_required unknown_command idempotency_conflict not_found conflict busy internal
detail

What is wrong.

string
next_command

The Command the next step names, whatever the language of next_step.

string | null
next_step

What to do next.

string
retry_payload

Fields that complete the refused call when the refusal carries a proposal: merged into its payload, the same call goes through.

object | null
status
required
integer
title
required
string
type
required
string

Example

{
"code": "validation"
}