# Brasil Dados API – Payment Card Number Validator (Luhn + Brand)

> Brasil Dados API – Payment Card Number Validator (Luhn + Brand) is a paid API for AI agents from brasil-dados-api.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Validates a payment card number's format using the Luhn algorithm and detects the card brand, returning a timestamped receipt — no real account lookup performed.

## Facts

- Endpoint: GET https://brasil-dados-api.onrender.com/verify/card/:var1
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brasil-dados-api-payment-card-number-validator-luhn-brand-4322cab0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RWrFfjJbNwrhU-Hcs7C16

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 brasil-dados-api-payment-card-number-validator-luhn-brand-4322cab0
```

Example prompt: Can you check whether the card number 4111111111111111 is valid — does it pass the Luhn check and what brand is it?

## When to prefer this

Choose this endpoint when you need a quick, cheap format-level check of a payment card number (Luhn algorithm + brand identification) without triggering any real financial transaction or bank account lookup. Ideal for pre-validation in checkout flows, form validation, or fraud screening pipelines where you only need structural correctness confirmed with a timestamped audit receipt.

## Known failure modes

- Card number contains non-numeric characters — returns validation error
- Card number is too short or too long for any known brand — may return invalid with no brand detected
- Missing path parameter var1 — returns 404 or bad request
- Service cold-start on Render free tier may cause initial latency spike or timeout

## How this service works

Validate a payment card number format (Luhn + brand). Format only, no account lookup. Timestamped receipt.

## Output

Returns a JSON object indicating whether the card number passes the Luhn checksum, the detected card brand (e.g. Visa, Mastercard, Amex), and a timestamped receipt confirming the validation was performed. No real account or bank lookup is done.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brasil-dados-api-payment-card-number-validator-luhn-brand-4322cab0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from brasil-dados-api.onrender.com](https://www.zero.xyz/host/brasil-dados-api.onrender.com/llms.txt)
