Read a Beleg: its pages, its Belegdaten with every earlier reading, whether it is an E-Rechnung (with the report of a failed check), a credit note's kind and the invoice it corrects, its case and Buchungen.
curl --request POST \ --url https://example.com/v1/queries/beleg.get \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": { "beleg_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "rationale": "example" }'Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Header Parameters
Abschnitt betitelt „Header Parameters“The Mandant a session acts on; an API-Schlüssel is bound to its own.
Request Body
Abschnitt betitelt „Request Body“object
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
Why the Actor issues this; stored in the Command-Log.
Example generated
{ "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": { "beleg_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "rationale": "example"}Responses
Abschnitt betitelt „Responses“Result
object
The current record.
One record of Belegdaten.
object
The fields of one Belegdaten record; a field that is absent was not read.
object
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.
object
What a printed dispatch day is about.
Goods sent on that day, delivered by the dispatch (§ 3 Abs. 6 UStG).
Expected or latest dispatch.
The document was sent, or a service.
Goods with installation or assembly, or on approval.
The date of a delivery note alone.
A Lohnsteuerbescheinigung: the amounts by their number on the printout (“3”, “4”, “22a”, …).
object
object
The itemised positions as printed, when the reader gives them.
One itemised position of a Beleg as printed (a restaurant bill: each dish and drink), read beside the lines per rate; it books nothing itself, the checks read it.
object
A person’s statement in a correction (beleg_data.correct): true when the position is a drink or anything but a dish, false when it is a dish. It decides over the recognition by name.
object
A service charge the restaurant adds, per rate (its amounts are part of zeilen too).
object
The line’s own period of the supply, where the Beleg states an amount of its own for it
(usage of the past month, the next month’s base fee). Several periods under one total are
not split: leave them out and ask (missing_supply_date).
object
The period the Beleg prints for the supply (first day and last day, on any page or annex): the reading sets the Leistungsdatum to the last day. Not a planned period, and not the month that is only the subject of the work.
object
The time of the supply as the Beleg names it when it names only the calendar month
(YYYY-MM, § 31 Abs. 4 UStDV); the reading sets the period to its first and last day, the
Leistungsdatum to the last one and supply_precision to month. --MM when the Beleg names
its year nowhere for this supply: then it is asked. Not the month a payment was received.
object
Whether the Beleg prints the month or the days of the supply. Absent beside a period of exactly one calendar month: not known which (an E-Rechnung, BT-73 and BT-74).
object
What the Beleg prints as the time of the supply: the calendar month (its last day is computed) or days.
Several sections on one Beleg that states one total for them (usage in arrears and the next month’s base fee): their periods, in order.
object
The units of the positions, each once: the codes of an E-Rechnung (BT-130), else as printed (Stunde, Tag, Woche, Monat, Jahr, kWh).
object
The line’s own period of the supply, where the Beleg states an amount of its own for it
(usage of the past month, the next month’s base fee). Several periods under one total are
not split: leave them out and ask (missing_supply_date).
object
Where each value of felder came from (aussteller, zeilen.0.netto, …): the oldest
record of the unbroken run that holds the same value. A value a person kept as it was read
keeps the reading as its origin; only a value the person changed or added is theirs.
object
The record a value of the Belegdaten first appeared in.
object
Person, port or struktur.
Person, port or struktur.
The record this one corrects.
Still unread while the installation has a reading port: beleg.read_again may read it.
A received credit note: its kind and the invoice it corrects; null for any other Beleg.
A received credit note as beleg.get shows it (credit_note): its kind, and for a correction
the invoice it corrects.
object
The Beleg of the booked invoice it corrects, once found.
The number of the invoice it refers to, as read.
The supplier corrects an invoice to the Mandant (kaufmännische Gutschrift, E-Rechnung type 381 or 384): the name “Gutschrift” alone brings no § 14c (Abschnitt 14c.1 Abs. 3 Satz 4 UStAE).
The customer bills a supply of the Mandant (type 389): an outgoing invoice of the Mandant.
Issuer and content do not settle it: the person is asked, nothing is booked.
Whether the Beleg is an E-Rechnung (read from structured data of a standard profile) or a sonstige Rechnung, with the profile of a structured file and the validation report of a file that failed the syntax or schema check.
object
The specification identifier (BT-24) of a structured file, if it has one.
The Hinweise of a read Beleg: the flags of its reading and the findings of the checks on its current Belegdaten.
A Hinweis shown with a Beleg: a flag of the reading or a finding of the checks.
object
Every record, newest first.
One record of Belegdaten.
object
The fields of one Belegdaten record; a field that is absent was not read.
object
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.
object
What a printed dispatch day is about.
Goods sent on that day, delivered by the dispatch (§ 3 Abs. 6 UStG).
Expected or latest dispatch.
The document was sent, or a service.
Goods with installation or assembly, or on approval.
The date of a delivery note alone.
A Lohnsteuerbescheinigung: the amounts by their number on the printout (“3”, “4”, “22a”, …).
object
object
The itemised positions as printed, when the reader gives them.
One itemised position of a Beleg as printed (a restaurant bill: each dish and drink), read beside the lines per rate; it books nothing itself, the checks read it.
object
A person’s statement in a correction (beleg_data.correct): true when the position is a drink or anything but a dish, false when it is a dish. It decides over the recognition by name.
object
A service charge the restaurant adds, per rate (its amounts are part of zeilen too).
object
The line’s own period of the supply, where the Beleg states an amount of its own for it
(usage of the past month, the next month’s base fee). Several periods under one total are
not split: leave them out and ask (missing_supply_date).
object
The period the Beleg prints for the supply (first day and last day, on any page or annex): the reading sets the Leistungsdatum to the last day. Not a planned period, and not the month that is only the subject of the work.
object
The time of the supply as the Beleg names it when it names only the calendar month
(YYYY-MM, § 31 Abs. 4 UStDV); the reading sets the period to its first and last day, the
Leistungsdatum to the last one and supply_precision to month. --MM when the Beleg names
its year nowhere for this supply: then it is asked. Not the month a payment was received.
object
Whether the Beleg prints the month or the days of the supply. Absent beside a period of exactly one calendar month: not known which (an E-Rechnung, BT-73 and BT-74).
object
What the Beleg prints as the time of the supply: the calendar month (its last day is computed) or days.
Several sections on one Beleg that states one total for them (usage in arrears and the next month’s base fee): their periods, in order.
object
The units of the positions, each once: the codes of an E-Rechnung (BT-130), else as printed (Stunde, Tag, Woche, Monat, Jahr, kWh).
object
The line’s own period of the supply, where the Beleg states an amount of its own for it
(usage of the past month, the next month’s base fee). Several periods under one total are
not split: leave them out and ask (missing_supply_date).
object
Where each value of felder came from (aussteller, zeilen.0.netto, …): the oldest
record of the unbroken run that holds the same value. A value a person kept as it was read
keeps the reading as its origin; only a value the person changed or added is theirs.
object
The record a value of the Belegdaten first appeared in.
object
Person, port or struktur.
Person, port or struktur.
The record this one corrects.
SHA-256 over the ordered page hashes, hex.
object
SHA-256 of the prepared copy the reading port receives, hex; the page’s own hash when nothing was prepared.
How the last reading failed, while the Beleg is unread: retryable (the provider could not
answer then; reading it again may succeed) or final.
What the last reading of the port told beside the fields (filled, question,
not_a_beleg, recapture, flagged); null without a reading.
The outcome of one reading, beside its fields.
The fields are all there is.
object
The one thing the provider could not settle: it becomes a question of the case; answering it writes the field and continues the case.
object
The file is no business document: no Belegdaten are written, nothing is proposed.
A page passed the quality gate but cannot be read (a fold over the amount, a cut edge): the Beleg stays unread and the person is asked to capture the page again.
object
1-based.
A CaptureProblem code of the quality gate (blurred, cut_off, …).
Topics the software must point out and never decide, shown beside the fields.
object
A topic of the Beleg the software points out and never decides.
object
The closed set of flags; each has its fixed sentence in the open layer.
The picture part of a hybrid invoice differs from its data. Not for rounding differences or a shortened presentation (Abschnitt 14c.1 Abs. 4a Satz 3 UStAE).
A tax amount the issuer may not show.
Booked without Vorsteuer, waiting for the corrected invoice: the missing details.
Example
{ "belegdaten": { "felder": { "advance_invoice": { "zustand": "gelesen" }, "amount_charged": { "zustand": "gelesen" }, "aussteller": { "zustand": "gelesen" }, "aussteller_anschrift": { "zustand": "gelesen" }, "aussteller_steuernummer": { "zustand": "gelesen" }, "belegart": { "wert": "rechnung", "zustand": "gelesen" }, "belegdatum": { "zustand": "gelesen" }, "brutto": { "zustand": "gelesen" }, "corrects_invoice_number": { "zustand": "gelesen" }, "dispatch": { "wert": "goods", "zustand": "gelesen" }, "dispatched_on": { "zustand": "gelesen" }, "empfaenger": { "zustand": "gelesen" }, "empfaenger_anschrift": { "zustand": "gelesen" }, "invoice_type_code": { "zustand": "gelesen" }, "issuer_answer": { "zustand": "gelesen" }, "issuer_country": { "zustand": "gelesen" }, "issuer_ust_idnr": { "zustand": "gelesen" }, "leistung": { "zustand": "gelesen" }, "leistungsdatum": { "zustand": "gelesen" }, "lohnsteuerbescheinigung": { "additionalProperty": { "zustand": "gelesen" } }, "occasion": { "zustand": "gelesen" }, "order_email": { "zustand": "gelesen" }, "participants": { "zustand": "gelesen" }, "positions": [ { "brutto": { "zustand": "gelesen" }, "steuersatz": { "zustand": "gelesen" }, "text": { "zustand": "gelesen" } } ], "prepaid_credit": { "zustand": "gelesen" }, "rechnungsnummer": { "zustand": "gelesen" }, "recipient_ust_idnr": { "zustand": "gelesen" }, "reverse_charge_note": { "zustand": "gelesen" }, "service_charge": [ { "brutto": { "zustand": "gelesen" }, "kategorie": { "zustand": "gelesen" }, "leistungsdatum": { "zustand": "gelesen" }, "netto": { "zustand": "gelesen" }, "steuer": { "zustand": "gelesen" }, "steuersatz": { "zustand": "gelesen" }, "supply_from": { "zustand": "gelesen" }, "supply_to": { "zustand": "gelesen" } } ], "skonto": { "wert": { "tage": null }, "zustand": "gelesen" }, "supply_date_as_invoice_date": { "zustand": "gelesen" }, "supply_from": { "zustand": "gelesen" }, "supply_period": { "zustand": "gelesen" }, "supply_precision": { "wert": "month", "zustand": "gelesen" }, "supply_text": { "zustand": "gelesen" }, "supply_to": { "zustand": "gelesen" }, "tax_total_euro": { "zustand": "gelesen" }, "tip": { "zustand": "gelesen" }, "tip_evidence": { "wert": "printed", "zustand": "gelesen" }, "waehrung": { "zustand": "gelesen" }, "whole_month": { "zustand": "gelesen" }, "zeilen": [ { "brutto": { "zustand": "gelesen" }, "kategorie": { "zustand": "gelesen" }, "leistungsdatum": { "zustand": "gelesen" }, "netto": { "zustand": "gelesen" }, "steuer": { "zustand": "gelesen" }, "steuersatz": { "zustand": "gelesen" }, "supply_from": { "zustand": "gelesen" }, "supply_to": { "zustand": "gelesen" } } ] } }, "credit_note": { "kind": "correction" }, "e_invoice": { "classification": "e_rechnung" }, "history": [ { "felder": { "advance_invoice": { "zustand": "gelesen" }, "amount_charged": { "zustand": "gelesen" }, "aussteller": { "zustand": "gelesen" }, "aussteller_anschrift": { "zustand": "gelesen" }, "aussteller_steuernummer": { "zustand": "gelesen" }, "belegart": { "wert": "rechnung", "zustand": "gelesen" }, "belegdatum": { "zustand": "gelesen" }, "brutto": { "zustand": "gelesen" }, "corrects_invoice_number": { "zustand": "gelesen" }, "dispatch": { "wert": "goods", "zustand": "gelesen" }, "dispatched_on": { "zustand": "gelesen" }, "empfaenger": { "zustand": "gelesen" }, "empfaenger_anschrift": { "zustand": "gelesen" }, "invoice_type_code": { "zustand": "gelesen" }, "issuer_answer": { "zustand": "gelesen" }, "issuer_country": { "zustand": "gelesen" }, "issuer_ust_idnr": { "zustand": "gelesen" }, "leistung": { "zustand": "gelesen" }, "leistungsdatum": { "zustand": "gelesen" }, "lohnsteuerbescheinigung": { "additionalProperty": { "zustand": "gelesen" } }, "occasion": { "zustand": "gelesen" }, "order_email": { "zustand": "gelesen" }, "participants": { "zustand": "gelesen" }, "positions": [ { "brutto": { "zustand": "gelesen" }, "steuersatz": { "zustand": "gelesen" }, "text": { "zustand": "gelesen" } } ], "prepaid_credit": { "zustand": "gelesen" }, "rechnungsnummer": { "zustand": "gelesen" }, "recipient_ust_idnr": { "zustand": "gelesen" }, "reverse_charge_note": { "zustand": "gelesen" }, "service_charge": [ { "brutto": { "zustand": "gelesen" }, "kategorie": { "zustand": "gelesen" }, "leistungsdatum": { "zustand": "gelesen" }, "netto": { "zustand": "gelesen" }, "steuer": { "zustand": "gelesen" }, "steuersatz": { "zustand": "gelesen" }, "supply_from": { "zustand": "gelesen" }, "supply_to": { "zustand": "gelesen" } } ], "skonto": { "wert": { "tage": null }, "zustand": "gelesen" }, "supply_date_as_invoice_date": { "zustand": "gelesen" }, "supply_from": { "zustand": "gelesen" }, "supply_period": { "zustand": "gelesen" }, "supply_precision": { "wert": "month", "zustand": "gelesen" }, "supply_text": { "zustand": "gelesen" }, "supply_to": { "zustand": "gelesen" }, "tax_total_euro": { "zustand": "gelesen" }, "tip": { "zustand": "gelesen" }, "tip_evidence": { "wert": "printed", "zustand": "gelesen" }, "waehrung": { "zustand": "gelesen" }, "whole_month": { "zustand": "gelesen" }, "zeilen": [ { "brutto": { "zustand": "gelesen" }, "kategorie": { "zustand": "gelesen" }, "leistungsdatum": { "zustand": "gelesen" }, "netto": { "zustand": "gelesen" }, "steuer": { "zustand": "gelesen" }, "steuersatz": { "zustand": "gelesen" }, "supply_from": { "zustand": "gelesen" }, "supply_to": { "zustand": "gelesen" } } ] } } ], "reading_outcome": { "outcome": "filled" }}default
Abschnitt betitelt „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"}