{
  "id": "BR-Z-02",
  "country": "EU",
  "syntax": "ubl",
  "group": "zero-rated",
  "severity": "fatal",
  "severity_note": "fatal, from the Flag column of the Peppol BIS Billing 3.0 UBL rules index retrieved 2026-10-17.",
  "spec": "Peppol BIS Billing 3.0, May 2026 release, EN 16931 model bound to UBL",
  "statement": "An Invoice that contains an Invoice line where the Invoiced item VAT category code (BT-151) is \"Zero rated\" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63).",
  "statement_lang": "en",
  "context": "/ubl:Invoice | /cn:CreditNote",
  "test": "(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) and (exists(//cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or exists(//cac:TaxRepresentativeParty/cac:PartyTaxScheme[cac:TaxScheme/(normalize-space(upper-case(cbc:ID)) = 'VAT')]/cbc:CompanyID))) or not(exists(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'Z'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']))",
  "meaning": "If an invoice line uses VAT category \"Zero rated\", the invoice must include at least one of the seller VAT identifier (BT-31), the seller tax registration identifier (BT-32), or the seller tax representative VAT identifier (BT-63). The official message does not name BG-25. The published test looks for a line category code Z whose tax scheme is VAT, and the negative branch also requires that scheme. The statement does not require a buyer identifier.",
  "fix": "On a line coded Z, send at least one of BT-31, BT-32, or BT-63.",
  "example_fail": "A line uses category code Z, and BT-31, BT-32, and BT-63 are all missing.",
  "example_pass": "A line uses Z, and at least one of BT-31, BT-32, or BT-63 is present.",
  "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/BR-Z-02/",
  "source_retrieved": "2026-10-17",
  "last_verified": "2026-10-17"
}
