Zum Inhalt springen

Complete an Anlage im Bau or an Anzahlung: an Umbuchung of its cost to the Konto of its kind on the day of completion, from which the Abschreibung runs (a building at its rate of § 7 Abs. 4 EStG); the Anlagenspiegel shows it as Umbuchung.

POST
/v1/commands/asset.complete
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/v1/commands/asset.complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "dry_run": false, "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": { "asset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "date": "2026-04-15", "erstes_jahr": null, "gebaeude": { "bauantrag": null, "fertigstellung": null, "ohne_grund_und_boden": false, "wohnzwecke": true }, "kind": "example", "origin": null, "rationale": null, "years": 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
asset_id
required
string format: uuid
date
required

The day of completion or delivery (R 7.4 Abs. 1 EStR): the Abschreibung starts with it.

string format: date
erstes_jahr

A building: how its first year is counted, volle_monate_mit_anschaffungsmonat (the person’s answer to the proposal).

string | null
gebaeude

Completed into a building (Bauten im Bau): what decides its rate (§ 7 Abs. 4 Satz 1 EStG); the day of completion is datum.

Any of:
object
bauantrag

The day the Bauantrag was filed (a building not used for living).

string | null format: date
fertigstellung

The day of completion.

string | null format: date
ohne_grund_und_boden

The building stands on land the business holds already (or an Erbbaurecht): no share of Grund und Boden in this purchase.

boolean
wohnzwecke
required

Used for living (Wohnzwecke).

boolean
kind
required

The kind it is completed into (abschluss anlagearten, written off linearly).

string
origin
Any of:

Where a useful life comes from (kept with its reason).

One of:

A position of the AfA-Tabelle AV.

string
Allowed value: tabelle
rationale
string | null
years

The useful life when it deviates from the proposal of the kind or none exists.

integer | null format: uint32
rationale

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

string

Result

Media typeapplication/json

An Anlage with its record id and current state.

object
abgang
string | null format: date
acquisition_cost
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
afa_konto

The Konto of its Abschreibung (the kind’s); none: Abschreibungen auf Sachanlagen.

string | null
asset_id
required
string format: uuid
buchung_id
required
string format: uuid
category
string | null
erloes
string | number | null
/^-?\d+(\.\d+)?([eE]\d+)?$/
im_bau

Completed from an Anlage im Bau (lieferung is the day of completion).

Any of:

An Anlage im Bau or an Anzahlung completed into the Konto of its kind: it entered its position by an Umbuchung on the day of completion (lieferung).

object
konto
required

The Konto im Bau or of the Anzahlung.

string
zugang
required

The day of the first cost on it.

string format: date
kind

The kind of the rule data abschluss anlagearten, if given.

string | null
konto
required
string
lieferung
required
string format: date
nachtraege
Array<object>
default:

Nachträgliche Anschaffungskosten: from the Wirtschaftsjahr they arise in, as if spent at its beginning (R 7.4 Abs. 9 Satz 3 EStR), the AfA is the book value at the beginning plus the amount over the remaining useful life the person confirmed (H 7.4).

object
amount
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
date
required
string format: date
restnutzungsdauer
required
integer format: uint32
name
required
string
origin
Any of:

Where a useful life comes from (kept with its reason).

One of:

A position of the AfA-Tabelle AV.

string
Allowed value: tabelle
plan
required

The AfA-Plan: year, amount, book value, state (gebucht, vorgeschlagen, geplant).

Array<object>
object
afa
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
buchwert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
state
required
string
year
required
integer format: int32
rationale
string | null
satz

A building: the yearly rate in percent (§ 7 Abs. 4 EStG) instead of a useful life.

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

Left this position by an Umbuchung on this day (the Anlage im Bau after completion).

string | null format: date
voll_im_ersten_jahr
boolean
years
integer | null format: uint32
zeitanteil

How the share of the year of the Abgang is counted: the person’s answer, no default.

Any of:

How the share of the year of an Abgang is counted (rule data abgang_zeitanteil, a parameter; the person confirms the amount).

string
Allowed values: monate_mit_abgangsmonat monate_ohne_abgangsmonat tage

Example

{
"abgang": null,
"afa_konto": null,
"im_bau": null,
"nachtraege": [],
"origin": "tabelle",
"satz": null,
"umgebucht_am": null,
"voll_im_ersten_jahr": false,
"years": null,
"zeitanteil": null
}

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