BR-51

This id stands for 2 different rules, one per rule set below: Factur-X numbers its rules in each profile separately.

warning: reported, still valid error: the document is invalid Peppol documentation ↗

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Message

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.

Context
cac:PaymentMeans/cac:CardAccount/cbc:PrimaryAccountNumberID
Test
string-length(normalize-space(.))<=10

Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Message

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.

Context
//ram:ApplicableTradeSettlementFinancialCard
Test
string-length(normalize-space(ram:ID)) <= 10

Checked with EN 16931 Invoice (CII)

Message

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.

Context
cac:PaymentMeans/cac:CardAccount
Test
string-length(cbc:PrimaryAccountNumberID)<=10

Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)

Message

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.

Context
//ram:ApplicableTradeSettlementFinancialCard
Test
string-length(normalize-space(ram:ID)) <= 10

Checked with France Factur-X EN 16931, Factur-X / ZUGFeRD EN 16931