# Mexico RFC Tax ID Validator

> Mexico RFC Tax ID Validator is a paid API for AI agents from latam-datos-api.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Validates a Mexican RFC (Registro Federal de Contribuyentes) tax identifier and returns whether it is valid and the taxpayer type (persona física or persona moral).

## Facts

- Endpoint: GET https://latam-datos-api.onrender.com/mx/validar/rfc
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mexico-rfc-tax-id-validator-d62ed7ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-j87N0vKKe6XN9_f48dlR

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 mexico-rfc-tax-id-validator-d62ed7ca
```

Example prompt: Can you check if this Mexican RFC is valid and tell me whether it belongs to an individual or a company? The RFC is XAXX010101000.

## When to prefer this

Use this endpoint when you need to validate a Mexican RFC tax identifier as part of KYC, invoice generation, supplier onboarding, or fiscal compliance workflows. Prefer this over generic string validators because it understands Mexican RFC checksum rules and classifies persona física vs persona moral.

## Known failure modes

- Missing 'valor' query parameter returns an error
- Invalid RFC format may return valido: false
- Service downtime on Render free tier may cause 502 or timeout
- Malformed RFC string may yield unexpected classification

## How this service works

Datos de mercados emergentes para agentes: FX LatAm, inflacion, tasas de bancos centrales, feriados, validacion de IDs fiscales/bancarios, IVA y salarios minimos. Pago por consulta via x402 v2 (USDC en Base).

## Output

Returns a JSON object with 'valido' (boolean indicating whether the RFC is valid) and 'tipo' (string indicating taxpayer type: 'persona_fisica' for individual or 'persona_moral' for company/legal entity).

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "valor"
     ],
     "properties": {
      "valor": {
       "type": "string",
       "description": "RFC a validar"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tipo": "persona_fisica",
  "valido": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mexico-rfc-tax-id-validator-d62ed7ca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from latam-datos-api.onrender.com](https://www.zero.xyz/host/latam-datos-api.onrender.com/llms.txt)
