Peppol BIS Billing 3.0 · rule
UBL-CR-665
What does UBL-CR-665 mean? A UBL invoice should not include the AdditionalDocumentReference ID schemeID unless the DocumentTypeCode equals '130'
Why did my invoice fail UBL-CR-665?
The schemeID attribute on cac:AdditionalDocumentReference/cbc:ID should only be used when the reference is an invoiced object identifier, i.e. when cbc:DocumentTypeCode equals '130'. For any other additional document reference the attribute has no defined meaning in EN 16931 and should be omitted.
Official rule text
A UBL invoice should not include the AdditionalDocumentReference ID schemeID unless the DocumentTypeCode equals '130'
Common causes
- schemeID set on a reference to an attached document instead of an invoiced object
- DocumentTypeCode 130 missing while schemeID is present
- Serializer adds schemeID to every document reference ID
How do I fix it?
<cac:AdditionalDocumentReference> <cbc:ID schemeID="ABZ">DR35141</cbc:ID> <cbc:DocumentTypeCode>130</cbc:DocumentTypeCode> </cac:AdditionalDocumentReference>
Related rules
UBL-CR-001 · UBL-CR-002 · UBL-CR-003 · UBL-CR-004 · UBL-CR-005 · UBL-CR-006 · UBL-CR-007 · UBL-CR-008
Check your invoice against this rule
Paste it into the live demo, or call POST /v1/validate. See the quickstart.