GET /v1/luhn-validateValidate credit card via Luhn
Validation Utils lf-validation-utils
Checks whether a card number passes the standard maths check used to catch typos. Validate credit card via Luhn
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
number | string | Yes | Card number to validate |
Response Schema
valid (boolean): Luhn checksum result
network (string): Detected network
masked (string): Masked card number
last_four (string): Last four digits
cURL Example
curl 'https://lf-validation-utils.laminarforge.dev/v1/luhn-validate?number=<number>' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-validation-utils.laminarforge.dev/v1/luhn-validate'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'number': '<number>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())