Peppol BIS Billing 3.0.21 · UBL

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

Peppol BIS Billing 3.0.21 · UBL

fatalcountry

Original rule text

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

Stored validation assertion
string-length(normalize-space(cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID)) = 14

SE-R-001 is a fatal rule in the country layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.

What this rule requires

The rule applies to the accounting supplier party where the postal address country code is 'SE' and the VAT party tax scheme has a tax scheme ID 'VAT' and the cbc:CompanyID starts with 'SE'. It requires that, after removing leading and trailing whitespace, the cbc:CompanyID value has exactly 14 characters. A document fails when the Swedish VAT number is not 14 characters long (e.g. missing or extra characters).

How to fix

In the UBL invoice, set cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID to the Swedish VAT number with exactly 14 characters (including the 'SE' prefix, as the rule's scope requires). Check the value for leading/trailing spaces; they are ignored for the length check but the trimmed value must be 14 characters.

Guidance on this rule. The original text above is authoritative.

Where to go next

No published Peppol BIS Billing UBL release comparison lists a change to SE-R-001.

Validate an invoice against these rules · All release changes