HowToRomania
v0.5.2Romanian company data, e-Factura and legislation: CUI lookup, courts, risk, invoices, laws
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lookup_company Look up a Romanian company
Given a Romanian CUI/CIF (fiscal code, optionally prefixed RO), returns ANAF public registry data in English: name, addresses, trade register number, VAT status, active/inactive, e-Factura registration, plus the BNR EUR/RON rate. eFactura.status is always registered, not_registered, or unknown. eFactura.registered is true or false only when ANAF sends a readable flag, and is omitted when status is unknown. Omitted is not a negative finding. False means not in Registrul RO e-Factura on the queried date, not that the company is exempt from domestic B2B e-Factura.
| Parameter | Type | Description |
|---|---|---|
cui * | string | Romanian CUI, e.g. 14399840 or RO14399840 |
include_fx | boolean | Include BNR EUR/RON rate (default true) |
get_company_financials Romanian company financial statements
Annual financial statements filed with ANAF for a Romanian company (by CUI), in English: net turnover, revenue, expenses, gross/net profit (negative = loss), employees, assets, cash, debts, equity, plus net margin, debt-to-equity, ROE/ROA and YoY revenue growth. Amounts in RON. Costs 3 credits; not billed if nothing is found.
| Parameter | Type | Description |
|---|---|---|
cui * | string | Romanian CUI, e.g. 14399840 or RO14399840 |
years | integer | Most recent filed years to return (default 3, max 5) |
get_company_court_cases Romanian court cases of a company
Court cases (portal.just.ro, Ministry of Justice) where a Romanian company (by CUI) is a party: summary (total, by category/stage/company role, pending vs decided, insolvency) and a case list with court, subject, stage, company role, other parties and last/next hearing. Natural persons are masked (GDPR). Criminal cases show only category, stage, dates and the company's own role (criminalDetailsWithheld: true). Costs 15 credits; not billed if nothing is found.
| Parameter | Type | Description |
|---|---|---|
cui * | string | Romanian CUI, e.g. 14399840 |
category | string | Filter by category, e.g. Civil, Penal, Insolventa, Contencios administrativ si fiscal |
limit | integer | Max cases returned (default 50, max 200); summary covers all |
role | string | Filter by the company's role, e.g. Reclamant (plaintiff), Pârât (defendant), Debitor, Creditor |
since | string | Only cases registered on/after this date (YYYY-MM-DD). Default: Jan 1, three years ago |
get_court_case Romanian court case by number
Full detail of a Romanian court case by its number (e.g. 9430/271/2025) from portal.just.ro: court, subject, stage, parties with roles (natural persons masked), all hearings with outcomes, and appeals. Criminal cases return only category, stage and dates (criminalDetailsWithheld: true). Costs 1 credit; not billed if not found.
| Parameter | Type | Description |
|---|---|---|
case_number * | string | Case number as shown by courts, e.g. 9430/271/2025 |
get_company_risk_report Romanian company risk report
One-call due-diligence report for a Romanian company (by CUI): ANAF status (active/inactive, VAT, e-Factura), last 3 years of financials, court-case summary (portal.just.ro) and ONRC registry data when available, with a transparent rule-based score 0-100 (higher = fewer risk signals) and explained flags. sections.anaf.eFactura.status is registered, not_registered, or unknown; eFactura.registered is omitted when unknown. Informational only, NOT credit advice. Costs 30 credits once for this call; the included financials, court cases and registry reads are not billed again. Not billed if the CUI…
| Parameter | Type | Description |
|---|---|---|
cui * | string | Romanian CUI, e.g. 14399840 or RO14399840 |
get_company_representatives Romanian company legal representatives (ONRC)
Trade-register data for a Romanian company (by CUI) from the ONRC monthly open-data snapshot: registration number, EUID, legal form, registry status (decoded), authorized CAEN codes and legal representatives (names and roles, e.g. administrator, lichidator). Costs 5 credits; not billed if the CUI is not found.
| Parameter | Type | Description |
|---|---|---|
cui * | string | Romanian CUI, e.g. 14399840 or RO14399840 |
validate_extracted_company_data Check extracted Romanian company data (ANAF, ONRC)
Checks company data an AI extracted from an invoice, contract or form against Romanian public sources (ANAF, ONRC) and checksums. Returns a verdict and the registered value per field (CUI, name, registration number, VAT status, company status, address, IBAN, legal representative), optional invoice arithmetic checks, and a deterministic confidence score with pass / review / reject. Use before saving to an ERP or paying. Costs 2 credits, +5 with legalRepresentative, +1 with invoice; not billed on errors or when ANAF is unreachable. Checked against public sources (ANAF, ONRC) and checksums. Not a…
| Parameter | Type | Description |
|---|---|---|
party * | object | Company data extracted from the document. cui is required; other fields are checked only when sent |
asOfDate | string | Date the document claims, YYYY-MM-DD. Default today (Europe/Bucharest). Used for ANAF status on that date |
invoice | object | Optional invoice block. Adds 1 credit on validate_extracted_company_data. Checks total = net + VAT, Romanian VAT rates, and that the date is not in the future. |
check_identifier_format Free format check: CUI, IBAN, trade register number, invoice arithmetic
Free, local-only checks with no registry lookup: CUI checksum, IBAN checksum (and Romanian bank from the code), trade register number format (old and new), company name normalization, and invoice arithmetic (total = net + VAT, Romanian VAT rates, date not in the future). Does not check that the company exists; the last digit of new-format registration numbers (e.g. J2020001234400) is not verified. Free, works without an API key; rate-limited per IP. For registry checks use validate_extracted_company_data.
| Parameter | Type | Description |
|---|---|---|
cui | string | Romanian CUI to checksum, e.g. 12345674 or RO12345674. Does not check that the company exists |
iban | string | IBAN to checksum, spaces optional, e.g. RO49AAAA1B31007593840000. Romanian bank is decoded from the bank code |
invoice | object | Optional invoice block. Adds 1 credit on validate_extracted_company_data. Checks total = net + VAT, Romanian VAT rates, and that the date is not in the future. |
name | string | Company name to normalize, e.g. FIRMA S.R.L. Max 300 characters |
registrationNumber | string | Trade register number, old J40/123/2020 or new J2020000123400. The last digit of the new format is not verified |
validate_efactura Validate a Romanian e-Factura XML
Validates a UBL 2.1 invoice/credit note against RO e-Factura rules (CIUS-RO) using ANAF's public validation service (XSD + Schematron, no ANAF account needed) plus fast local checks (totals, VAT breakdown, CUI checksums, RO county codes, Bucharest SECTORn). Returns valid true/false and the exact rule codes (BR-xx, BR-RO-xx) with English/Romanian messages. Costs 1 credit; not billed if ANAF is unreachable.
| Parameter | Type | Description |
|---|---|---|
xml * | string | UBL 2.1 Invoice or CreditNote XML (RO e-Factura / CIUS-RO) |
generate_efactura Generate a Romanian e-Factura XML
Builds a valid RO e-Factura (CIUS-RO 1.0.1, UBL 2.1) invoice XML from simple JSON: seller/buyer (just the CUI is enough: name, address, county code and VAT status are auto-filled from ANAF), lines with quantity, unit price and VAT rate (default 21%; categories S, Z, E, AE reverse charge, K, G, O not subject). Computes line, VAT and grand totals and returns the XML plus ANAF's validation verdict (public validation service). Does NOT submit to SPV. Costs 2 credits; not billed on errors or if ANAF's validator is unreachable (the XML is still returned).
| Parameter | Type | Description |
|---|---|---|
buyer * | object | Seller or buyer. A Romanian cui is enough when autofill is true |
lines * | array | Invoice lines, 1 to 500 |
number * | string | Invoice number, e.g. HTR-0001 |
seller * | object | Seller or buyer. A Romanian cui is enough when autofill is true |
autofill | boolean | Fill Romanian parties from ANAF by CUI. Default true |
currency | string | ISO 4217 currency code. Default RON |
dueDate | string | Payment due date, YYYY-MM-DD |
issueDate | string | Issue date, YYYY-MM-DD. Default today |
note | string | Free-text note printed on the invoice |
paymentTerms | string | Payment terms note. Default 'Plata la receptie / due on receipt' when dueDate is omitted |
vatToRonRate | number | RON per 1 unit of currency, e.g. the BNR rate. Required when currency is not RON |
parse_efactura Parse a Romanian e-Factura XML to JSON
Turns a UBL 2.1 e-Factura invoice or credit note XML (e.g. downloaded from ANAF SPV) into clean English JSON: number, dates, type, currency, seller/buyer (name, VAT id, CUI, address, contact), payment means and IBAN, lines (name, quantity, unit, price, net, VAT), VAT breakdown and totals. Costs 1 credit; not billed on errors.
| Parameter | Type | Description |
|---|---|---|
xml * | string | UBL 2.1 Invoice or CreditNote XML (RO e-Factura / CIUS-RO) |
efactura_to_pdf Render a Romanian e-Factura XML as PDF
Renders a valid e-Factura XML as PDF using ANAF's public transformation service (no ANAF account). Returns the PDF as a base64 resource. The XML must pass validation. Costs 1 credit; not billed on errors.
| Parameter | Type | Description |
|---|---|---|
xml * | string | UBL 2.1 Invoice or CreditNote XML (RO e-Factura / CIUS-RO) |
search_legislation Search Romanian legislation
Finds Romanian normative acts on legislatie.just.ro by citation or title words: 'Legea 31/1990', 'OUG 195/2002', 'HG 1/2016', 'Codul fiscal', 'Codul muncii', or words from the title. Ranked so the main act comes first (codes and laws before decrees/orders). Returns act ids for get_legal_act / get_legal_article. Costs 1 credit; not billed if nothing matches. Source: legislatie.just.ro (Ministry of Justice); informational, consolidated forms are unofficial, only Monitorul Oficial text is authentic.
| Parameter | Type | Description |
|---|---|---|
q * | string | Citation or title words, e.g. 'Legea 31/1990' or 'Codul fiscal' |
limit | integer | Max hits to return, 1 to 50. Default 10 |
number | string | Act number within that year, e.g. 31 for Legea 31/1990 |
type | string | Act type filter, e.g. LEGE, ORDONANTA DE URGENTA, HOTARARE, ORDIN |
year | string | Year of the act, four digits, e.g. 1990 |
get_legal_act Romanian legal act (current consolidated form)
Current consolidated text of a Romanian act by legislatie.just.ro id (from search_legislation), split by article: title, issuer, publication, consolidation date, version list and articles (number, heading, text, count of amendments). Paged with offset/limit (default 50 articles). Core codes (Codul fiscal 171282, Codul muncii 41627, Codul civil 175630, Codul de procedură civilă 140271, Codul de procedură fiscală 170007, Legea 31/1990 798) also work offline. Costs 1 credit. Source: legislatie.just.ro (Ministry of Justice); informational, consolidated forms are unofficial, only Monitorul Ofic…
| Parameter | Type | Description |
|---|---|---|
id * | string | legislatie.just.ro DetaliiDocument id, e.g. 171282 |
limit | integer | Articles per page, 1 to 200. Default 50 |
offset | integer | Article index to start at, 0-based. Default 0 |
get_legal_article Article of a Romanian legal act
One article in its current consolidated form, e.g. Codul fiscal (171282) art. 291 (VAT rates), with paragraph/letter structure and dated amendment notes (what changed it and when). Article numbers like '293^1' are supported. Costs 1 credit; not billed if not found. Source: legislatie.just.ro (Ministry of Justice); informational, consolidated forms are unofficial, only Monitorul Oficial text is authentic.
| Parameter | Type | Description |
|---|---|---|
article * | string | Article number, e.g. 291 or 293^1 |
id * | string | Act id, e.g. 171282 for Codul fiscal |
get_legal_act_history Amendment history of a Romanian act
Consolidation dates (with version ids) and the dated list of amendments for a whole act or one article: date in force, what was changed and by which act. Useful for 'what was the VAT rule on date X'. Costs 2 credits; not billed if not found. Source: legislatie.just.ro (Ministry of Justice); informational, consolidated forms are unofficial, only Monitorul Oficial text is authentic.
| Parameter | Type | Description |
|---|---|---|
id * | string | legislatie.just.ro DetaliiDocument id, e.g. 171282 for Codul fiscal |
article | string | Limit the amendment list to one article, e.g. 291 or 293^1. Omit for the whole act |
get_new_legal_acts New Romanian legal acts
Acts newly indexed by legislatie.just.ro (laws, government ordinances and decisions, ministerial orders, court decisions published in Monitorul Oficial) with an in-force date on/after `since` (default: last 7 days, max 35). Costs 1 credit. Source: legislatie.just.ro (Ministry of Justice); informational, consolidated forms are unofficial, only Monitorul Oficial text is authentic.
| Parameter | Type | Description |
|---|---|---|
since | string | Include acts in force on or after this date, YYYY-MM-DD. Default the last 7 days. Must be within the last 35 days |
get_bnr_exchange_rate BNR exchange rate (RON reference rate)
BNR reference exchange rates in RON from 2005-01-03: one date (latest fixing on/before the date; all currencies or one), or a daily series for one currency with from/to (max 366 days). Free (0 credits); works without an API key (keyless calls are rate-limited per IP). Source: Banca Națională a României (bnr.ro); informational, values unchanged from BNR source.
| Parameter | Type | Description |
|---|---|---|
currency | string | ISO 4217 code, e.g. EUR, USD, GBP. History defaults to EUR. Omit on a single date to get every currency |
date | string | Fixing date, YYYY-MM-DD. Default the latest stored fixing. Ignored when from or to is set |
from | string | History start, YYYY-MM-DD. Sending from or to returns a daily series instead of one date |
to | string | History end, YYYY-MM-DD. Range is at most 366 days |
get_robor ROBOR / ROBID interbank rates
ROBOR (offered) and ROBID (bid) fixings, % p.a., tenors ON, 1W, 1M, 3M, 6M, 12M, from 1995-08-01: one date (latest fixing on/before) or a series for one tenor with from/to (max 366 days). Free (0 credits); works without an API key (keyless calls are rate-limited per IP). Source: Banca Națională a României (bnr.ro); informational, values unchanged from BNR source.
| Parameter | Type | Description |
|---|---|---|
date | string | Fixing date, YYYY-MM-DD. Default the latest stored fixing. Ignored when from or to is set |
from | string | History start, YYYY-MM-DD. Sending from or to returns a series for one tenor |
tenor | string | Tenor: ON, 1W, 1M, 3M, 6M or 12M. History defaults to 3M. Omit on a single date to get every tenor |
to | string | History end, YYYY-MM-DD. Range is at most 366 days |
get_ircc IRCC consumer-credit reference index
IRCC (indicele de referință pentru creditele consumatorilor), % p.a.: the quarterly value applicable on a date (plus the next quarter's if published) and the latest daily value; or history (type daily with from/to, or quarterly). Free (0 credits); works without an API key (keyless calls are rate-limited per IP). Source: Banca Națională a României (bnr.ro); informational, values unchanged from BNR source.
| Parameter | Type | Description |
|---|---|---|
date | string | Date the quarterly IRCC should apply to, YYYY-MM-DD. Default today. Ignored when history is set |
from | string | Daily history start, YYYY-MM-DD. Used when history is daily |
history | string | Set to daily or quarterly to return a series instead of the value for one date |
to | string | Daily history end, YYYY-MM-DD. Range is at most 366 days |