All error codes › SE-R-002
SE-R-002 – For Swedish suppliers, the Swedish VAT-numbers must have the trailing 12 characters in…
ErrorpeppolPeppol only
What the rule says
For Swedish suppliers, the Swedish VAT-numbers must have the trailing 12 characters in numeric form
How to fix it
Fill in or correct the fields named in the rule (the BT/BG codes tell you which). The test below shows exactly what is checked in the XML. Quickest: validate the invoice to get the exact location and, for amounts, the correct value.
Paste the XML and see every error with the exact fix and the correct amounts.
Where it is checked in the XML
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']
Test (XPath):
string(number(substring(cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID, 3, 12))) != 'NaN'
Related rules
SE-R-001For Swedish suppliers, Swedish VAT-numbers must consist of 14 charactersSE-R-003Swedish organisation numbers should be numericSE-R-004Swedish organisation numbers consist of 10 charactersSE-R-005For Swedish suppliers, when using Seller tax registration identifier, 'Godkänd för…SE-R-006For Swedish suppliers, only standard VAT rate of 6, 12 or 25 are usedSE-R-007For Swedish suppliers using Plusgiro, the Account ID must be numericSE-R-008For Swedish suppliers using Bankgiro, the Account ID must be numericSE-R-009For Swedish suppliers using Bankgiro, the Account ID must have 7-8 charactersSE-R-010For Swedish suppliers using Plusgiro, the Account ID must have 2-8 charactersSE-R-011For Swedish suppliers using Swedish Bankgiro or Plusgiro, the proper way to indicate…SE-R-012For domestic transactions between Swedish trading partners, credit transfer should be…SE-R-013The last digit of a Swedish organization number must be valid according to the Luhn…