Rules › EN 16931 (European standard) › BR-51

The invoice shows a full card number

In short: An invoice must never give a payment card's full number: 10 characters at most, such as its last 4 digits.

✗ ErroriAn invoice that fails this rule is not valid under its rule set.Payment and mandatory notes

  1. What the rule checks

    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.

  2. 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.
  3. How to fix it

    1. Write only the last 4 digits of the card in the invoice.
    2. Check that your software masks the card number in the e-invoice too, not only on the PDF.
    3. If it writes the full number, report it to the software's publisher, quoting BR-51.
  4. 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.

Fields (EN 16931)BT-87
CII/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:ID
UBL/Invoice/cac:PaymentMeans/cac:CardAccount/cbc:PrimaryAccountNumberID
Reported asBR-51

The fix in the example file

Between the example invoice that fails the rule (−, removed) and the same invoice, valid (+, added):

    <ram:TypeCode>54</ram:TypeCode>    <ram:ApplicableTradeSettlementFinancialCard>−     <ram:ID>4111111111111111</ram:ID>+     <ram:ID>1111</ram:ID>    </ram:ApplicableTradeSettlementFinancialCard>  </ram:SpecifiedTradeSettlementPaymentMeans>

Official text

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.

BR-51, EN 16931 validation artefacts 1.3.17, CII and UBL.

Page updated on 2026-11-23

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.