# PEPPOL-COMMON-R049

Source: https://xmlvalid.com/rules/PEPPOL-COMMON-R049

> Swedish organization number MUST be stated in the correct format.

- Level: error
- Rule sets: Peppol BIS Billing 3.0 rules 3.0.21, Peppol Order rules 3.7, Peppol Order Response rules 3.2, Peppol Despatch Advice rules 3.5, Peppol Catalogue rules 3.5, Peppol Catalogue Response rules 3.0, Peppol Invoice Response rules 3.1, Peppol Message Level Response rules 3.0, Peppol Order Change rules 3.2, Peppol Order Cancellation rules 3.0
- Context: `cbc:EndpointID[@schemeID = '0007'] | cac:PartyIdentification/cbc:ID[@schemeID = '0007'] | cbc:CompanyID[@schemeID = '0007']`
- Test: `string-length(normalize-space()) = 10 and string(number(normalize-space())) != 'NaN' and u:checkSEOrgnr(normalize-space())`

## Why it fails

- A Swedish organisation number (scheme `0007`) is not ten digits, has a hyphen, or fails its Luhn check digit.

## How to fix it

- Write it as ten digits without the hyphen: `5560360793`, not `556036-0793`.

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