Zum Inhalt springen

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.

POST
/v1/queries/beleg.get
Code sample: Shell / cURL
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" }'
Decuma-Mandant
string format: uuid

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

Media typeapplication/json
object
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
rationale

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

string

Example generated

{
"origin": {
"display_name": "example",
"id": "example",
"kind": "example"
},
"payload": {
"beleg_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
},
"rationale": "example"
}

Result

Media typeapplication/json
object
beleg_id
required
string format: uuid
belegdaten

The current record.

Any of:

One record of Belegdaten.

object
beleg_id
required
string format: uuid
felder
required

The fields of one Belegdaten record; a field that is absent was not read.

object
advance_invoice

The Beleg bills before the supply (Anzahlungsrechnung, Vorausrechnung): the period it names is the planned one.

Any of:
object
wert
required
boolean
zustand
required
string
Allowed values: gelesen bitte_pruefen
amount_charged

The amount charged by the card slip.

Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
aussteller
Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
aussteller_anschrift

Full address of the issuer.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
aussteller_steuernummer

The issuer’s Steuernummer (a USt-IdNr. read here moves to issuer_ust_idnr).

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
belegart
Any of:
object
wert
required
One of:
string
Allowed values: rechnung kleinbetragsrechnung fahrausweis vertrag sonstiges eigenbeleg lohnsteuerbescheinigung
zustand
required
string
Allowed values: gelesen bitte_pruefen
belegdatum
Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
brutto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
corrects_invoice_number

The number of the invoice a credit note or correction refers to (E-Rechnung BT-25).

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
dispatch
Any of:
object
wert
required

What a printed dispatch day is about.

One of:

Goods sent on that day, delivered by the dispatch (§ 3 Abs. 6 UStG).

string
Allowed value: goods
zustand
required
string
Allowed values: gelesen bitte_pruefen
dispatched_on

The day the goods were sent, as printed (“Versandt am”), and what that day means.

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
empfaenger

The recipient’s name.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
empfaenger_anschrift

The recipient’s address.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
invoice_type_code

The type code of an E-Rechnung (BT-3): 380 invoice, 381 credit note, 384 corrected invoice, 389 self-billed invoice.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
issuer_answer

The time of the supply comes from an earlier answer for the issuer: its question_id (issuer_answer.list), not from the Beleg.

Any of:
object
wert
required
string format: uuid
zustand
required
string
Allowed values: gelesen bitte_pruefen
issuer_country

The state of the issuer’s printed address, ISO 3166-1 alpha-2 (DE, IE, US); absent when the Beleg prints none. Never taken from the language, the currency or the number.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
issuer_ust_idnr

The issuer’s USt-IdNr. (§ 27a UStG), normalised.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
leistung

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

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
leistungsdatum
Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
lohnsteuerbescheinigung

A Lohnsteuerbescheinigung: the amounts by their number on the printout (“3”, “4”, “22a”, …).

object
key
additional properties
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
occasion

Occasion and participants of a Bewirtung as written on the bill (participants by comma).

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
order_email

The mail address the order came from, as printed.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
participants
Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
positions

The itemised positions as printed, when the reader gives them.

Array<object>

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
brutto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
drink

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.

boolean | null
steuersatz
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
text
required
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
prepaid_credit

The Beleg buys credit that is taxed with the purchase: leistungsdatum is the day it was credited (absent: known only to lie in the month of the invoice); the period is the one of that month.

Any of:
object
wert
required
boolean
zustand
required
string
Allowed values: gelesen bitte_pruefen
rechnungsnummer
Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
recipient_ust_idnr

The number the Beleg prints as the recipient’s: its USt-IdNr. (E-Rechnung BT-48, recipient block) or its Steuernummer; never the issuer’s.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
reverse_charge_note

The Beleg prints the note that the recipient owes the tax (“Steuerschuldnerschaft des Leistungsempfängers”, “Reverse charge”, § 14a Abs. 5 Satz 1 UStG).

Any of:
object
wert
required
boolean
zustand
required
string
Allowed values: gelesen bitte_pruefen
service_charge

A service charge the restaurant adds, per rate (its amounts are part of zeilen too).

Array<object>
object
brutto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
kategorie
Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
leistungsdatum

The line’s own day of the supply, when it differs from the Beleg’s.

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
netto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
steuer
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
steuersatz
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_from

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).

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_to
Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
skonto

The agreed cash discount.

Any of:
object
wert
required

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
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_date_as_invoice_date

The Beleg states that the day of the supply is the invoice date (“Leistungsdatum entspricht Rechnungsdatum”); on an invoice that is no E-Rechnung the reading sets the Leistungsdatum to the Belegdatum.

Any of:
object
wert
required
boolean
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_from

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.

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_period

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.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_precision

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).

Any of:
object
wert
required

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
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_sections

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.

Array<object>
object
first_day
required
string format: date
last_day
required
string format: date
supply_text

The time of the supply in the words of the Beleg.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_to
Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
tax_total_euro

The total tax in euro an E-Rechnung in another currency states beside it (BT-111 with BT-6 EUR).

Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
tip

