---
title: "Validate a card number with Luhn + detect brand"
method: POST
path: "/credit-card-validate.php"
tags: ["crypto"]
---

# Validate a card number with Luhn + detect brand

`POST /credit-card-validate.php`

## Request

- Base URL: `https://mate.tools/api/v1`
- URL: `https://mate.tools/api/v1/credit-card-validate.php`
- Auth: none declared

Luhn check + brand detection (Visa, MasterCard, Amex, Discover, JCB, Diners, UnionPay, Maestro, RuPay). The PAN is never logged - only its length, IIN, last 4 and Luhn outcome leave the server.

## Request body

- object
  - `number` string, required

## Response `200`

Success

## Other responses

- `400`: Malformed request
- `429`: Rate limit exceeded (60/min, 600/hour per IP). Includes Retry-After header.

---

[API](https://skmtc.dev/mate/apis/mate-tools-api.md) · [All operations](https://skmtc.dev/mate/apis/mate-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mate/apis/mate-tools-api/revisions/874670b78962?raw)
