/ubl:Invoice/cac:InvoiceLine/cac:DocumentReference

Line Document Reference

Spain | VRBL-Invoice-ES-FacturaE-3p2
Context ID INV1210
Usage M

Description

An identifier for an object on which the invoice line is based, given by the Seller.

Child elements
Usage Element Description Cardinality
M cbc:ID Line Document Reference ID

An identifier for the referenced document.

1..1
O cbc:IssueDate Invoice Line Document Reference Issue Date

The date, assigned by the sender of the referenced document, on which the document was issued.

0..1
O cbc:DocumentTypeCode Invoice Line Document Reference Document Type Code

The type of document being referenced, expressed as a code.

0..1
Details

Example: ES_B2G_Correction_invoice.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:InvoiceLine>
    <!-- ... omitted for readability -->
    <cac:DocumentReference>
      <cbc:ID schemeID="AAK">DeliveryNoteN</cbc:ID>
      <cbc:IssueDate>2025-02-19</cbc:IssueDate>
      <cbc:DocumentTypeCode>130</cbc:DocumentTypeCode>
    </cac:DocumentReference>
    <!-- ... omitted for readability -->
  </cac:InvoiceLine>
</ubl:Invoice>