A tip for the staff outside the tax lines; brutto is the total without it.

Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
tip_evidence

Where the tip is named: printed on the bill, receipted by the staff, or on the card slip.

Any of:
object
wert
required
string
Allowed values: printed receipted card_slip
zustand
required
string
Allowed values: gelesen bitte_pruefen
units

The units of the positions, each once: the codes of an E-Rechnung (BT-130), else as printed (Stunde, Tag, Woche, Monat, Jahr, kWh).

Array<string> | null
waehrung

ISO 4217 code of the amounts; absent is EUR.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
whole_month

A person’s answer where the Beleg names only the month: the supply covers the whole month (true), or was made on one day, the Leistungsdatum (false). Never read.

Any of:
object
wert
required
boolean
zustand
required
string
Allowed values: gelesen bitte_pruefen
zeilen
Array<object>
object
brutto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
kategorie
Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
leistungsdatum

The line’s own day of the supply, when it differs from the Beleg’s.

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
netto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
steuer
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
steuersatz
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_from

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).

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_to
Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
id
required
string format: uuid
origin
required

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
key
additional properties

The record a value of the Belegdaten first appeared in.

object
entered_at
required
string format: date-time
entered_by
required
source
required

Person, port or struktur.

string
quelle
required

Person, port or struktur.

string
rationale
string | null
recorded_at
required
string format: date-time
recorded_by
required
replaced

The record this one corrects.

string | null format: uuid
buchungen
required
Array<string>
can_read_again
required

Still unread while the installation has a reading port: beleg.read_again may read it.

boolean
case_id
string | null format: uuid
credit_note

A received credit note: its kind and the invoice it corrects; null for any other Beleg.

Any of:

A received credit note as beleg.get shows it (credit_note): its kind, and for a correction the invoice it corrects.

object
corrects_beleg_id

The Beleg of the booked invoice it corrects, once found.

string | null format: uuid
corrects_invoice_number

The number of the invoice it refers to, as read.

string | null
kind
required
One of:

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).

string
Allowed value: correction
dublette_von
string | null format: uuid
e_invoice
required

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
classification
required
One of:

Read from structured data of a standard profile (§ 14 Abs. 1 Satz 6 UStG).

string
Allowed value: e_rechnung
is_e_invoice
required
boolean
profile

The specification identifier (BT-24) of a structured file, if it has one.

string | null
validation_report

Kept with the Beleg when its invoice file failed the syntax or schema check.

Any of:
object
file_hash
required

SHA-256 of the checked file, hex.

string
findings
required
Array<string>
eigenbeleg
eingang_am
required
string format: date-time
hints
required

The Hinweise of a read Beleg: the flags of its reading and the findings of the checks on its current Belegdaten.

Array<object>

A Hinweis shown with a Beleg: a flag of the reading or a finding of the checks.

object
code
required
string
field
string | null
text
required
string
history
required

Every record, newest first.

Array<object>

One record of Belegdaten.

object
beleg_id
required
string format: uuid
felder
required

The fields of one Belegdaten record; a field that is absent was not read.

object
advance_invoice

The Beleg bills before the supply (Anzahlungsrechnung, Vorausrechnung): the period it names is the planned one.

Any of:
object
wert
required
boolean
zustand
required
string
Allowed values: gelesen bitte_pruefen
amount_charged

The amount charged by the card slip.

Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
aussteller
Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
aussteller_anschrift

Full address of the issuer.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
aussteller_steuernummer

The issuer’s Steuernummer (a USt-IdNr. read here moves to issuer_ust_idnr).

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
belegart
Any of:
object
wert
required
One of:
string
Allowed values: rechnung kleinbetragsrechnung fahrausweis vertrag sonstiges eigenbeleg lohnsteuerbescheinigung
zustand
required
string
Allowed values: gelesen bitte_pruefen
belegdatum
Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
brutto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
corrects_invoice_number

The number of the invoice a credit note or correction refers to (E-Rechnung BT-25).

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
dispatch
Any of:
object
wert
required

What a printed dispatch day is about.

One of:

Goods sent on that day, delivered by the dispatch (§ 3 Abs. 6 UStG).

string
Allowed value: goods
zustand
required
string
Allowed values: gelesen bitte_pruefen
dispatched_on

The day the goods were sent, as printed (“Versandt am”), and what that day means.

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
empfaenger

The recipient’s name.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
empfaenger_anschrift

The recipient’s address.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
invoice_type_code

The type code of an E-Rechnung (BT-3): 380 invoice, 381 credit note, 384 corrected invoice, 389 self-billed invoice.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
issuer_answer

The time of the supply comes from an earlier answer for the issuer: its question_id (issuer_answer.list), not from the Beleg.

Any of:
object
wert
required
string format: uuid
zustand
required
string
Allowed values: gelesen bitte_pruefen
issuer_country

The state of the issuer’s printed address, ISO 3166-1 alpha-2 (DE, IE, US); absent when the Beleg prints none. Never taken from the language, the currency or the number.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
issuer_ust_idnr

