{"uid":"cap_bNzihRC_hQrTM0P0FC5oO","slug":"spain-tax-id-validator-dni-nie-cif-ebc5fb70","name":"Spain Tax ID Validator (DNI/NIE/CIF)","description":"Pay-per-call Spain utilities for AI agents over x402 (USDC). No accounts, no API keys. Public open data and offline computation only; nothing is stored.","url":"https://spain-agent-toolkit.spain-agent-toolkit.workers.dev/v1/es/tax-id/validate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":["id"],"properties":{"id":{"type":"string","description":"The DNI, NIE or CIF"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"type":"CIF","valid":true,"normalized":"B12345674"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4vqKRZbV8a6UAeEWoSuhQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates and normalizes Spanish tax identification numbers (DNI, NIE, or CIF) offline with no storage or accounts required.","exampleAgentPrompt":"Can you check whether the Spanish tax ID B12345674 is valid and tell me what type it is — DNI, NIE, or CIF?","exampleUseCases":[{"title":"Onboarding Spanish business customer","prompt":"Before we onboard this Spanish company, can you verify their tax ID A28015865 is a valid CIF and give me the normalized format?"},{"title":"Checking freelancer NIE for contract","prompt":"I need to validate the NIE number X1234567L for a Spanish freelancer before we sign the contract — is it valid?"},{"title":"Bulk invoice compliance check","prompt":"We received an invoice from a Spanish supplier with tax ID B87654321 — can you confirm that CIF is legitimate before we process payment?"}],"resultDescription":"Returns a JSON object with three fields: 'type' (string, one of DNI/NIE/CIF), 'valid' (boolean indicating whether the ID passes format and checksum rules), and 'normalized' (string with the canonically formatted version of the ID). Computation is done offline with no external lookups.","failureModes":["Missing or empty 'id' query parameter returns an error","Unrecognized format that doesn't match any Spanish ID pattern may return valid: false","Network or Cloudflare Worker unavailability returns a 5xx error","Payment failure via x402 protocol returns a 402 response before the computation runs"],"whenToPreferThis":"Use this endpoint when you need a fast, offline, pay-per-call check of Spanish tax IDs (DNI, NIE, or CIF) without setting up accounts or API keys. It is ideal for agent workflows that need occasional Spanish ID validation without committing to a subscription, or for compliance pipelines onboarding Spanish individuals or businesses. Prefer this over full KYC services when you only need format and checksum validation, not identity database lookups.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:31:48.194Z","isFirstParty":false,"canonicalSlug":"spain-tax-id-validator-dni-nie-cif-ebc5fb70"}