PEPPOL-COMMON-R050: Australian Business Number (ABN) MUST be stated in the correct format
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[PEPPOL-COMMON-R050]-Australian Business Number (ABN) MUST be stated in the correct format.
matches(normalize-space(), '^[0-9]{11}$') and u:abn(normalize-space())PEPPOL-COMMON-R050 is a fatal rule in the format layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
In UBL, any cbc:EndpointID, cac:PartyIdentification/cbc:ID, or cbc:CompanyID element with schemeID = '0151' must contain an Australian Business Number. The value, after ignoring leading and trailing whitespace, must be exactly 11 digits and must also pass the rule's ABN validation check (u:abn). If either condition fails, the document is rejected.
How to fix
Set the relevant element (for example cbc:CompanyID[@schemeID='0151']) to the supplier's valid 11-digit ABN. Ensure the value has no characters other than the 11 digits after optional surrounding whitespace, and verify that the number is correct according to an ABN checksum, because an 11-digit number that fails the ABN check still causes rejection.
Guidance on this rule. The original text above is authoritative.
Where to go next
PEPPOL-COMMON-R050 changed in 1 published Peppol BIS Billing UBL release comparison:
- PEPPOL-COMMON-R050 in 3.0.10 → 3.0.15: New rule
Validate an invoice against these rules · All release changes