/ubl:Invoice/cac:AdditionalDocumentReference/cac:Attachment/cbc:EmbeddedDocumentBinaryObject

Attachment File

Portugal | VRBL-Invoice-PT-2p1
Context ID INV0221
Usage O

Description

An attached document embedded as binary object (b64 encoded), sent together with the invoice.

Child elements
Usage Element Description Cardinality
M @filename Attachment Filename

The filename of the binary object.

0..1
O @mimeCode Attachment Mime Code

The mime type of the binary object.

1..1
Details

Example: PT_invoice_380_ATM_payment.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:AdditionalDocumentReference>
    <!-- ... omitted for readability -->
    <cac:Attachment>
      <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain" filename="file_name.txt">QTpQVDEyMzQ1Njc4OSpCOlBUOTg3NjU0MzIxKkM6UFQqRDpGVCpFOk4qRjoyMDI0MDcxMipHOkZUIEFCMjAyNi8yNipIOkFUQ1VEOjk0M0toR0JkODEtMjYqSTE6UFQqSTc6NDAwLjAwKkk4OjEwMC4wMCpOOjEwMC4wMCpPOjUwMC4wMCpSOjk5OTk=</cbc:EmbeddedDocumentBinaryObject>
    </cac:Attachment>
  </cac:AdditionalDocumentReference>
  <!-- ... omitted for readability -->
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-EN16931-S-213 The Attachment Filename must exist within the Attachment File.