{
  "id": "UBL-SR-43",
  "country": "EU",
  "syntax": "ubl",
  "group": "syntax",
  "severity": "fatal",
  "severity_note": "fatal, from the Flag column of the Peppol BIS Billing 3.0 UBL rules index retrieved 2026-10-18.",
  "spec": "Peppol BIS Billing 3.0, May 2026 release, EN 16931 model bound to UBL",
  "statement": "Scheme identifier shall only be used for invoiced object (document type code with value 130 or 50)",
  "statement_lang": "en",
  "context": "cac:AdditionalDocumentReference",
  "test": "((cbc:DocumentTypeCode='130') or ((local-name(/*) = 'CreditNote') and (cbc:DocumentTypeCode='50')) or (not(cbc:ID/@schemeID) and not(cbc:DocumentTypeCode)))",
  "meaning": "A scheme identifier shall be used only for an invoiced object, document type code 130 or 50. The statement has no period and says shall. It is 98 characters. The flag is fatal. The context is an additional document reference, the same string as UBL-SR-33. The published test does not call count. It writes DocumentTypeCode='130' and DocumentTypeCode='50' with no space around =. The credit-note comparison writes = with a space on each side.",
  "fix": "Use a scheme identifier only when the document type code is 130 or 50.",
  "example_fail": "A supporting document has a scheme identifier and some other document type code.",
  "example_pass": "The scheme identifier is absent, or the document type code is 130, or a credit note uses 50.",
  "example_note": "Illustration of the condition in the official statement. Not an example published by the source.",
  "source_url": "https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/UBL-SR-43/",
  "source_retrieved": "2026-10-18",
  "last_verified": "2026-10-18"
}
