All error codes › BR-51
BR-51 – In accordance with card payments security standards an invoice should never include a…
What the rule says
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.
How to fix it
Fill in or correct the fields named in the rule (the BT/BG codes tell you which). The test below shows exactly what is checked in the XML. Quickest: validate the invoice to get the exact location and, for amounts, the correct value.
This is a warning, not an error: it does not normally cause a rejection, but it is worth cleaning up.
Paste the XML and see every error with the exact fix and the correct amounts.
Where it is checked in the XML
Context: cac:PaymentMeans/cac:CardAccount/cbc:PrimaryAccountNumberID
Test (XPath):
string-length(normalize-space(.))<=10
Related rules
BR-01An Invoice shall have a Specification identifier (BT-24)BR-02Invoice number missingBR-03An Invoice shall have an Invoice issue date (BT-2)BR-04An Invoice shall have an Invoice type code (BT-3)BR-05Invoice currency missingBR-06Seller name missingBR-07Buyer name missingBR-08Seller address missingBR-09The Seller postal address (BG-5) shall contain a Seller country code (BT-40)BR-10Buyer address missingBR-11The Buyer postal address shall contain a Buyer country code (BT-55)BR-12An Invoice shall have the Sum of Invoice line net amount (BT-106)