Validation rules

BR-CL-24

The MIME type of an embedded attachment (BT-125 mimeCode) is not one of the types EN 16931 permits (PDF, PNG, JPEG, CSV, XLSX or ODS).

Rule
BR-CL-24official EN 16931 / XRechnung rule
Severity
error
Detected by
tier 3 — KoSIT validator (authoritative)
Reachability
Not expressible through the normbill invoice model — documented for completeness

supporting_documents[i].mime_type is a closed Zod enum of the six permitted MIME types, so unknown values never reach the serializer. Fatal in the primary CIUS scenario (only the Extension scenario downgrades it).

How to fix it

Use one of the permitted MIME types on cbc:EmbeddedDocumentBinaryObject, e.g. "application/pdf".

BR-CL-24 auf Deutsch — was bedeutet der Fehler?

Der MIME-Typ eines Anhangs (BT-125, mimeCode) gehört nicht zu den in EN 16931 zulässigen Typen (PDF, PNG, JPEG, CSV, XLSX, ODS). Über normbill ist mime_type eine geschlossene Aufzählung der sechs zulässigen Typen.

So beheben Sie den Fehler

Verwenden Sie an cbc:EmbeddedDocumentBinaryObject einen der zulässigen MIME-Typen, z. B. "application/pdf".

Official sources

Every 422 from the API lists the rule id, the path in your request JSON, a plain-language message and a suggested fix — see the docs overview for the report format.

Or try it live: drop any XRechnung XML on the free validator — same KoSIT-backed report, no account.

Spotted something?

Bug, missing feature, wrong validation result — tell us. The page you're on is attached automatically; email optional.