Models

Attachment

Properties

NameTypeRequiredDescription
idstringYesAn identifier for the attachment within the document. Example: "ATT-001"
mimeCodestringNoMIME type of the document (e.g. application/pdf, text/csv, image/png). Default: application/pdf. Example: "application/pdf"
filenamestringYesFilename for an embedded attachment. This is included in the Peppol XML only when embeddedDocument is provided. For URL-only attachments, the document contains an external reference and the filename is not embedded. Example: "contract.pdf"
descriptionstring | nullNoA short description of what the attachment contains. Example: "Signed contract"
embeddedDocumentstring | nullNoThe contents of the attachment, base64 encoded. Provide this or url
urlstring | nullNoA link to the attachment, for when the contents are not embedded. Provide this or embeddedDocument. Example: "https://example.com/contract.pdf"

On this page