# agent402.tools Card Validate

> agent402.tools Card Validate is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates a payment card number using the Luhn checksum algorithm and detects the card brand (e.g. Visa, Mastercard), without storing or logging the number.

## Facts

- Endpoint: POST https://agent402.tools/api/card-validate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-card-validate-52bf650e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xy_iogvkw_IRcp_nbtl6p

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-card-validate-52bf650e -d '<json body>'
```

Example prompt: Can you check whether the card number 4111 1111 1111 1111 is valid and tell me what brand it is?

## When to prefer this

Use this endpoint when you need a quick, privacy-safe Luhn checksum validation and card brand detection for a single card number without retaining any sensitive data. Prefer this over full payment processors when you only need client-side-style validation logic server-side, without initiating a charge.

## Known failure modes

- Missing or empty card number field returns an error
- Non-numeric input that cannot be interpreted as a card number
- Network or payment gateway failure returns a 402 or 5xx error
- Ambiguous or unrecognized card brand returns null/unknown brand

## How this service works

Validate a payment card number (Luhn checksum) and detect the brand. Numbers are not stored or logged.

## Output

Returns whether the card number passes the Luhn checksum (valid/invalid) and the detected card brand (e.g. Visa, Mastercard, Amex, Discover). No card data is stored or logged.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "number": {
   "type": "string",
   "description": "Card number (spaces/dashes allowed)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "brand": "visa",
  "valid": true,
  "length": 16
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-card-validate-52bf650e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
