# ibr-127

Source: https://xmlvalid.com/rules/ibr-127

> Swedish organization number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061).

- Level: error
- Rule sets: PINT Billing rules 1.1.3, PINT Billing rules (as shipped with PINT AE) 1.0.4
- 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'`

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