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

Buyer Tax ID

Mexico | VRBL-Invoice-MX-1p0
Context ID INV0447
Usage M

Description

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

Details

Example: VRBL_MX_BasicInvoice.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:AccountingCustomerParty>
    <cac:Party>
      <!-- ... omitted for readability -->
      <cac:PartyTaxScheme>
        <cbc:CompanyID>CACX7605101P8</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-MX-1p0-48 When the Buyer Country Code is MX or is empty, the Buyer Tax ID must be a valid RFC. For a Legal Entity, 12 characters are expected (3 Letters, 6 Digits, 3 Alphanumeric). For a Natural Person, 13 characters are expected (4 Letters, 6 Digits, 3 Alphanumeric).