Peppol BIS Billing 3.0 · rule
BR-CL-24
What does BR-CL-24 mean? For Mime code in attribute use MIMEMediaType.
Why did my invoice fail BR-CL-24?
The MIME code of an attached document must be a valid MIME media type from the permitted set. This lets receivers know how to process the embedded attachment. In UBL it is the mimeCode attribute on cac:Attachment/cbc:EmbeddedDocumentBinaryObject; EN 16931 allows types such as application/pdf, image/png, image/jpeg, text/csv and the two Excel/ODS spreadsheet types.
Official rule text
For Mime code in attribute use MIMEMediaType.
Common causes
- File extension ("pdf") instead of the full MIME type ("application/pdf")
- A MIME type outside the allowed set (e.g. application/zip)
- Mistyped type such as "application/x-pdf"
How do I fix it?
<cac:Attachment> <cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="invoice.pdf">JVBERi0xLjQ=</cbc:EmbeddedDocumentBinaryObject> </cac:Attachment>
Related rules
BR-CL-01 · BR-CL-03 · BR-CL-04 · BR-CL-05 · BR-CL-06 · BR-CL-07 · BR-CL-08 · BR-CL-10
Check your invoice against this rule
Paste it into the live demo, or call POST /v1/validate. See the quickstart.