IT-R-001: BT-32 (Seller tax registration identifier) - For Italian suppliers BT-32 minimum length 11 and maximum length shall be 16. Per i fornitori italiani il BT-32 deve avere una lunghezza tra 11 e 16 caratteri
This fatal rule (IT-R-001) enforces the Italian national extension of EN 16931 for Peppol BIS Billing 3.0. It applies to the Seller tax registration identifier (BT-32), which is carried in UBL as cac:PartyTaxScheme/cbc:CompanyID. The context XPath selects the AccountingSupplierParty/Party element only when the supplier's country (BT-40, cac:Country/cbc:IdentificationCode) equals 'IT' and the PartyTaxScheme is not a VAT scheme (i.e., cac:TaxScheme/cbc:ID != 'VAT'). For such non-VAT tax registrations (e.g., Italian Codice Fiscale or other fiscal identifiers), the identifier value must have a length between 11 and 16 characters inclusive. The assertion test (string-length(normalize-space(cbc:CompanyID)) >= 11 and string-length(normalize-space(cbc:CompanyID)) <= 16) fails when the BT-32 value is shorter than 11 or longer than 16 characters. This rule ensures Italian fiscal identifiers are syntactically valid for domestic e-invoicing systems (SdI) and prevents rejection by Italian authorities.
1. Locate the Seller's tax registration identifier (BT-32) in the UBL invoice under cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID. 2. Verify that the supplier's country (cac:Country/cbc:IdentificationCode) is 'IT'. 3. Check that the TaxScheme ID is not 'VAT' (i.e., it is a non-VAT tax registration such as 'TAX' or a national scheme). 4. Ensure the CompanyID value, after trimming whitespace, has a length between 11 and 16 characters inclusive. If it is shorter, pad with leading zeros or correct the identifier; if longer, truncate or correct the identifier according to the official Italian fiscal code. 5. Re-validate the invoice against the Peppol BIS Billing 3.0 Schematron to confirm the rule passes.
Missing <cbc:CustomizationID> or value does not declare EN 16931 CIUS compliance.
fix: Insert <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>.
Missing <cbc:EndpointID schemeID="..."> inside <cac:AccountingSupplierParty>/<cac:Party>.
fix: Add <cbc:EndpointID schemeID="9930">DE123456789</cbc:EndpointID> as the first child of Seller <cac:Party>.
No <cbc:BuyerReference> (BT-10) found. Mandatory in XRechnung 3.0 (BR-DE-15) and required in Peppol BIS 3.0 (PEPPOL-EN16931-R003) when OrderReference is absent.
fix: Insert <cbc:BuyerReference>991-12849-74</cbc:BuyerReference> in the document header.
If both supplier and customer are located in Germany, an invoice shall contain information on "PAYMENT INSTRUCTIONS" (BG-16).
If both supplier and customer are located in Germany, the group "SELLER CONTACT" (BG-6) shall be provided.
If both supplier and customer are located in Germany, the element "Buyer reference" (BT-10) shall be provided.
If both supplier and customer are located in Germany, and if one of the VAT codes S, Z, E, AE, K, G, L, or M is used, an invoice shall contain at least one of the following elements: "Seller VAT identifier" (BT-31) or "Seller tax registration identifier" (BT-32) or "SELLER TAX REPRESENTATIVE PARTY" (BG-11).
If both supplier and customer are located in Germany, the element "Invoice type code" (BT-3) should only contain the following values from code list UNTDID 1001: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice), 381 (Credit note), 875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).