# PEPPOL-COMMON-R050

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

> Australian Business Number (ABN) 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 = '0151'] | cac:PartyIdentification/cbc:ID[@schemeID = '0151'] | cbc:CompanyID[@schemeID = '0151']`
- Test: `matches(normalize-space(), '^[0-9]{11}$') and u:abn(normalize-space())`

## Why it fails

- An Australian Business Number (scheme `0151`) is not eleven digits, has spaces, or fails its check.

## How to fix it

- Write the ABN as eleven digits without spaces, and check it in the ABN Lookup.

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