All error codes › SE-R-013
SE-R-013 – The last digit of a Swedish organization number must be valid according to the Luhn…
ErrorpeppolPeppol only
What the rule says
The last digit of a Swedish organization number must be valid according to the Luhn algorithm.
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:PartyLegalEntity[../cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'SE' and cbc:CompanyID]
Test (XPath):
u:checkSEOrgnr(normalize-space(cbc:CompanyID))
Related rules
SE-R-001For Swedish suppliers, Swedish VAT-numbers must consist of 14 charactersSE-R-002For Swedish suppliers, the Swedish VAT-numbers must have the trailing 12 characters in…SE-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…