Validate a card PAN (Luhn)
card-payments_pan-checkCheck card number length and Luhn check digit. Never echoes the full PAN; returns masked form and last4 only. Price $0.01 USDC. POST /api/v1/card-payments/pan-check. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pan": "<pan>"
},
"name": "card-payments_pan-check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pan | Yes | pan, string, length 12 to 32. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last4 | No | last4. String. | |
| length | No | length. Number. | |
| masked | No | masked. String. | |
| sources | No | sources. Array. | |
| luhnValid | No | luhnValid. Boolean. | |
| limitations | No | limitations. Array. |