{"product_id":"enrich-brazilian-company-data-by-cnpj-with-cnpj-ia-br-api","title":"Enrich Brazilian Company Data by CNPJ with cnpj.ia.br API","description":"\u003ch3\u003eEnrich Brazilian company records by CNPJ—instantly\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow looks up a Brazilian company using the \u003cstrong\u003ecnpj.ia.br API\u003c\/strong\u003e, retries transient failures automatically, and outputs a clean, reduced company profile with key registration and contact fields.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eManual execution:\u003c\/strong\u003e The workflow runs when you manually trigger it in n8n.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSet the target CNPJ:\u003c\/strong\u003e It assigns the CNPJ to query and initializes a retry counter.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetch full company profile:\u003c\/strong\u003e It requests the complete company profile from \u003cstrong\u003ecnpj.ia.br API\u003c\/strong\u003e for the provided CNPJ.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRetry transient errors:\u003c\/strong\u003e If the API response includes an error marked as \u003cem\u003eretryable\u003c\/em\u003e, the workflow increments the retry counter, waits \u003cstrong\u003e2 seconds\u003c\/strong\u003e, and tries again (up to \u003cstrong\u003e2 retries\u003c\/strong\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFail fast on non-retryable issues:\u003c\/strong\u003e If the error is not retryable—or the maximum retries are reached—the workflow stops and raises an error containing the \u003cstrong\u003eAPI error code\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturn reduced output:\u003c\/strong\u003e On success, it extracts and returns key fields: \u003cstrong\u003erazão social\u003c\/strong\u003e, \u003cstrong\u003esituação cadastral\u003c\/strong\u003e, \u003cstrong\u003eCNAE fiscal\u003c\/strong\u003e, \u003cstrong\u003eporte\u003c\/strong\u003e, \u003cstrong\u003etelephones\u003c\/strong\u003e, and \u003cstrong\u003eemail\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eVerify and enrich customer\/vendor data in your SaaS when users provide a CNPJ.\u003c\/li\u003e\n  \u003cli\u003eAutomate company lookup for onboarding workflows and KYC-style data normalization.\u003c\/li\u003e\n  \u003cli\u003eBuild reliable enrichment steps in n8n for lead qualification and contact enrichment.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTrigger:\u003c\/strong\u003e Manual Trigger\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHTTP integration:\u003c\/strong\u003e HTTP Request node calling \u003cstrong\u003ecnpj.ia.br API\u003c\/strong\u003e using an \u003cstrong\u003eHTTP Header Auth\u003c\/strong\u003e token\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eControl logic:\u003c\/strong\u003e if, set, wait, stop and error\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRetry behavior:\u003c\/strong\u003e Retries up to \u003cstrong\u003e2\u003c\/strong\u003e times with a \u003cstrong\u003e2-second\u003c\/strong\u003e delay between attempts\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eSet up your \u003cstrong\u003ecnpj.ia.br\u003c\/strong\u003e API token, update the sample CNPJ, and use the workflow output to enrich Brazilian company records with consistent CNPJ-based data.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46072076894387,"sku":"N8N-19798","price":33.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/dZcPO4ATzb_Z7GP6xH1h4_k1l6COxs.png?v=1790068055","url":"https:\/\/buyflowscripts.com\/products\/enrich-brazilian-company-data-by-cnpj-with-cnpj-ia-br-api","provider":"N8N Commerce","version":"1.0","type":"link"}