HowToRomania

v0.5.2
io.howtoromania/api Checked 1 day ago Published 21 hours ago

Romanian 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.

ParameterTypeDescription
cui *stringRomanian CUI, e.g. 14399840 or RO14399840
include_fxbooleanInclude 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.

ParameterTypeDescription
cui *stringRomanian CUI, e.g. 14399840 or RO14399840
yearsintegerMost 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.

ParameterTypeDescription
cui *stringRomanian CUI, e.g. 14399840
categorystringFilter by category, e.g. Civil, Penal, Insolventa, Contencios administrativ si fiscal
limitintegerMax cases returned (default 50, max 200); summary covers all
rolestringFilter by the company's role, e.g. Reclamant (plaintiff), Pârât (defendant), Debitor, Creditor
sincestringOnly 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.

ParameterTypeDescription
case_number *stringCase 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…

ParameterTypeDescription
cui *stringRomanian 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.

ParameterTypeDescription
cui *stringRomanian 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…

ParameterTypeDescription
party *objectCompany data extracted from the document. cui is required; other fields are checked only when sent
asOfDatestringDate the document claims, YYYY-MM-DD. Default today (Europe/Bucharest). Used for ANAF status on that date
invoiceobjectOptional 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.

ParameterTypeDescription
cuistringRomanian CUI to checksum, e.g. 12345674 or RO12345674. Does not check that the company exists
ibanstringIBAN to checksum, spaces optional, e.g. RO49AAAA1B31007593840000. Romanian bank is decoded from the bank code
invoiceobjectOptional 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.
namestringCompany name to normalize, e.g. FIRMA S.R.L. Max 300 characters
registrationNumberstringTrade 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.

ParameterTypeDescription
xml *stringUBL 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).

ParameterTypeDescription
buyer *objectSeller or buyer. A Romanian cui is enough when autofill is true
lines *arrayInvoice lines, 1 to 500
number *stringInvoice number, e.g. HTR-0001
seller *objectSeller or buyer. A Romanian cui is enough when autofill is true
autofillbooleanFill Romanian parties from ANAF by CUI. Default true
currencystringISO 4217 currency code. Default RON
dueDatestringPayment due date, YYYY-MM-DD
issueDatestringIssue date, YYYY-MM-DD. Default today
notestringFree-text note printed on the invoice
paymentTermsstringPayment terms note. Default 'Plata la receptie / due on receipt' when dueDate is omitted
vatToRonRatenumberRON 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.

ParameterTypeDescription
xml *stringUBL 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.

ParameterTypeDescription
xml *stringUBL 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.

ParameterTypeDescription
q *stringCitation or title words, e.g. 'Legea 31/1990' or 'Codul fiscal'
limitintegerMax hits to return, 1 to 50. Default 10
numberstringAct number within that year, e.g. 31 for Legea 31/1990
typestringAct type filter, e.g. LEGE, ORDONANTA DE URGENTA, HOTARARE, ORDIN
yearstringYear of the act, four digits, e.g. 1990

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.

ParameterTypeDescription
article *stringArticle number, e.g. 291 or 293^1
id *stringAct id, e.g. 171282 for Codul fiscal

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.

ParameterTypeDescription
currencystringISO 4217 code, e.g. EUR, USD, GBP. History defaults to EUR. Omit on a single date to get every currency
datestringFixing date, YYYY-MM-DD. Default the latest stored fixing. Ignored when from or to is set
fromstringHistory start, YYYY-MM-DD. Sending from or to returns a daily series instead of one date
tostringHistory 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.

ParameterTypeDescription
datestringFixing date, YYYY-MM-DD. Default the latest stored fixing. Ignored when from or to is set
fromstringHistory start, YYYY-MM-DD. Sending from or to returns a series for one tenor
tenorstringTenor: ON, 1W, 1M, 3M, 6M or 12M. History defaults to 3M. Omit on a single date to get every tenor
tostringHistory 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.

ParameterTypeDescription
datestringDate the quarterly IRCC should apply to, YYYY-MM-DD. Default today. Ignored when history is set
fromstringDaily history start, YYYY-MM-DD. Used when history is daily
historystringSet to daily or quarterly to return a series instead of the value for one date
tostringDaily history end, YYYY-MM-DD. Range is at most 366 days