VAT Numbers in E-Invoicing — What You Need to Know
Key Takeaways: VAT Numbers in E-Invoicing
- VAT numbers must be correctly formatted per each country's specific pattern — an incorrect format will cause rejection
- Validation is critical: E-invoicing systems check VAT numbers against national databases (like VIES) before accepting an invoice
- Format varies by country: Germany uses DE + 9 digits, France uses FR + 11 characters, Italy uses IT + 11 digits, and so on
- Both seller and buyer VAT numbers are typically required in the invoice XML
Why VAT Numbers Matter in E-Invoicing
In paper invoicing, a mistyped VAT number might go unnoticed for months — until a tax audit catches it. In e-invoicing, validation happens instantly. When you submit an e-invoice through a network like Peppol or a national platform like Italy's SDI, the system checks the VAT number format and, in many cases, verifies it against the EU's VIES database (VAT Information Exchange System) or the national tax authority's records.
If the VAT number is invalid, the invoice is rejected immediately. This means no payment processing starts, your cash flow is delayed, and you have to correct and resubmit. For businesses sending hundreds or thousands of invoices monthly, even a small percentage of rejections creates significant administrative overhead.
VAT numbers serve several critical functions in an e-invoice:
- Identification: They uniquely identify the seller and buyer as registered taxable entities
- Tax calculation: They determine whether VAT should be charged (domestic), reverse-charged (intra-EU B2B), or zero-rated (exports)
- Compliance reporting: Tax authorities use VAT numbers to match invoices between sellers and buyers, detecting fraud and discrepancies
- Peppol routing: On the Peppol network, participant IDs are often based on VAT numbers, so an incorrect number means the invoice cannot be delivered
VAT Number Formats by Country
Every EU country has its own VAT number format. The common structure is a two-letter country code followed by a country-specific sequence of digits and sometimes letters. Getting the format wrong — even by one character — will cause validation failures.
| Country | Format | Example | Length |
|---|---|---|---|
| Germany | DE + 9 digits | DE123456789 |
11 |
| France | FR + 2 chars + 9 digits | FR12345678901 |
13 |
| Belgium | BE + 0 + 9 digits | BE0123456789 |
12 |
| Italy | IT + 11 digits | IT12345678901 |
13 |
| Spain | ES + letter + 7 digits + letter/digit | ESA12345678 |
11 |
| Netherlands | NL + 9 digits + B + 2 digits | NL123456789B01 |
14 |
| Poland | PL + 10 digits | PL1234567890 |
12 |
| Austria | ATU + 8 digits | ATU12345678 |
11 |
| Sweden | SE + 12 digits | SE123456789001 |
14 |
| Finland | FI + 8 digits | FI12345678 |
10 |
| Denmark | DK + 8 digits | DK12345678 |
10 |
| Luxembourg | LU + 8 digits | LU12345678 |
10 |
Important: The two-letter country prefix is part of the VAT number and must always be included in e-invoices. Some businesses store VAT numbers without the prefix in their accounting systems — make sure to add it when generating e-invoices.
Where VAT Numbers Appear in UBL XML
In a Peppol BIS 3.0 or XRechnung invoice, VAT numbers are placed inside the party identification sections. The two main locations are:
- AccountingSupplierParty — the seller's VAT number, nested inside
PartyTaxScheme/CompanyID - AccountingCustomerParty — the buyer's VAT number, in the same nested structure
The XML structure looks like this: the CompanyID element contains the full VAT number including the country prefix (e.g., DE123456789), and the TaxScheme/ID element is set to VAT. The EN 16931 standard requires the scheme identifier to use the ISO 6523 code list — for EU VAT numbers, this is typically 9930 through 9957 depending on the country.
Getting this structure wrong is one of the most common reasons for Peppol invoice rejections. The VAT number must be in the correct element, with the correct scheme identifier, and in the correct format for the country.
Common Mistakes and Validation Tips
After processing thousands of invoices, these are the VAT number errors we see most frequently:
- Missing country prefix: Entering
123456789instead ofDE123456789. The prefix is always required in e-invoicing XML. - Spaces and punctuation: Some businesses store VAT numbers as
DE 123 456 789orDE-123456789. E-invoicing formats require no spaces, dots, or hyphens — just the prefix followed by the number. - Outdated numbers: Companies change VAT numbers after mergers, restructuring, or re-registration. Always verify the number is current using the EU's VIES service.
- Wrong check digit: Several countries (Belgium, Italy, Finland, and others) use check digit algorithms. A single transposed digit makes the entire number invalid.
- Confusing national tax numbers with VAT numbers: In Germany, for example, businesses have both a Steuernummer (national tax number) and an Umsatzsteuer-Identifikationsnummer (VAT ID). Only the VAT ID (DE prefix) goes into e-invoices for EU transactions.
Validation tip: Before generating your e-invoice, verify VAT numbers against the EU VIES database. This confirms the number is active and correctly formatted. Many e-invoicing platforms, including InvoicePeppol, perform this check automatically.
How InvoicePeppol Validates VAT Format
When you upload a PDF invoice or create one from scratch, InvoicePeppol automatically handles VAT number validation at multiple stages:
- Extraction: Our AI identifies VAT numbers in your PDF and extracts them with the correct country prefix
- Format validation: The system checks that the number matches the expected pattern for its country — correct length, valid characters, correct prefix
- Review step: You can verify and correct VAT numbers before generating the XML, ensuring accuracy
- XML generation: VAT numbers are placed in the correct UBL elements with the proper scheme identifiers
Frequently Asked Questions
What if my VAT number is rejected?
First, check the format against the country-specific pattern in the table above. Ensure the country prefix is included, there are no spaces or special characters, and the length is correct. Then verify the number is active using the EU's VIES database. If the number is correct but still rejected, the issue may be with the scheme identifier in the XML — InvoicePeppol handles this automatically, but if you are generating XML manually, ensure the correct ISO 6523 identifier is used for the country.
Do I need both seller and buyer VAT numbers?
In most cases, yes. The seller's VAT number is always required — it identifies you as a registered taxable person. The buyer's VAT number is required for intra-EU B2B transactions (it triggers the reverse charge mechanism) and for domestic B2B transactions in countries with e-invoicing mandates. For B2C (business-to-consumer) invoices, the buyer typically does not have a VAT number, and the field can be omitted.
How do I find my VAT number?
Your VAT number was issued when you registered for VAT with your national tax authority. In most countries, you can find it on your VAT registration certificate, on previous invoices you have issued, in your accounting software settings, or by logging into your national tax authority's online portal. If you trade across EU borders, you can also search for your own company on the VIES database to confirm the number. If you have not registered for VAT yet, contact your national tax authority — in many EU countries, registration is mandatory once your turnover exceeds a certain threshold.
Ready to convert your invoices?
InvoicePeppol converts your PDF invoices to compliant e-invoicing XML in seconds. AI-powered extraction, manual review, and instant download.