# Peppol BIS Self-Billing 3.0 rules 3.0.2

Source: https://xmlvalid.com/rules/sets/peppol-bis-sb-ubl

> 62 rules by OpenPeppol (Published for implementers). Source: https://docs.peppol.eu/poacc/self-billing/3.0/

- [PEPPOL-COMMON-R040](https://xmlvalid.com/rules/PEPPOL-COMMON-R040.md) (error): GLN must have a valid format according to GS1 rules.
- [PEPPOL-COMMON-R041](https://xmlvalid.com/rules/PEPPOL-COMMON-R041.md) (error): Norwegian organization number MUST be stated in the correct format.
- [PEPPOL-COMMON-R042](https://xmlvalid.com/rules/PEPPOL-COMMON-R042.md) (error): Danish organization number (CVR) MUST be stated in the correct format.
- [PEPPOL-COMMON-R043](https://xmlvalid.com/rules/PEPPOL-COMMON-R043.md) (error): Belgian enterprise number MUST be stated in the correct format.
- [PEPPOL-COMMON-R044](https://xmlvalid.com/rules/PEPPOL-COMMON-R044.md) (warning): IPA Code (Codice Univoco Unità Organizzativa) must be stated in the correct format
- [PEPPOL-COMMON-R045](https://xmlvalid.com/rules/PEPPOL-COMMON-R045.md) (warning): Tax Code (Codice Fiscale) must be stated in the correct format
- [PEPPOL-COMMON-R046](https://xmlvalid.com/rules/PEPPOL-COMMON-R046.md) (warning): Tax Code (Codice Fiscale) must be stated in the correct format
- [PEPPOL-COMMON-R047](https://xmlvalid.com/rules/PEPPOL-COMMON-R047.md) (warning): Italian VAT Code (Partita Iva) must be stated in the correct format
- [PEPPOL-COMMON-R049](https://xmlvalid.com/rules/PEPPOL-COMMON-R049.md) (error): Swedish organization number MUST be stated in the correct format.
- [PEPPOL-COMMON-R050](https://xmlvalid.com/rules/PEPPOL-COMMON-R050.md) (error): Australian Business Number (ABN) MUST be stated in the correct format.
- [PEPPOL-COMMON-R052](https://xmlvalid.com/rules/PEPPOL-COMMON-R052.md) (error): Danish chamber of commerce number (P) MUST be stated in the correct format.
- [PEPPOL-COMMON-R053](https://xmlvalid.com/rules/PEPPOL-COMMON-R053.md) (error): Danish ERSTORG number (SE) MUST be stated in the correct format.
- [PEPPOL-COMMON-R054](https://xmlvalid.com/rules/PEPPOL-COMMON-R054.md) (warning): Dutch Chamber of Commerce (KVK) numbers (0106) MUST be stated in the correct format (12345678).
- [PEPPOL-COMMON-R055](https://xmlvalid.com/rules/PEPPOL-COMMON-R055.md) (warning): Dutch organization identification numbers (0190) MUST be stated in the correct format (12345678901234567890).
- [PEPPOL-COMMON-R056-1](https://xmlvalid.com/rules/PEPPOL-COMMON-R056-1.md) (warning): Dutch VAT numbers (9944) MUST be stated in the correct format (NL123456789B12).
- [PEPPOL-COMMON-R056-2](https://xmlvalid.com/rules/PEPPOL-COMMON-R056-2.md) (warning): Dutch VAT numbers MUST have the format (NL123456789B12).
- [PEPPOL-COMMON-R057](https://xmlvalid.com/rules/PEPPOL-COMMON-R057.md) (warning): Dutch Chamber of Commerce Establishment numbers (0217) MUST be stated in the correct format (123456789012).
- [PEPPOL-EN16931-CL001](https://xmlvalid.com/rules/PEPPOL-EN16931-CL001.md) (error): Mime code must be according to subset of IANA code list.
- [PEPPOL-EN16931-CL002](https://xmlvalid.com/rules/PEPPOL-EN16931-CL002.md) (error): Reason code MUST be according to subset of UNCL 5189 D.16B.
- [PEPPOL-EN16931-CL003](https://xmlvalid.com/rules/PEPPOL-EN16931-CL003.md) (error): Reason code MUST be according to UNCL 7161 D.16B.
- [PEPPOL-EN16931-CL006](https://xmlvalid.com/rules/PEPPOL-EN16931-CL006.md) (error): Invoice period description code must be according to UNCL 2005 D.16B.
- [PEPPOL-EN16931-CL007](https://xmlvalid.com/rules/PEPPOL-EN16931-CL007.md) (error): Currency code must be according to ISO 4217:2005
- [PEPPOL-EN16931-CL008](https://xmlvalid.com/rules/PEPPOL-EN16931-CL008.md) (error): Electronic address identifier scheme must be from the codelist "Electronic Address Identifier Scheme"
- [PEPPOL-EN16931-F001](https://xmlvalid.com/rules/PEPPOL-EN16931-F001.md) (error): A date MUST be formatted YYYY-MM-DD.
- [PEPPOL-EN16931-P0100](https://xmlvalid.com/rules/PEPPOL-EN16931-P0100.md) (error): Invoice type code MUST be set according to the profile.
- [PEPPOL-EN16931-P0101](https://xmlvalid.com/rules/PEPPOL-EN16931-P0101.md) (error): Credit note type code MUST be set according to the profile.
- [PEPPOL-EN16931-P0104](https://xmlvalid.com/rules/PEPPOL-EN16931-P0104.md) (error): Tax Category G MUST be used when exemption reason code is VATEX-EU-G
- [PEPPOL-EN16931-P0105](https://xmlvalid.com/rules/PEPPOL-EN16931-P0105.md) (error): Tax Category O MUST be used when exemption reason code is VATEX-EU-O
- [PEPPOL-EN16931-P0106](https://xmlvalid.com/rules/PEPPOL-EN16931-P0106.md) (error): Tax Category K MUST be used when exemption reason code is VATEX-EU-IC
- [PEPPOL-EN16931-P0107](https://xmlvalid.com/rules/PEPPOL-EN16931-P0107.md) (error): Tax Category AE MUST be used when exemption reason code is VATEX-EU-AE
- [PEPPOL-EN16931-P0108](https://xmlvalid.com/rules/PEPPOL-EN16931-P0108.md) (error): Tax Category E MUST be used when exemption reason code is VATEX-EU-D
- [PEPPOL-EN16931-P0109](https://xmlvalid.com/rules/PEPPOL-EN16931-P0109.md) (error): Tax Category E MUST be used when exemption reason code is VATEX-EU-F
- [PEPPOL-EN16931-P0110](https://xmlvalid.com/rules/PEPPOL-EN16931-P0110.md) (error): Tax Category E MUST be used when exemption reason code is VATEX-EU-I
- [PEPPOL-EN16931-P0111](https://xmlvalid.com/rules/PEPPOL-EN16931-P0111.md) (error): Tax Category E MUST be used when exemption reason code is VATEX-EU-J
- [PEPPOL-EN16931-R001](https://xmlvalid.com/rules/PEPPOL-EN16931-R001.md) (error): Business process MUST be provided.
- [PEPPOL-EN16931-R002](https://xmlvalid.com/rules/PEPPOL-EN16931-R002.md) (error): No more than one note is allowed on document level, unless both the buyer and seller are German organizations.
- [PEPPOL-EN16931-R003](https://xmlvalid.com/rules/PEPPOL-EN16931-R003.md) (error): A buyer reference or purchase order reference MUST be provided.
- [PEPPOL-EN16931-R004](https://xmlvalid.com/rules/PEPPOL-EN16931-R004.md) (error): Specification identifier MUST have the value 'urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:selfbilling:3.0' and follow the format rules for the identifier.
- [PEPPOL-EN16931-R005](https://xmlvalid.com/rules/PEPPOL-EN16931-R005.md) (error): VAT accounting currency code MUST be different from invoice currency code when provided.
- [PEPPOL-EN16931-R007](https://xmlvalid.com/rules/PEPPOL-EN16931-R007.md) (error): Business process MUST have an approved identifier.
- [PEPPOL-EN16931-R008](https://xmlvalid.com/rules/PEPPOL-EN16931-R008.md) (error): Document MUST not contain empty elements.
- [PEPPOL-EN16931-R010](https://xmlvalid.com/rules/PEPPOL-EN16931-R010.md) (error): Buyer electronic address MUST be provided
- [PEPPOL-EN16931-R020](https://xmlvalid.com/rules/PEPPOL-EN16931-R020.md) (error): Seller electronic address MUST be provided
- [PEPPOL-EN16931-R040](https://xmlvalid.com/rules/PEPPOL-EN16931-R040.md) (error): Allowance/charge amount must equal base amount * percentage/100 if base amount and percentage exists
- [PEPPOL-EN16931-R041](https://xmlvalid.com/rules/PEPPOL-EN16931-R041.md) (error): Allowance/charge base amount MUST be provided when allowance/charge percentage is provided.
- [PEPPOL-EN16931-R042](https://xmlvalid.com/rules/PEPPOL-EN16931-R042.md) (error): Allowance/charge percentage MUST be provided when allowance/charge base amount is provided.
- [PEPPOL-EN16931-R043](https://xmlvalid.com/rules/PEPPOL-EN16931-R043.md) (error): Allowance/charge ChargeIndicator value MUST equal 'true' or 'false'
- [PEPPOL-EN16931-R044](https://xmlvalid.com/rules/PEPPOL-EN16931-R044.md) (error): Charge on price level is NOT allowed. Only value 'false' allowed.
- [PEPPOL-EN16931-R046](https://xmlvalid.com/rules/PEPPOL-EN16931-R046.md) (error): Item net price MUST equal (Gross price - Allowance amount) when gross price is provided.
- [PEPPOL-EN16931-R051](https://xmlvalid.com/rules/PEPPOL-EN16931-R051.md) (error): All currencyID attributes must have the same value as the invoice currency code (BT-5), except for the invoice total VAT amount in accounting currency (BT-111).
- [PEPPOL-EN16931-R053](https://xmlvalid.com/rules/PEPPOL-EN16931-R053.md) (error): Only one tax total with tax subtotals MUST be provided.
- [PEPPOL-EN16931-R054](https://xmlvalid.com/rules/PEPPOL-EN16931-R054.md) (error): Only one tax total without tax subtotals MUST be provided when tax currency code is provided.
- [PEPPOL-EN16931-R055](https://xmlvalid.com/rules/PEPPOL-EN16931-R055.md) (error): Invoice total VAT amount and Invoice total VAT amount in accounting currency MUST have the same operational sign
- [PEPPOL-EN16931-R061](https://xmlvalid.com/rules/PEPPOL-EN16931-R061.md) (error): Mandate reference MUST be provided for direct debit.
- [PEPPOL-EN16931-R080](https://xmlvalid.com/rules/PEPPOL-EN16931-R080.md) (error): Only one project reference is allowed on document level
- [PEPPOL-EN16931-R100](https://xmlvalid.com/rules/PEPPOL-EN16931-R100.md) (error): Only one invoiced object is allowed pr line
- [PEPPOL-EN16931-R101](https://xmlvalid.com/rules/PEPPOL-EN16931-R101.md) (error): Element Document reference can only be used for Invoice line object
- [PEPPOL-EN16931-R110](https://xmlvalid.com/rules/PEPPOL-EN16931-R110.md) (error): Start date of line period MUST be within invoice period.
- [PEPPOL-EN16931-R111](https://xmlvalid.com/rules/PEPPOL-EN16931-R111.md) (error): End date of line period MUST be within invoice period.
- [PEPPOL-EN16931-R120](https://xmlvalid.com/rules/PEPPOL-EN16931-R120.md) (error): Invoice line net amount MUST equal (Invoiced quantity * (Item net price/item price base quantity) + Sum of invoice line charge amount - sum of invoice line allowance amount
- [PEPPOL-EN16931-R121](https://xmlvalid.com/rules/PEPPOL-EN16931-R121.md) (error): Base quantity MUST be a positive number above zero.
- [PEPPOL-EN16931-R130](https://xmlvalid.com/rules/PEPPOL-EN16931-R130.md) (error): Unit code of price base quantity MUST be same as invoiced quantity.
