Attachments can be sent on line level in the Catalogue. This can be images or additional descriptions of a product. It is strongly recommended to use external references in the form of URI’s for attachments.

Namespace
cac urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
Child elements
Card Name Description
1..1 cbc:ID

Attachment identifier
An identifier that can be used to reference the attached document, such as an unique identifier

Example value: 88d15eaa-3805-42e4-825f-5e240838104d

0..1 cbc:DocumentTypeCode

Attachment description code
A functional description of the attachment, expressed as a code

Example value: 6

0..1 cbc:DocumentType

Document type
A functional description of the attachment

Example value: Product specification

0..1 cbc:DocumentDescription

Attachment description
A short description of the attached document

Example value: Report providing specification of products.

0..1 cac:Attachment

Attachment

Rules
Identifier/Error message Flag
EUGEN-T68-B18401
Element 'cbc:ID' MUST be provided.
fatal
EUGEN-T68-B18402
Document MUST NOT contain elements not part of the data model.
fatal
Description
UBL example of using external reference
<cac:ItemSpecificationDocumentReference>
        <cbc:ID>LK8788</cbc:ID>
        <cbc:DocumentDescription>Product image</cbc:DocumentDescription>
        <cac:Attachment>
                <cac:ExternalReference>
                        <cbc:URI>http://img.trioving.net/Låskasser/LK8788_PRD_FPM_000.JPG</cbc:URI>
                </cac:ExternalReference>
        </cac:Attachment>
</cac:ItemSpecificationDocumentReference>
UBL example of using attached binary content
<cac:ItemSpecificationDocumentReference>
        <cbc:ID>2384-34232-342-34-2333</cbc:ID>
        <cac:Attachment>
                <cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf">
                        ZGVmYXVsdA==</cbc:EmbeddedDocumentBinaryObject>
        </cac:Attachment>
</cac:ItemSpecificationDocumentReference>