BR-51 Full card number in the invoice

What the EN 16931 rule BR-51 demands, where the data sits in UBL and CII, and how to fix the error.

WarningEN 16931BT-87

Official rule text

UBL

[BR-51]-In accordance with card payments security standards an invoice should never include a full card primary account number (BT-87). At the moment PCI Security Standards Council has defined that the first 6 digits and last 4 digits are the maximum number of digits to be shown.

CII

[BR-51]-In accordance with card payments security standards an invoice should never include a full card primary account number (BT-97). At the moment PCI Security Standards Council has defined that the first 6 digits and last 4 digits are the maximum number of digits to be shown.

Assertion BR-51 in the EN 16931 validation artefacts (CEN/TC 434), validation-1.3.16, UBL and CII.

What it means

For security, an invoice should never contain the full card number, at most the first six and last four digits. Mandatory content and structure of every EN 16931 invoice.

Docfaro reports a breach of BR-51 as a warning.

Where the data sits

The business terms this rule checks, and the element that carries each of them in the two syntaxes EN 16931 allows.

BT-87 Payment card primary account number

UBL 2.1
/Invoice/cac:PaymentMeans/cac:CardAccount/cbc:PrimaryAccountNumberID
CII D16B
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:ID

Prefixes: cbc and cac are the UBL basic and aggregate components; rsm, ram and udt the CII namespaces. In a UBL credit note the root is CreditNote and lines are cac:CreditNoteLine.

How to fix it

Shorten the card number.

Where the rule applies

Defined inEN 16931 validation artefacts validation-1.3.16
SyntaxesUBL and CII
Official severityUBL: warning, CII: error (fatal)
Docfaro reports it asWarning
Docfaro checks it forXRechnung, Peppol BIS Billing, and ZUGFeRD / Factur-X in the profiles BASIC, EN 16931 (COMFORT) and EXTENDED. MINIMUM, BASIC WL and ZUGFeRD 1.0 do not carry a full EN 16931 data set and only get basic checks.
Rule groupEN 16931 core rules (BR-01 to BR-65)

All rules explained

Sources

  1. EN 16931 validation artefacts validation-1.3.16 (Schematron, EUPL-1.2)CEN/TC 434 and European Commission, GitHub
  2. Validator-Konfiguration XRechnung 3.0.2, Release 2026-08-31 (XSD UBL 2.1 und CII D16B, Schematron EN 16931 und XRechnung)KoSIT auf GitHub
  3. Revised European standard on eInvoicing EN 16931-1:2026Europäische Kommission

Last reviewed: