When an invoice is paid by card, it can say which card, but the card payment security standards forbid showing its full number. The official message allows at most the first 6 and the last 4 digits. The rule checks that the number written has 10 characters at most.
Common causes
A card number masked on the PDF only, with stars, but written in full in the data.
A masked number longer than 10 characters, such as 12 stars and 4 digits.
How to fix it
Write only the last 4 digits of the card in the invoice.
Check that your software masks the card number in the e-invoice too, not only on the PDF.
If it writes the full number, report it to the software's publisher, quoting BR-51.
Why it matters
BR-51 is a rule of the European e-invoicing standard, EN 16931. The French, German (XRechnung) and European (Peppol) rules build on this standard, so an invoice that fails BR-51 also fails each of them.
In public procurement, buyers in the European Union must accept e-invoices that follow this standard (Directive 2014/55/EU).
Does your invoice pass BR-51?
Check it against this rule only. The check runs in your browser, so nothing is sent.
Technical details
If you are interested in the technical side: the data the rule checks in the invoice file.
The payment card primary account number is BT-87. In CII, it is ram:ID of ram:ApplicableTradeSettlementFinancialCard in ram:SpecifiedTradeSettlementPaymentMeans; in UBL, cbc:PrimaryAccountNumberID of cac:CardAccount. The rule counts its characters: at most 10.
In the 1.3.17 files, the rule is fatal in CII and a warning in UBL. Its CII message names BT-97, the reason of an allowance, where the UBL message names BT-87, the card number.
The example invoice is paid by card and gives the card's full number, so it fails BR-51 alone.
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.
EN 16931 concepts (business terms, rules): these pages are an implementation of the semantic data model EN 16931-1:2017 and its two mandatory syntaxes (CEN/TS 16931-2:2017), and reproduce parts of them with the permission of CEN and its member national standardisation bodies. CEN and the national standardisation bodies bear no liability for the content and implementation of these pages, and give no warranty, express or implied, for any purpose. In case of doubt, always refer to the official text of the standard.