Faktura

PEPPOL-COMMON-R049

fatalPeppol BIS Billing 3.0profileCIIUBL

Swedish organization number MUST be stated in the correct format.

Why it fails

A Swedish organisation number is malformed.

How to fix it

Ten digits, no hyphen, with a valid Luhn check digit.

What the validator checks

CII — context ram:URIID[@schemeID = '0007'] | ram:ID[@schemeID = '0007'] | ram:GlobalID[@schemeID = '0007']

string-length(normalize-space()) = 10 and string(number(normalize-space())) != 'NaN' and u:checkSEOrgnr(normalize-space())

UBL — context cbc:EndpointID[@schemeID = '0007'] | cac:PartyIdentification/cbc:ID[@schemeID = '0007'] | cbc:CompanyID[@schemeID = '0007']

string-length(normalize-space()) = 10 and string(number(normalize-space())) != 'NaN' and u:checkSEOrgnr(normalize-space())

Related rules

Part of PEPPOL-COMMON — Peppol identifier formats.

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.