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.
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" }'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 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
A bank statement file or an API delivery of Bankumsätze.
Bescheinigungen der Versicherungen.
Zuwendungsbestätigung.
Handwerkerrechnungen and haushaltsnahe Dienstleistungen.
The documents of a Mietobjekt.
Rentenbezugsmitteilung and the other documents of a Rente.
The Gewinnermittlung and the Bescheide of a Betrieb.
A credit note: the correction of a received invoice or a self-billing Gutschrift of § 14 Abs. 2 Satz 5 UStG; held for the person, nothing proposed to book.
A Mahnung: no invoice under § 14 UStG, no new claim; nothing is proposed to book.
The receipt of a Bewirtung (a restaurant bill); proposed like an invoice.
The gross total of the Beleg.
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.
The recipient’s name.
State of the issuer’s address, ISO alpha-2.
Full address of the issuer.
The issuer’s Steuernummer.
The issuer’s USt-IdNr.; one without the format of its member state is a warning, never a refusal.
Quantity and kind of the goods, or extent and kind of the service.
The itemised positions of the Beleg (each dish and drink of a restaurant bill); absent keeps those of the record before.
One itemised position as the person states it.
object
True when the position is a drink or anything but a dish, false when it is a dish.
Credit taxed with its purchase; leistungsdatum: the day credited, if known.
Instead of the day of receipt, when it is not known: the latest provable one.
The latest provable day an invoice was in possession, with its evidence.
object
Confirms this day where several periods of one year are possible.
Where the evidence is found.
Vorsteuer: the day the invoice reached the Unternehmer, needed where invoice date and Eingang in Decuma lie in different months.
The recipient’s address.
The number printed as the recipient’s (USt-IdNr. or Steuernummer).
object
The Kostenstelle of the line.
Goods over a period: the day delivered.
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.
A service over a period: its last day counts.
A line performed on a day of its own; default the Leistungsdatum of the Beleg.
Also used privately (an Einzelunternehmer only).
object
For an object: ganz, anteilig or keine.
The assignment of an object used partly privately to the business.
Wholly to the business: full Vorsteuer, the private use is an unentgeltliche Wertabgabe.
To the extent of the business use: Vorsteuer for that share, no Wertabgabe.
Not at all: no Vorsteuer.
A Personengesellschaft: the Gesellschafter pays for the use.
Wholly assigned: the day of the first use (default the Leistungsdatum).
A Personengesellschaft: the Gesellschafter who uses privately (gesellschafter.list).
What is used partly privately.
A service or a consumable (telephone contract, electricity, fuel): only the business share is supplied for the business.
One object (notebook, telephone system): the Zuordnungswahlrecht (Abschnitt 15.2c Abs. 2 Satz 1 Nr. 2 Buchst. b UStAE).
Wholly assigned: the months the cost is spread over, as confirmed (Berichtigungszeitraum, at most 60).
A Personengesellschaft: whether that Gesellschafter is a natürliche Person.
Business use in percent.
The Vorsteuer is only partly deductible (the purchase also serves tax-free turnover without deduction): refused until the deductible amount is decided.
The tax as the invoice shows it. Absent: computed per line to the cent, with a warning above the small-amount limit.
Percent; required where the Kategorie has a key per rate.
Profi-Ansicht: overrides the Kategorie’s key (same direction).
The period of the line; default day: its last one.
With vehicle: the business trip is documented (date, destination, occasion, km).
A running cost of a vehicle (fuel): whose it is.
Whose vehicle a fuel or vehicle cost is for.
A vehicle of the business.
The private vehicle of the Unternehmer (a natural person).
Someone else’s vehicle (a managing director’s or an employee’s own car).
The purchase of a movable asset: booked by its cost and the choice of the year (expense, GWG, Sammelposten, Anlagenverzeichnis).
object
Not usable on its own: the Anlage it belongs to (its nachträgliche Anschaffungskosten).
Line without a rate: the tax the invoice shows.
The kind (asset.kinds): decides Konto, balance sheet item and Abschreibung.
With gehoert_zu: that Anlage’s remaining useful life at the start of the year (R 7.4 Abs. 9 EStR).
Usable on its own (§ 6 Abs. 2 Satz 2 EStG); else part of the Anlage in gehoert_zu.
Useful life in years, required for a kind without years (§ 7 Abs. 1 EStG).
The period printed; default Leistungsdatum: its last day.
Sections under one total.
object
Month printed: true all of it, false one day (leistungsdatum).
The fields whose recorded value is removed (the Beleg does not state it).
On a booked Beleg: post the Korrektur (Storno and new Buchung). Without it the Command is refused, so that the person is asked first.
Why the Actor issues this; stored in the Command-Log.
Responses
Section titled “Responses”Result
object
Example generated
{ "belegdaten_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "buchung_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "storno_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}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"}