The issuer’s USt-IdNr. (§ 27a UStG), normalised.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
leistung

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

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
leistungsdatum
Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
lohnsteuerbescheinigung

A Lohnsteuerbescheinigung: the amounts by their number on the printout (“3”, “4”, “22a”, …).

object
key
additional properties
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
occasion

Occasion and participants of a Bewirtung as written on the bill (participants by comma).

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
order_email

The mail address the order came from, as printed.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
participants
Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
positions

The itemised positions as printed, when the reader gives them.

Array<object>

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
brutto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
drink

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.

boolean | null
steuersatz
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
text
required
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
prepaid_credit

The Beleg buys credit that is taxed with the purchase: leistungsdatum is the day it was credited (absent: known only to lie in the month of the invoice); the period is the one of that month.

Any of:
object
wert
required
boolean
zustand
required
string
Allowed values: gelesen bitte_pruefen
rechnungsnummer
Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
recipient_ust_idnr

The number the Beleg prints as the recipient’s: its USt-IdNr. (E-Rechnung BT-48, recipient block) or its Steuernummer; never the issuer’s.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
reverse_charge_note

The Beleg prints the note that the recipient owes the tax (“Steuerschuldnerschaft des Leistungsempfängers”, “Reverse charge”, § 14a Abs. 5 Satz 1 UStG).

Any of:
object
wert
required
boolean
zustand
required
string
Allowed values: gelesen bitte_pruefen
service_charge

A service charge the restaurant adds, per rate (its amounts are part of zeilen too).

Array<object>
object
brutto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
kategorie
Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
leistungsdatum

The line’s own day of the supply, when it differs from the Beleg’s.

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
netto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
steuer
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
steuersatz
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_from

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).

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_to
Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
skonto

The agreed cash discount.

Any of:
object
wert
required

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
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_date_as_invoice_date

The Beleg states that the day of the supply is the invoice date (“Leistungsdatum entspricht Rechnungsdatum”); on an invoice that is no E-Rechnung the reading sets the Leistungsdatum to the Belegdatum.

Any of:
object
wert
required
boolean
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_from

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.

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_period

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.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_precision

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).

Any of:
object
wert
required

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
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_sections

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.

Array<object>
object
first_day
required
string format: date
last_day
required
string format: date
supply_text

The time of the supply in the words of the Beleg.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_to
Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
tax_total_euro

The total tax in euro an E-Rechnung in another currency states beside it (BT-111 with BT-6 EUR).

Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
tip

A tip for the staff outside the tax lines; brutto is the total without it.

Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
tip_evidence

Where the tip is named: printed on the bill, receipted by the staff, or on the card slip.

Any of:
object
wert
required
string
Allowed values: printed receipted card_slip
zustand
required
string
Allowed values: gelesen bitte_pruefen
units

The units of the positions, each once: the codes of an E-Rechnung (BT-130), else as printed (Stunde, Tag, Woche, Monat, Jahr, kWh).

Array<string> | null
waehrung

ISO 4217 code of the amounts; absent is EUR.

Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
whole_month

A person’s answer where the Beleg names only the month: the supply covers the whole month (true), or was made on one day, the Leistungsdatum (false). Never read.

Any of:
object
wert
required
boolean
zustand
required
string
Allowed values: gelesen bitte_pruefen
zeilen
Array<object>
object
brutto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
kategorie
Any of:
object
wert
required
string
zustand
required
string
Allowed values: gelesen bitte_pruefen
leistungsdatum

The line’s own day of the supply, when it differs from the Beleg’s.

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
netto
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
steuer
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
steuersatz
Any of:
object
wert
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_from

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).

Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
supply_to
Any of:
object
wert
required
string format: date
zustand
required
string
Allowed values: gelesen bitte_pruefen
id
required
string format: uuid
origin
required

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
key
additional properties

The record a value of the Belegdaten first appeared in.

object
entered_at
required
string format: date-time
entered_by
required
source
required

Person, port or struktur.

string
quelle
required

Person, port or struktur.

string
rationale
string | null
recorded_at
required
string format: date-time
recorded_by
required
replaced

The record this one corrects.

string | null format: uuid
identitaet
required

SHA-256 over the ordered page hashes, hex.

string
number
required
integer format: int64
pages
required
Array<object>
object
content_hash
required

SHA-256 of the prepared copy the reading port receives, hex; the page’s own hash when nothing was prepared.

string
hash
required
string
media_type
required
string
size
required
integer format: int64
reading_failure

How the last reading failed, while the Beleg is unread: retryable (the provider could not answer then; reading it again may succeed) or final.

string | null
reading_outcome

What the last reading of the port told beside the fields (filled, question, not_a_beleg, recapture, flagged); null without a reading.

Any of:

The outcome of one reading, beside its fields.

One of:

The fields are all there is.

object
outcome
required
string
Allowed value: filled
replaced
required
Array<string>
wartet_auf_berichtigung

Booked without Vorsteuer, waiting for the corrected invoice: the missing details.

string | null

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

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