Utilities
Validate card / IBAN API
Validate a payment card number (Luhn checksum + brand detection) or an IBAN (mod-97 checksum + country). Answers 'is this card number valid', 'what card brand is this', 'validate this IBAN'.
Price$0.01per request
MethodPOST
Route/v1/util/card-validate
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
utilluhncardibanvalidatechecksumpayment
API URL
Integration docshttps://x402.hexl.dev/v1/util/card-validateExample request
{
"type": "card",
"value": "4111 1111 1111 1111"
}Example response
{
"input": "4111 1111 1111 1111",
"valid": true,
"brand": "Visa",
"length": 16
}Input schema
{
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"type": {
"type": "string",
"enum": [
"card",
"iban"
]
},
"value": {
"type": "string"
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}