# PEPPOL-EN16931-P0101

Source: https://xmlvalid.com/rules/PEPPOL-EN16931-P0101

> Credit note type code MUST be set according to the profile.

- Level: error
- Rule sets: Peppol BIS Billing 3.0 rules 3.0.21
- Context: `cbc:CreditNoteTypeCode`
- Test: `not($profile = ('01','02')) or (some $code in tokenize('381 396 81 83 532', '\s') satisfies normalize-space(text()) = $code)`

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