Portugal: Additional Document Reference
For Portuguese B2G documents, you must attach a QR code as an additional document reference.
Use the AdditionalDocumentReference element to model the details.
Elements
Element | Description |
---|---|
Invoice/AdditionalDocumentReference/ID | Identifier of the document entry registration process (ATCUD) |
Invoice/AdditionalDocumentReference/ID[@schemeID='ANG'] | Specify ANG |
Invoice/AdditionalDocumentReference/DocumentDescription | Specify QR_CODE . |
Invoice/AdditionalDocumentReference/Attachment/EmbeddedDocumentBinaryObject | The attached document in binary format (QR Code in base64). |
Invoice/AdditionalDocumentReference/Attachment/EmbeddedDocumentBinaryObject[mimecode] | Specify text/plain |
Invoice/AdditionalDocumentReference/Attachment/EmbeddedDocumentBinaryObject[filename] | Specify the file's name. |
Restrictions
- For Portuguese B2G documents, you must attach a QR code.
Example
<!-- Code omitted for clarity -->
<cac:AdditionalDocumentReference>
<cbc:ID schemeID="ANG">12345678-241231231231</cbc:ID>
<cbc:DocumentDescription>QR_CODE</cbc:DocumentDescription>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain" filename="file_name">JVBERi0xLjMNC...</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
<!-- Code omitted for clarity -->
</ubl:Invoice>
Updated 2 months ago