EN 16931 · PEPPOL 3.0.17 CERTIFIED ENGINE
Pay-As-You-Go API Credits ($0.05/op) →
InvoiceSpec / Rules Registry / peppol-bis-3 / SE-R-001
fatal ASSERTION · SE-R-001 Peppol BIS Billing 3.0 (UBL-2.1) Jurisdiction: EU

SE-R-001: For Swedish suppliers, Swedish VAT-numbers must consist of 14 characters.

Official Peppol BIS Billing 3.0 Spec ↗
01. Technical Specification & XPath Evaluation Context

This rule (SE-R-001) is a Swedish national extension to EN 16931, implemented in Peppol BIS Billing 3.0. It validates that when the supplier's country (BT-40, represented by cac:PostalAddress/cac:Country/cbc:IdentificationCode) is 'SE' and the supplier's VAT identifier (BT-31, represented by cac:PartyTaxScheme[cac:TaxScheme/cbc:ID='VAT']/cbc:CompanyID) starts with 'SE', the VAT number must be exactly 14 characters long. The context XPath selects the supplier party (cac:AccountingSupplierParty/cac:Party) where the country code is 'SE' and the VAT company ID begins with 'SE'. The assertion test (though not explicitly provided in the raw XPath) checks that the length of the CompanyID is 14. This rule ensures compliance with Swedish VAT format: 'SE' followed by 10 digits and a check digit (total 14 characters). The severity is fatal, meaning the invoice must be rejected if violated.

Evaluated XPath Location:
//cac:AccountingSupplierParty/cac:Party[cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'SE' and cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/substring(cbc:CompanyID, 1, 2) = 'SE']
Deterministic Remediation Steps

1. Locate the supplier's VAT identifier in the UBL invoice: it is the cbc:CompanyID within cac:PartyTaxScheme where cac:TaxScheme/cbc:ID is 'VAT', inside cac:AccountingSupplierParty/cac:Party. 2. Ensure the value starts with 'SE' (country code) followed by exactly 12 digits (total 14 characters). The Swedish VAT number format is 'SE' + 10-digit organization number + '01' (or sometimes '02' for certain entities). For example, 'SE123456789012' is valid. 3. If the current value is shorter or longer, correct it to the proper 14-character format. Verify the organization number and check digit according to Swedish VAT rules. 4. If the supplier is not Swedish, ensure that the country code in cac:PostalAddress/cac:Country/cbc:IdentificationCode is not 'SE' or that the VAT number does not start with 'SE' to avoid triggering this rule. 5. After correction, validate the invoice against the Peppol BIS Billing 3.0 Schematron to ensure compliance.

02. Side-by-Side UBL-2.1 Payload Diff (Rejected vs. Compliant)
--- a/invoice-rejected.xml (SE-R-001) FAIL
1 <!-- Incorrect: Swedish VAT number has only 12 characters (SE + 10 digits) instead of 14 -->
2 <cac:AccountingSupplierParty>
3 <cac:Party>
4 <cac:PostalAddress>
5 <cac:Country>
6 <cbc:IdentificationCode>SE</cbc:IdentificationCode>
7 </cac:Country>
8 </cac:PostalAddress>
9 <cac:PartyTaxScheme>
10 <cbc:CompanyID>SE1234567890</cbc:CompanyID>
11 <cac:TaxScheme>
12 <cbc:ID>VAT</cbc:ID>
13 </cac:TaxScheme>
14 </cac:PartyTaxScheme>
15 </cac:Party>
16 </cac:AccountingSupplierParty>
+++ b/invoice-compliant.xml (EN 16931 VALID) PASS
1 <cac:AccountingSupplierParty>
2 <cac:Party>
3 <cac:PostalAddress>
4 <cac:Country>
5 <cbc:IdentificationCode>SE</cbc:IdentificationCode>
6 </cac:Country>
7 </cac:PostalAddress>
8 <cac:PartyTaxScheme>
9 + <cbc:CompanyID>SE123456789012</cbc:CompanyID>
10 <cac:TaxScheme>
11 <cbc:ID>VAT</cbc:ID>
12 </cac:TaxScheme>
13 </cac:PartyTaxScheme>
14 </cac:Party>
15 </cac:AccountingSupplierParty>
03. Interactive Peppol BIS Billing 3.0 Validation & Auto-Fix Workbench
BALANCE:3 CREDITS
invoice.xmlUBL-2.1
ORIGINCustom ERP / Billing Engine
BT-131 LINE SUM0.00 EUR
BT-106 HEADER0.00 EUR
STATUS: FAIL (2 FATAL, 1 WARN)· 1ms
Peppol BIS Billing 3.0
BR-01An Invoice shall have a valid EN 16931 Specification identifier (BT-24)
Spec & Diff
xpath: /ubl:Invoice/cbc:CustomizationID

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>.

PEPPOL-EN16931-R020Seller electronic address (BT-34) MUST be provided with a valid EAS @schemeID
Spec & Diff
xpath: /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cbc:EndpointID

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>.

BR-DE-15Buyer reference / Leitweg-ID (BT-10) is missing
Spec & Diff
xpath: /ubl:Invoice/cbc:BuyerReference

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.

Deploy Direct Custom ERP / Billing Engine → Peppol BIS Billing 3.0 AP Bridge

Automated Peppol Access Point & ZUGFeRD delivery without manual XML maintenance

04. Adjacent Peppol BIS Billing 3.0 Assertions Browse All 1,145 Rules →