GEN-PCI-001: Card number in the payload
| Property | Value |
|---|---|
| Severity | error |
| Confidence | policy |
| Level | general |
| Brand | all brands |
| Impact | hygiene |
| Effective | always |
| Pack | l3lint.rules.general 1.0.0 |
Requirement
No value may be a card number. Send only the last four digits in card.last4.
Why
A card number puts the payload, and everyone who handles it, in PCI DSS scope. l3lint masks it before any other stage sees it.
Check
custom (check: CardNumber)
Message
A card number was found at {field} and masked as {masked}.
Fix
Remove the card number; send only the last four digits in card.last4.
Sources
Notes
Values in code fields (product code, commodity code, sequence) are reported as warnings, because any random 16-digit code passes the Luhn check about one time in ten.
Examples
Passing example
The description is a real item name.
{
"schemaVersion": "1.0",
"id": "INV-20417",
"amount": 280.36,
"currency": "USD",
"transactionDate": "2026-10-19",
"channel": "cardNotPresent",
"card": {
"brand": "visa",
"product": "purchasing",
"last4": "4242"
},
"merchant": {
"mcc": "5047",
"name": "Gulfside Medical Supply",
"country": "US",
"taxId": "12-3456789"
},
"customer": {
"reference": "PO-77812"
},
"order": {
"purchaseOrderNumber": "PO-77812",
"invoiceNumber": "INV-20417"
},
"tax": {
"amount": 17.36,
"indicator": "taxable",
"rate": 0.07
},
"amounts": {
"discount": 0.00,
"freight": 15.00,
"duty": 0.00
},
"shipping": {
"fromPostalCode": "33602",
"toPostalCode": "33431",
"toCountry": "US"
},
"billing": {
"postalCode": "33431"
},
"lineItems": [
{
"sequence": 1,
"description": "Nitrile exam gloves L 100",
"productCode": "GLV-NTR-L100",
"commodityCode": "42132203",
"commodityScheme": "unspsc",
"quantity": 10,
"unitOfMeasure": "BX",
"unitCost": 12.50,
"discountAmount": 5.00,
"taxAmount": 8.40,
"taxRate": 0.07,
"taxable": true,
"total": 120.00,
"detailIndicator": "Y"
},
{
"sequence": 2,
"description": "Isolation gown blue cs 50",
"productCode": "GWN-ISO-BL50",
"commodityCode": "42131606",
"commodityScheme": "unspsc",
"quantity": 2,
"unitOfMeasure": "CA",
"unitCost": 64.00,
"discountAmount": 0.00,
"taxAmount": 8.96,
"taxRate": 0.07,
"taxable": true,
"total": 128.00,
"detailIndicator": "Y"
}
]
}
Failing example
The first line's description holds the public test card number 4111 1111 1111 1111.
{
"schemaVersion": "1.0",
"id": "INV-20417",
"amount": 280.36,
"currency": "USD",
"transactionDate": "2026-10-19",
"channel": "cardNotPresent",
"card": {
"brand": "visa",
"product": "purchasing",
"last4": "4242"
},
"merchant": {
"mcc": "5047",
"name": "Gulfside Medical Supply",
"country": "US",
"taxId": "12-3456789"
},
"customer": {
"reference": "PO-77812"
},
"order": {
"purchaseOrderNumber": "PO-77812",
"invoiceNumber": "INV-20417"
},
"tax": {
"amount": 17.36,
"indicator": "taxable",
"rate": 0.07
},
"amounts": {
"discount": 0.00,
"freight": 15.00,
"duty": 0.00
},
"shipping": {
"fromPostalCode": "33602",
"toPostalCode": "33431",
"toCountry": "US"
},
"billing": {
"postalCode": "33431"
},
"lineItems": [
{
"sequence": 1,
"description": "4111 1111 1111 1111",
"productCode": "GLV-NTR-L100",
"commodityCode": "42132203",
"commodityScheme": "unspsc",
"quantity": 10,
"unitOfMeasure": "BX",
"unitCost": 12.50,
"discountAmount": 5.00,
"taxAmount": 8.40,
"taxRate": 0.07,
"taxable": true,
"total": 120.00,
"detailIndicator": "Y"
},
{
"sequence": 2,
"description": "Isolation gown blue cs 50",
"productCode": "GWN-ISO-BL50",
"commodityCode": "42131606",
"commodityScheme": "unspsc",
"quantity": 2,
"unitOfMeasure": "CA",
"unitCost": 64.00,
"discountAmount": 0.00,
"taxAmount": 8.96,
"taxRate": 0.07,
"taxable": true,
"total": 128.00,
"detailIndicator": "Y"
}
]
}