/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID

Buyer Tax ID

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

Description

The buyer's tax identifier (also known as buyer tax identification number).

Details

Example: ES_B2G_Correction_invoice.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:AccountingCustomerParty>
    <!-- ... omitted for readability -->
    <cac:Party>
      <!-- ... omitted for readability -->
      <cac:PartyTaxScheme>
        <cbc:CompanyID>ESB00000001</cbc:CompanyID>
        <!-- ... omitted for readability -->
      </cac:PartyTaxScheme>
      <!-- ... omitted for readability -->
    </cac:Party>
  </cac:AccountingCustomerParty>
  <!-- ... omitted for readability -->
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-ES-B2G-55 The required minimum number of characters for the Buyer Tax ID is 3.
VRBL-INV-ES-B2G-56 The allowed maximum number of characters for the Buyer Tax ID is 30.