{"uid":"cap_Ten9alkC4ARxpsd23q0Oh","slug":"portuguese-nif-nipc-validator-e9dca509","name":"Portuguese NIF/NIPC Validator","description":"The OpenRouter for AI-agent tools: one gateway, one wallet, every capability. Built-in tools, forged tools, a global verified business directory and 2,000+ aggregated x402 services, all paid per call in USDC via x402 (HTTP 402). No signup, no API key.","url":"https://toll402.dev/v1/t/nif_pt_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","required":["nif"],"properties":{"nif":{"type":"string","description":"Portuguese NIF/NIPC, digits only or with spaces/dots"}}},"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":{"type":"json","example":{"ok":true}},"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_Kn7mDN2B5L2XahArcuy-v","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 a Portuguese NIF (individual tax number) or NIPC (company tax number) offline, checking format and check-digit correctness.","exampleAgentPrompt":"Can you check whether the Portuguese NIF 123456789 is valid?","exampleUseCases":[{"title":"E-commerce checkout NIF validation","prompt":"Before we submit this invoice to the Portuguese tax system, can you verify that the customer's NIF '502 847 321' is correctly formatted and passes check-digit validation?"},{"title":"KYC onboarding for Portuguese business","prompt":"We're onboarding a new Portuguese company — can you validate their NIPC number 500123456 to make sure it's a legitimate, well-formed tax number before we proceed?"},{"title":"Bulk data cleanup for CRM records","prompt":"I have a contact record with a Portuguese NIF listed as '123.456.789' — can you confirm whether that's a valid NIF so I know if the record is usable?"}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating whether the NIF/NIPC is valid. A true value means the number passes format and check-digit rules; false means it is invalid. No external network call is made — validation is performed offline.","failureModes":["Missing or empty 'nif' field returns a validation error","Non-numeric input that cannot be normalized returns ok: false","NIF with incorrect check digit returns ok: false","Malformed request body (wrong content type or missing required fields) returns an HTTP error"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, offline check of a Portuguese NIF or NIPC number without setting up API keys or accounts. It is ideal for pre-validation before submitting data to Portuguese tax authorities, for KYC pipelines handling Portuguese entities, or for cleaning CRM data containing Portuguese tax IDs. Prefer this over a live registry lookup when you only need format/check-digit correctness and not real-time registration status.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:00:01.671Z","isFirstParty":false}