# SE-R-013

Source: https://xmlvalid.com/rules/SE-R-013

> The last digit of a Swedish organization number must be valid according to the Luhn algorithm.

- Level: error
- Rule sets: Peppol BIS Billing 3.0 rules 3.0.21
- Context: `//cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity[../cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'SE' and cbc:CompanyID]`
- Test: `u:checkSEOrgnr(normalize-space(cbc:CompanyID))`

Validate a document against these rules: https://xmlvalid.com/validate
