A Rechnung issued as PDF although an e-invoice was due (§ 14 Abs. 2 Satz 2 Nr. 1, § 27 Abs. 38 UStG): the Entwurf of its Berichtigung as XRechnung, type 384 referring to the number and date of the original (BT-25, BT-26), the same positions, no Buchung and no change of the tax. Issue it with invoice.issue. Refused when no e-invoice was due (then invoice.xml_copy).
curl --request POST \ --url https://example.com/v1/commands/invoice.amend_as_e_invoice \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "dry_run": false, "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": { "invoice_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "rationale": "example" }'Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Header Parameters
Abschnitt betitelt „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
Abschnitt betitelt „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
Why the Actor issues this; stored in the Command-Log.
Responses
Abschnitt betitelt „Responses“Result
object
The gross less the Anzahlungen deducted.
Schluss: the Anzahlungsrechnungen named; anzahlung: the Schlussrechnung that settled it.
object
Gesellschafter, Geschäftsführer or nahestehende Person of the Mandant.
How a Geschäftspartner stands to the Mandant, for the flag of a verdeckte Gewinnausschüttung (§ 8 Abs. 3 Satz 2 KStG, R 8.5 KStR 2022): a Buchung with such a partner is a trigger the person looks at, never an amount.
Sets the relation back to none (never stored).
The stored proof of the business status of a Kunde outside the EU: without it a service outside the catalog of § 3a Abs. 4 UStG is treated as one to a non-business.
object
The Beleg that holds it.
The day of the proof.
A juristische Person that is no business (a public authority, a Verein with only its ideal purpose): the six-month duty of § 14 Abs. 2 Satz 2 Nr. 2 UStG applies; with a USt-IdNr. of another EU state the place is that of a business (§ 3a Abs. 2 Satz 3 UStG).
Nothing states it (a payment platform names only the person): allowed for a Kunde at home on a
small invoice (unknown_allowed); every rule that depends on the kind takes the careful side.
Where a payment to or from the partner goes: set only by business_partner.set_bank_details (administration), never by create, update or import.
BT-10 of an XRechnung for a public buyer.
object
Qualified query: per field (firmenname, strasse, plz, ort) A matches, B differs, C not asked, D not given by the member state.
object
The offline format check against the table per member state (no check digit exists).
Einfach, qualifiziert or format.
Fake (decuma dev), bzst (the official service), nur_formatpruefung (a German number, or no own German USt-IdNr. to ask with), nicht_verfuegbar (no service in this installation).
Bestaetigt, ungueltig or nicht_moeglich.
The service’s status code (evatr-0000 …) and its record id.
Schluss: the Anzahlungen deducted (received up to the Rechnungsdatum, an Entwurf: today).
An Anzahlung a Schlussrechnung deducts (§ 14 Abs. 5 Satz 2 UStG; Abschnitt 14.8 Abs. 7 UStAE): the Anzahlungsrechnung, the day of the last receipt, the Entgelt and the tax received.
object
The date of the Anzahlungsrechnung: in CII only the first one fits BG-3, so BT-22 names each with number and date.
object
Steuer_zu_hoch: the recipient is an Unternehmer (§ 14c Abs. 1, Abschnitt 14c.1 Abs. 1a UStAE).
object
Pdf, zugferd or xrechnung: the file issued (for an Entwurf: the file it would get).
object
The kind of a service as far as its place depends on it: the fixed list the person chooses from; the product never classifies a service itself.
A service of the catalog of § 3a Abs. 4 Satz 2 Nr. 1 to 10 UStG (consulting, translation, advertising, rights, data processing, information, …).
Teaching, a lecture, a cultural or scientific service performed on site (§ 3a Abs. 3 Nr. 3
Satz 1 UStG); performed_in says where.
The same streamed or otherwise made available virtually (§ 3a Abs. 3 Nr. 3 Satz 2 UStG).
A service connected with a Grundstück (§ 3a Abs. 3 Nr. 1 UStG); performed_in says where
it lies.
A service supplied electronically, automated (§ 3a Abs. 5 UStG).
None of these.
object
The Command that takes it, where one does.
object
object
Storno, Korrektur, Berichtigung: the reason given (invoice.storno) and its day.
object
Register court and number (“Amtsgericht Musterstadt HRB 12345”): BT-30 of an e-invoice.
object
object
An Entwurf of a Rechnung: the Anzahlungsrechnungen of its Kunde with money received and not
settled; issuing asks whether one belongs to this supply (unrelated_anzahlungen).
Example
{ "customer": { "beziehung": null, "bic": null, "business_status_proof": null, "cash_discount_percent": null, "customer_kind": "unternehmer", "customer_number": null, "e_invoice": null, "iban": null, "leitweg_id": null, "roles": [ "kunde" ], "sitz": "inland", "ustid_pruefung": { "abgleich": {}, "format_valid": null, "id": null, "kind": null, "status": null } }, "format": "zugferd", "line_items": [ { "performed_in": "inland", "service_kind": "catalog" } ], "sender": { "bic": null, "city": null, "email": null, "handelsregister": null, "iban": null, "land": null, "name": null, "phone": null, "postal_code": null, "steuernummer": null, "street": null, "ust_idnr": null }}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"}