warningpeppol-bis-3
BR-51:Payment card primary account number not masked
The invoice contains a full credit card number (BT-87), which violates PCI security standards. Only the first 6 and last 4 digits should be shown.
We can fix this automatically
AUTO-FIXAuto-fix: Mask the card number to show only first 6 and last 4 digits (e.g., 411111******1111). This is the PCI-compliant format for displaying card numbers.
No manual changes needed
Upload and Fix NowWhy This Error Matters
Security violation. Full card numbers must never be stored or transmitted in invoices per PCI-DSS requirements.
How to Fix It
1
Find card number
Locate cbc:PrimaryAccountNumberID in cac:CardAccount under PaymentMeans
2
Mask middle digits
Replace middle digits with asterisks: 411111******1111
3
Verify format
Result should show max 6 leading + 4 trailing digits visible
Code Example
<cac:Price>
<cbc:PriceAmount currencyID="EUR">50.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="C62">10</cbc:BaseQuantity>
<!-- Price is 50 EUR per 10 units = 5 EUR each -->
</cac:Price>Technical Details
XPath: /Invoice/cac:PaymentMeans/cac:CardAccount/cbc:PrimaryAccountNumberID. Per PCI-DSS, show only first 6 and last 4 digits.Common Causes
- Full card PAN stored and exported from source system
- Payment card details not masked before export
- PCI-DSS compliance not enforced in ERP
- Legacy system stores full card numbers
- Card number copied from payment gateway without masking
Commonly Seen In
Wholesale/bulk invoicing systems
Frequently Asked Questions
When price is per multiple units, use BaseQuantity in Price element.
Set BaseQuantity when price is per multiple units. You can also use Invoice Navigator's automatic Fixer tool to correct this instantly.
BR-51 is a warning that may not always cause rejection, but it indicates a potential compliance issue that should be addressed to ensure full compatibility.
Many instances of BR-51 can be automatically corrected using Invoice Navigator's Fixer tool. Upload your invoice and the tool will identify and fix common issues, including price base quantity usage.
BR-51 is commonly seen in exports from Wholesale/bulk invoicing systems. These software packages sometimes generate invoices that need adjustment to meet full compliance standards.
Related Errors
Last updated: 16 January 2026
Share this guide: