{"uid":"cap_3yfF-7j_0C2nixmC0aZSw","slug":"toolrail-tax-id-validator-latin-america-spain-6c6e2807","name":"Toolrail Tax ID Validator (Latin America & Spain)","description":"Validate the format and supported check-digit rules of tax IDs across Latin America and Spain: Chile RUT, Argentina CUIT/CUIL, Brazil CPF/CNPJ, Mexico RFC, Peru RUC, Colombia NIT, Spain NIF/NIE. Does not verify identity or registration with a tax authority. Use when checking a Latin American or Spanish tax ID's format before saving a customer or an invoice.","url":"https://toolrail.dev/validate/tax-id?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"id":{"type":"string"},"country":{"type":"string"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"valid":{"type":"boolean"},"country":{"type":"string"},"formatted":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DKoMuvXXLKD72q_Js0PpP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates the format and check-digit rules of tax IDs for Chile, Argentina, Brazil, Mexico, Peru, Colombia, and Spain — returning whether the ID is valid, its type, and a formatted version.","exampleAgentPrompt":"Can you check if the Argentine CUIT '20-12345678-3' is valid before I save this customer record?","exampleUseCases":[{"title":"Customer onboarding tax ID check","prompt":"I'm onboarding a new customer from Brazil and they gave me CPF '123.456.789-09' — can you verify if that's a valid CPF before I create their account?"},{"title":"Invoice pre-validation for Mexico","prompt":"Before I send this invoice, can you validate that the Mexican RFC 'GODE561231GR8' is correctly formatted and has a valid check structure?"},{"title":"E-commerce checkout tax field validation","prompt":"A user at checkout entered the Colombian NIT '900123456-7' — is it valid, and what's the properly formatted version I should store?"}],"resultDescription":"Returns a JSON object with: `valid` (boolean), `id` (the input ID), `type` (e.g. CPF, CNPJ, RUT, CUIT, RFC, NIT, NIF, NIE, RUC), `country` (e.g. BR, CL, AR, MX), and `formatted` (the canonical formatted form of the ID). Does not confirm registration or identity with any tax authority.","failureModes":["Missing required `id` or `country` field returns a 400 error","Unsupported country code returns an error or unknown type","Malformed input (wrong type for fields) causes a validation failure","Check-digit mismatch correctly returns valid=false without an error","Network timeout or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need fast, offline-style format and check-digit validation of tax IDs from Chile, Argentina, Brazil, Mexico, Peru, Colombia, or Spain before persisting customer records or invoices. Prefer it over manual regex checks because it encodes country-specific check-digit algorithms (e.g. modulo 11 for Chilean RUT, modulo 11 for Brazilian CPF/CNPJ). Do not use it to confirm whether a taxpayer is registered or active — it only validates format and structure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:48:54.833Z","isFirstParty":false,"canonicalSlug":"toolrail-tax-id-validator-latin-america-spain-6c6e2807"}