Check an invoice for e-invoice readiness
sevdesk_invoice_einvoice_preflightChecks if an outgoing invoice can be issued as an e-invoice (XRechnung/ZUGFeRD) before finalization by validating company, customer, tax, and payment data, returning problems and fixes.
Instructions
Check whether an outgoing invoice (Rechnung) can go out as an e-invoice (E-Rechnung: XRechnung / ZUGFeRD) before finalizing it: your company data (USt-IdNr./Steuernummer, address, IBAN, BIC, e-mail, phone), the customer (name, address, country, e-mail, buyer reference / Leitweg-ID for public authorities, USt-IdNr. for reverse charge and intra-EU supplies), Leistungsdatum, Zahlungsziel, payment method, unit codes of the positions and the tax rule (One-Stop-Shop rules 18–20 are not supported). For a finalized invoice it also reads the XML sevDesk generated and checks it against EN 16931 rules. Read only. Returns ready plus problems and warnings, each with the field and the tool that fixes it (sevdesk_invoice_update_draft, sevdesk_contact_update). Before: sevdesk_invoice_get. After: sevdesk_invoice_finalize.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "sevdesk_invoice_einvoice_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice id (not the invoice number), e.g. from sevdesk_invoices_list. |