anaf

n8n community node for ANAF company lookup by CUI (Romanian tax ID)

Package Information

Released: 4 mo ago
Downloads: 12 weekly / 152 monthly
Latest Version: 0.1.0
Author: Catalin Barabas

Documentation

n8n-nodes-anaf

Community n8n node for ANAF company lookups — verify any Romanian
company by its CUI (tax ID) through ANAF's free public REST API. No API key, no auth.

Returns official name, address, VAT registration, activity code, and active/dissolved
status — the due-diligence check sales, accounting, legal, and procurement teams run
before contracting with a company.

Nodes

Node What it does
ANAF Company Lookup Company details, VAT verification, active/dissolved status, and batch lookup by CUI.

Installation

From the n8n UI (recommended)

  1. Go to Settings → Community Nodes → Install.
  2. Enter n8n-nodes-anaf and confirm.
  3. The ANAF Company Lookup node appears in the node panel.

With npm

npm install n8n-nodes-anaf

Example workflow

workflows/anafCompanyLookup-example.json —
lead qualification: take a lead's CUI → look it up → if the company is active and VAT
registered
, create a CRM deal; otherwise send an internal alert and skip. Import via
Workflows → Import from File and swap the placeholders for your CRM / Slack nodes.

Local development

cd <this-package>
npm install
npm run build

Run inside n8n via Docker:

docker run -it --rm --name n8n -p 5678:5678 `
  -v n8n_data:/home/node/.n8n `
  -v "<ABSOLUTE_PACKAGE_PATH>:/home/node/.n8n/custom/n8n-nodes-anaf" `
  -e N8N_CUSTOM_EXTENSIONS="/home/node/.n8n/custom/n8n-nodes-anaf" `
  docker.n8n.io/n8nio/n8n

Open http://localhost:5678.

Tests

npm test

Tests run against a real ANAF API response snapshot plus synthetic dissolved/inactive
fixtures, covering CUI normalization, the full field mapping, all four operations, and
batch handling of found / not-found / invalid CUIs.

Data & disclaimer

Data © ANAF (Agenția Națională de Administrare Fiscală), from the public web service at
webservicesp.anaf.ro. Unofficial package, not affiliated with ANAF.

License

MIT © Catalin Barabas

Discussion