Skip to content

Correct what was read from a Beleg (Belegdaten korrigieren: a wrong amount, date, issuer or number): send only the fields to change, the others keep their recorded value (rows replace the lines as a whole; clear removes a field). A new record, the earlier stays readable; on a booked Beleg (with korrektur_buchen) also a Storno and a new Buchung from the corrected values. On a Beleg booked by hand the record only completes the Beleg; no Buchung changes. A correction by a program is saved and logged; only a person releases a Beleg held because its picture differs from its data or shows a dish at 19 percent.

POST
/v1/commands/beleg_data.correct
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/v1/commands/beleg_data.correct \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "dry_run": false, "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": { "beleg_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "belegdaten": { "belegart": null, "belegdatum": null, "brutto": null, "currency": null, "empfaenger": null, "issuer": null, "issuer_country": "example", "issuer_postal_address": null, "issuer_steuernummer": null, "issuer_ust_idnr": null, "leistung": null, "leistungsdatum": null, "positions": [ { "brutto": null, "drink": null, "steuersatz": null, "text": "example" } ], "prepaid_credit": true, "received_latest": { "evidence": "email_time", "latest_confirmed": false, "on": "2026-04-15", "reference": "example" }, "rechnung_erhalten_am": null, "rechnungsnummer": null, "recipient_postal_address": null, "recipient_ust_idnr": "example", "rows": [], "skonto": null, "supply_from": "2026-04-15", "supply_precision": "month", "supply_sections": [ { "first_day": "2026-04-15", "last_day": "2026-04-15" } ], "supply_to": "2026-04-15", "whole_month": true }, "clear": [], "korrektur_buchen": false }, "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
beleg_id
required
string format: uuid
belegdaten
required

The fields to correct: a field left out (or null) keeps its recorded value. rows replace the recorded lines as a whole; a line that names no amount keeps the amounts of the recorded one when the number of lines is the same.

object
belegart
Any of:
One of:
string
Allowed values: rechnung kleinbetragsrechnung fahrausweis vertrag sonstiges eigenbeleg lohnsteuerbescheinigung
belegdatum
string | null format: date
brutto

The gross total of the Beleg.

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

ISO 4217 code of every amount of the Beleg; absent is EUR. The capture converts each line with the BMF monthly rate before any sum.

string | null
empfaenger

The recipient’s name.

string | null
issuer
string | null
issuer_country

State of the issuer’s address, ISO alpha-2.

string | null
issuer_postal_address

Full address of the issuer.

string | null
issuer_steuernummer

The issuer’s Steuernummer.

string | null
issuer_ust_idnr

The issuer’s USt-IdNr.; one without the format of its member state is a warning, never a refusal.

string | null
leistung

Quantity and kind of the goods, or extent and kind of the service.

string | null
leistungsdatum
string | null format: date
positions

The itemised positions of the Beleg (each dish and drink of a restaurant bill); absent keeps those of the record before.

Array<object> | null

One itemised position as the person states it.

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

True when the position is a drink or anything but a dish, false when it is a dish.

boolean | null
steuersatz
string | number | null
/^-?\d+(\.\d+)?([eE]\d+)?$/
text
required
string
prepaid_credit

Credit taxed with its purchase; leistungsdatum: the day credited, if known.

boolean | null
received_latest

Instead of the day of receipt, when it is not known: the latest provable one.

Any of:

The latest provable day an invoice was in possession, with its evidence.

object
evidence
required

What shows the recipient’s possession; a direct debit or card charge of the supplier is none (the supplier writes its text).

One of:
string
Allowed values: email_time receipt_stamp portal_log
latest_confirmed

Confirms this day where several periods of one year are possible.

boolean
on
required
string format: date
reference
required

Where the evidence is found.

string
rechnung_erhalten_am

Vorsteuer: the day the invoice reached the Unternehmer, needed where invoice date and Eingang in Decuma lie in different months.

string | null format: date
rechnungsnummer
string | null
recipient_postal_address

The recipient’s address.

string | null
recipient_ust_idnr

The number printed as the recipient’s (USt-IdNr. or Steuernummer).

string | null
rows
Array<object>
default:
object
brutto
string | number | null
/^-?\d+(\.\d+)?([eE]\d+)?$/
category
string | null
cost_center_id

The Kostenstelle of the line.

string | null format: uuid
delivered_on

Goods over a period: the day delivered.

string | null format: date
foreign_vat

A foreign VAT the issuer shows on an invoice whose tax the recipient owes (§ 13b UStG): never Vorsteuer; the base of the line is asked.

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

A service over a period: its last day counts.

boolean | null
leistungsdatum

A line performed on a day of its own; default the Leistungsdatum of the Beleg.

string | null format: date
mitbenutzung

Also used privately (an Einzelunternehmer only).

Any of:
object
assignment

For an object: ganz, anteilig or keine.

Any of:

The assignment of an object used partly privately to the business.

One of:

Wholly to the business: full Vorsteuer, the private use is an unentgeltliche Wertabgabe.

string
Allowed value: ganz
entgelt

A Personengesellschaft: the Gesellschafter pays for the use.

boolean
erstmals_verwendet

Wholly assigned: the day of the first use (default the Leistungsdatum).

string | null format: date
gesellschafter_id

A Personengesellschaft: the Gesellschafter who uses privately (gesellschafter.list).

string | null format: uuid
kind
required

What is used partly privately.

One of:

A service or a consumable (telephone contract, electricity, fuel): only the business share is supplied for the business.

string
Allowed value: laufend
months

Wholly assigned: the months the cost is spread over, as confirmed (Berichtigungszeitraum, at most 60).

integer | null format: uint32
natuerliche_person

A Personengesellschaft: whether that Gesellschafter is a natürliche Person.

boolean | null
unternehmensanteil
required

Business use in percent.

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

The Vorsteuer is only partly deductible (the purchase also serves tax-free turnover without deduction): refused until the deductible amount is decided.

boolean
steuer

The tax as the invoice shows it. Absent: computed per line to the cent, with a warning above the small-amount limit.

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

Percent; required where the Kategorie has a key per rate.

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

Profi-Ansicht: overrides the Kategorie’s key (same direction).

string | null
supply_from

The period of the line; default day: its last one.

string | null format: date
supply_to
string | null format: date
trip_documented

With vehicle: the business trip is documented (date, destination, occasion, km).

boolean
vehicle

A running cost of a vehicle (fuel): whose it is.

Any of:

Whose vehicle a fuel or vehicle cost is for.

One of:

A vehicle of the business.

string
Allowed value: company
wirtschaftsgut

The purchase of a movable asset: booked by its cost and the choice of the year (expense, GWG, Sammelposten, Anlagenverzeichnis).

Any of:
object
gehoert_zu

Not usable on its own: the Anlage it belongs to (its nachträgliche Anschaffungskosten).

string | null format: uuid
invoice_tax

Line without a rate: the tax the invoice shows.

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

The kind (asset.kinds): decides Konto, balance sheet item and Abschreibung.

string | null
land_purchase

Land: what the notarised contract says.

Any of:
string
Allowed values: taxed_by_option no_option whole_business incidental_cost
restnutzungsdauer

With gehoert_zu: that Anlage’s remaining useful life at the start of the year (R 7.4 Abs. 9 EStR).

integer | null format: uint32
selbstaendig_nutzbar
required

Usable on its own (§ 6 Abs. 2 Satz 2 EStG); else part of the Anlage in gehoert_zu.

boolean
useful_life_years

Useful life in years, required for a kind without years (§ 7 Abs. 1 EStG).

integer | null format: uint32
skonto

The agreed cash discount of the invoice (Zahlungsbedingung).

Any of:

The agreed cash discount: prozent of the gross amount when paid within tage days of the Belegdatum (no tage: the terms state no period).

object
percent
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
tage
integer | null format: int64
supply_from

The period printed; default Leistungsdatum: its last day.

string | null format: date
supply_precision

As printed; default days.

Any of:

What the Beleg prints as the time of the supply: the calendar month (its last day is computed) or days.

string
Allowed values: month days
supply_sections

Sections under one total.

Array<object>
object
first_day
required
string format: date
last_day
required
string format: date
supply_to
string | null format: date
whole_month

Month printed: true all of it, false one day (leistungsdatum).

boolean | null
clear

The fields whose recorded value is removed (the Beleg does not state it).

Array<string>
default:
Allowed values: belegart issuer belegdatum leistungsdatum supply_from supply_to prepaid_credit rechnungsnummer rechnung_erhalten_am received_latest brutto currency issuer_postal_address issuer_steuernummer issuer_ust_idnr recipient_ust_idnr empfaenger recipient_postal_address leistung skonto rows positions
korrektur_buchen

On a booked Beleg: post the Korrektur (Storno and new Buchung). Without it the Command is refused, so that the person is asked first.

boolean
rationale

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

string

Result

Media typeapplication/json
object
belegdaten_id
required
string format: uuid
buchung_id
string | null format: uuid
storno_id
string | null format: uuid

Example generated

{
"belegdaten_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"buchung_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"storno_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

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