Faktura

SE-R-001

fatalPeppol BIS Billing 3.0profileCIIUBL

For Swedish suppliers, Swedish VAT-numbers must consist of 14 characters.

Why it fails

The Swedish VAT number is not 14 characters long.

How to fix it

A Swedish VAT identifier is SE + 12 digits = 14 characters, e.g. SE556123456701. The last two digits are the sequence number (usually 01) and are part of it - the 10-digit organisation number alone is not a VAT number.

What the validator checks

CII — context rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty[ram:PostalTradeAddress/ram:CountryID = 'SE' and ram:SpecifiedTaxRegistration/substring(ram:ID[@schemeID = 'VAT'], 1, 2) = 'SE']

string-length(normalize-space(ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VAT'])) = 14

UBL — context //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']

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

Related rules

Part of SE-R — Sweden.

Validate an invoice against this rule →

This is a Peppol BIS Billing 3.0 rule: an invoice can be perfectly valid EN 16931 and still be rejected by it.