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

Attachment File

France | VRBL-Invoice-FR-CIUS-1p0
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: FR-B2B-max.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:AdditionalDocumentReference>
    <!-- ... omitted for readability -->
    <cac:Attachment>
      <cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="BON_COMMANDE.pdf">aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw==</cbc:EmbeddedDocumentBinaryObject>
      <!-- ... omitted for readability -->
    </cac:Attachment>
  </cac:AdditionalDocumentReference>
  <!-- ... omitted for readability -->
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-FR-CIUS-1p0-B2G-41 For B2G, the allowed maximum number of characters for the Attachment Filename is 50.
VRBL-INV-FR-CIUS-1p0-291 The value of the Attachment Mime Code must be contained in MIME Media Types (allowed values in France) [VRBL-CL-FR-MIMEMediaType].
VRBL-INV-EN16931-S-213 The Attachment Filename must exist within the Attachment File.