{"uid":"cap_aXbgq7-BdJuyKc07L8I5D","slug":"toll402-mexican-rfc-validator-bf272c2b","name":"Toll402 Mexican RFC Validator","description":"Offline validator for a Mexican RFC (Registro Federal de Contribuyentes). Checks the format for persona física (4 letters + 6-digit date + 3-char homoclave) or persona moral (3 letters + 6-digit date + 3-char homoclave), verifies the embedded date is a real calendar date, and returns the parsed birth/incorporation date. Pure string/date logic, no network calls.","url":"https://toll402.dev/v1/t/rfc_validate","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":{}},"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_n5ulxvgv-JlJtGvKJ4oWS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates and parses a Mexican RFC (Registro Federal de Contribuyentes) tax ID, verifying format and embedded date for both individuals and companies.","exampleAgentPrompt":"Can you check if this Mexican RFC is valid: 'GOFJ850101AB3' — and tell me what birth date it encodes and whether it's for an individual or a company?","exampleUseCases":[{"title":"Validate customer RFC before invoice","prompt":"I need to validate this RFC from our customer before we issue them a Mexican tax invoice: 'BACP900215XK7' — is it valid, and is it for a person or a company?"},{"title":"Parse incorporation date from company RFC","prompt":"We have a Mexican supplier RFC 'XYZ030512AB1' — can you verify it's a valid persona moral RFC and tell me the incorporation date it encodes?"},{"title":"Bulk onboarding RFC sanity check","prompt":"Before we finalize this user's onboarding, please confirm that 'RAMG-750620-HK5' is a properly formatted Mexican RFC and extract their birth date from it."}],"resultDescription":"Returns whether the RFC is valid, the detected type (persona física or persona moral), the parsed calendar date (birth date for individuals, incorporation date for companies), and details about the homoclave. On failure, returns an explanation of which part of the format is invalid.","failureModes":["Invalid format — wrong number of letters in the name prefix","Embedded date is not a real calendar date (e.g., month 13 or day 32)","Homoclave portion does not match expected 3-character alphanumeric pattern","Empty or missing RFC input returns validation error","Non-string input type causes schema rejection"],"whenToPreferThis":"Use this endpoint when you need to validate a Mexican RFC tax ID offline without any external SAT API calls. Ideal for form validation, user onboarding, invoice pre-checks, or any compliance workflow involving Mexican individuals (persona física) or companies (persona moral). Prefer this over manual regex checks because it also validates the embedded date as a real calendar date, not just the format.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:56:52.240Z","isFirstParty":false}