{"uid":"cap__NPwiLOZO8fs_5hQ00FEJ","slug":"spanish-tax-id-validator-dni-nie-cif-2a834a39","name":"Spanish Tax ID Validator (DNI/NIE/CIF)","description":"Spanish tax ID validation (DNI/NIF, NIE and company CIF) with check-digit verification. Computed locally; the ID is not stored.","url":"https://api.vextorium.com/validar-nif-pago?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":{"required":["valor"],"properties":{"valor":{"type":"string","description":"DNI, NIE or CIF"}}},"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":{"tipo":{"type":["string","null"]},"valor":{"type":["string","null"]},"motivo":{"type":["string","number","boolean","object","array","null"]},"valido":{"type":["boolean","null"]}}}}}}},"responseSchema":{"type":"json","example":{"tipo":"CIF persona juridica","valor":"B12****74","motivo":null,"valido":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vZlBpNmD41z3V0wr89_Bh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates Spanish tax identifiers — DNI/NIF, NIE, and company CIF — by computing and verifying the check digit locally without storing the ID.","exampleAgentPrompt":"Can you check whether '12345678Z' is a valid Spanish DNI? I need to verify the check digit before submitting the registration form.","exampleUseCases":[{"title":"KYC onboarding form validation","prompt":"Before we let this user complete registration, can you verify that their Spanish ID '47521369B' is a valid DNI with a correct check digit?"},{"title":"B2B invoice recipient verification","prompt":"I need to send an invoice to a Spanish company with CIF 'B83948217' — can you check whether that's a valid CIF?"},{"title":"NIE check for foreign resident","prompt":"Can you validate the NIE 'X1234567L' for me? I want to make sure it's correctly formatted and the letter is right before filing the tax return."}],"resultDescription":"Returns a JSON object with a boolean 'valido' indicating whether the ID is valid, 'tipo' indicating the detected ID type (DNI, NIE, or CIF), 'valor' with the normalized input, and 'motivo' providing a reason or error message when the ID is invalid.","failureModes":["Malformed or empty 'valor' string returns valido: false with a descriptive motivo","Unrecognizable format (neither DNI, NIE, nor CIF pattern) returns null tipo and valido: false","Correct format but wrong check digit returns valido: false with motivo explaining the mismatch","Network or payment authorization failure returns an HTTP error before any validation is performed"],"whenToPreferThis":"Choose this endpoint when you need a fast, privacy-preserving check-digit validation of Spanish personal or corporate tax IDs (DNI, NIE, NIF, CIF) without sending the ID to a third-party storage system. It is computed locally on the server with no persistence, making it suitable for GDPR-sensitive workflows. Prefer it over full KYC services when you only need format and check-digit correctness, not identity database lookups.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:30.071Z","isFirstParty":false,"canonicalSlug":"spanish-tax-id-validator-dni-nie-cif-2a834a39"}