Skip to main content
GET
/
Tools
/
luhn
Luhn Algorithm Validation
curl --request GET \
  --url https://api.orchestrasolutions.com/Tools/luhn \
  --header 'X-Api-Key: <api-key>'
{
  "luhnValid": true,
  "error": "<string>",
  "iinData": {
    "bin": "<string>",
    "cardBrand": "<string>",
    "cardType": "<string>",
    "category": "<string>",
    "issuingOrganization": "<string>",
    "countryCode": "<string>",
    "brandLogoUrl": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.orchestrasolutions.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Api-Key
string
header
required

Please enter ApiKey into field

Query Parameters

number
string
required

The full card number to be validated

metaData
boolean
default:false

An optional indicator to specify whether the card metadata should be included in the response

Response

OK

Luhn Check Results with optional IIN metadata

luhnValid
boolean

Indicates whether the card number passed the Luhn algorithm check

error
string | null

Error description if validation failed

iinData
object

IIN / BIN metadata for a card