# Credit card Luhn validator

**Use case:** 

Validate sample Visa, Mastercard, Amex, and Discover numbers with the Luhn checksum and detect card brands automatically.

## Input

```json
{
  "numbers": [
    "4111111111111111",
    "5425233430109903",
    "374245455400126",
    "6011514433546201"
  ]
}
```

## Output

```json
{
  "number": {
    "label": "Number",
    "format": "text"
  },
  "numberNormalized": {
    "label": "Normalized",
    "format": "text"
  },
  "digitCount": {
    "label": "Digits",
    "format": "number"
  },
  "isValid": {
    "label": "Valid",
    "format": "boolean"
  },
  "checkDigit": {
    "label": "Check Digit",
    "format": "number"
  },
  "expectedCheckDigit": {
    "label": "Expected",
    "format": "number"
  },
  "numberType": {
    "label": "Type",
    "format": "text"
  },
  "cardBrand": {
    "label": "Card Brand",
    "format": "text"
  },
  "cardBrandCode": {
    "label": "Brand Code",
    "format": "text"
  },
  "iinRange": {
    "label": "IIN Range",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Luhn Algorithm Validator](https://apify.com/automation-lab/luhn-validator) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/luhn-validator) to learn more, explore other use cases, and run it yourself.