Skip to content

Prepares the Fragebogen zur steuerlichen Erfassung of a company in Gründung as an Einreichung: the sections of the form version from the master data and the founders' planning figures, the choices with both ways (never preselected), and the sections left to the portal. Called again it updates the content until it is filed.

POST
/v1/commands/formation.prepare_fragebogen
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/v1/commands/formation.prepare_fragebogen \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "dry_run": false, "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": { "bank_account_id": null, "employee": null, "lohnsteuer": null, "taetigkeit": "", "umsatz_folgejahr": null, "umsatz_gruendungsjahr": null, "ust_idnr_beantragen": null, "zahllast": null }, "rationale": "example" }'
Idempotency-Key
string

A repeated key returns the first result without running the Command again.

Decuma-Mandant
string format: uuid

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

Media typeapplication/json
object
dry_run

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.

boolean
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
bank_account_id

The Bankkonto for the Bankverbindung; default the only one.

string | null format: uuid
employee
integer | null format: uint32
lohnsteuer
string | number | null
/^-?\d+(\.\d+)?([eE]\d+)?$/
taetigkeit

Art and extent of the business, in a few words.

string
""
umsatz_folgejahr
string | number | null
/^-?\d+(\.\d+)?([eE]\d+)?$/
umsatz_gruendungsjahr

Planning figures of the founders (estimates): Gesamtumsatz in the year of the start and the year after, the expected Zahllast (negative: Überschuss), employees including the Geschäftsführer, the expected Lohnsteuer of the year.

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

Whether to tick the request for the Umsatzsteuer-Identifikationsnummer; never preset.

boolean | null
zahllast
string | number | null
/^-?\d+(\.\d+)?([eE]\d+)?$/
rationale

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

string

Result

Media typeapplication/json
object
abgerufen_am
required
string
abschnitte
required
Array<object>
object
felder
required

Label to value; an empty value is entered by the person in the portal.

Array<array>
title
required
string
einreichung
required
object
answer
bezug
required
content
required

The prepared content: the data as a list, the text to copy, the attachments.

object
anlagen

Belege attached (ids of the Belegablage).

Array<string>
default:
felder

Label to value, in the order to enter them.

Array<array>
default:
text
string
""
formular
required
string
hash
required

Hash of the content: what a Freigabe binds.

string
id
required
string format: uuid
kind
required

Antrag, einspruch, fragebogen or registermitteilung.

string
next_step
required
string
referenz
string | null
released_at
string | null format: date-time
state
required

Vorbereitet, freigegeben, eingereicht, bewilligt or abgelehnt.

string
submitted_on
string | null format: date
formularname
required
string
nicht_enthalten
required

Sections this preparation does not hold; the person finds them in the portal.

Array<string>
notices
required
Array<string>
version
required
string
wahlen
required
Array<object>

A choice of the Fragebogen with both ways and their consequences; never preselected.

object
antwort_ueber
required

Where the answer is recorded (a Command).

string
question
required
string
selected

The answer in the master data, if the person gave one.

string | null
wege
required

(way, consequence).

Array<array>

Example

{
"einreichung": {
"content": {
"anlagen": [],
"felder": [],
"text": ""
}
}
}

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"
}