EN-16931: Attachments

You must use one of the permitted values for the mimecode attribute.

You use the mimecode attribute of the EmbeddedDocumentBinaryObject to specify the type of file that is attached.

More information is provided in the Attachments topic.

Element

ElementDescription
Invoice/AddtionalDocumentReference/Attacment/EmbeddedDocumentBinaryObject @mimecodeUse the required value.

Restriction

You must use one of the values from the IANA list here.

Example

<Invoice>
    <!-- code omitted for clarity -->
    <cac:AdditionalDocumentReference>
        <cbc:ID>100001D</cbc:ID>
        <cbc:DocumentDescription>Time sheet<cbc:DocumentDescription>
        <cac:Attachment>
            <cbc:EmbeddedDocumentBinaryObject mimeCode="text/csv" filename="timesheet.csv">m9iZXJ0IFMuIHdhcyBoZXJlCg==</cbc:EmbeddedDocumentBinaryObject>
        </cac:Attachment>
    </cac:AdditionalDocumentReference>    
    <!-- code omitted for clarity -->
</Invoice>