HowToRomania API

Data from Romanian public registries for AI agents, over REST and MCP. 16 paid services, plus free BNR exchange rates, ROBOR, IRCC and identifier format checks (no key). Pay per successful call in prepaid credits: 1 credit = €0.005 (smallest pack), free credits to start on every new key. Errors, not-found and source outages (e.g. ANAF unreachable) are not billed; a risk report with some sections unavailable is billed in full.

AreaServiceEndpointReturnsCredits≈ EUR
CompaniesCompany lookupGET /v1/company/{cui}
MCP lookup_company
ANAF registry data by CUI/VAT id: name, address, status, VAT, e-Factura, BNR EUR/RON1€0.005
CompaniesFinancial statementsGET /v1/company/{cui}/financials
MCP get_company_financials
Up to 5 years of filed accounts + ratios (RON)3€0.015
CompaniesLegal representatives (ONRC)GET /v1/company/{cui}/representatives
MCP get_company_representatives
Trade-register status, CAEN codes, representatives (name, role)5€0.025
CompaniesRisk report (KYB)GET /v1/company/{cui}/risk-report
MCP get_company_risk_report
Status + financials + court cases + registry, score 0-100 with explained flags30€0.150
CourtsCompany court casesGET /v1/company/{cui}/court-cases
MCP get_company_court_cases
Cases where the company is a party (portal.just.ro), summary + list15€0.075
CourtsCourt case by numberGET /v1/court-cases/{caseNumber}
MCP get_court_case
Parties, hearings, outcomes, appeals1€0.005
ValidationCheck extracted company dataPOST /v1/validate
MCP validate_extracted_company_data
Checks CUI, name, registration number, VAT status, company status, address, IBAN and (optional) legal representative an AI extracted from an invoice or contract against ANAF and ONRC; verdict per field and a confidence score (pass / review / reject). +5 credits with legalRepresentative, +1 with an invoice block2€0.010
e-FacturaValidate invoice XMLPOST /v1/efactura/validate
MCP validate_efactura
validated with ANAF's public validation service (CIUS-RO) + local checks, rule codes1€0.005
e-FacturaGenerate invoice XMLPOST /v1/efactura/generate
MCP generate_efactura
CIUS-RO UBL from simple JSON; parties auto-filled from CUI; validated with ANAF's public validation service2€0.010
e-FacturaParse invoice XMLPOST /v1/efactura/parse
MCP parse_efactura
UBL Invoice/CreditNote -> English JSON1€0.005
e-FacturaInvoice PDFPOST /v1/efactura/pdf
MCP efactura_to_pdf
rendered with ANAF's public PDF service1€0.005
LegislationSearch actsGET /v1/legislation/search
MCP search_legislation
By citation ('Legea 31/1990') or title words1€0.005
LegislationAct (in force)GET /v1/legislation/act/{id}
MCP get_legal_act
Current consolidated text, split by article1€0.005
LegislationArticle (in force)GET /v1/legislation/act/{id}/article/{n}
MCP get_legal_article
One article + dated amendment notes1€0.005
LegislationAmendment historyGET /v1/legislation/act/{id}/history
MCP get_legal_act_history
Consolidation dates, dated amendments per article2€0.010
LegislationNew actsGET /v1/legislation/new
MCP get_new_legal_acts
Acts in force since a date (max 35 days)1€0.005

Packs: €5 = 1,000 credits · €20 = 5,000 · €100 = 30,000. Links: OpenAPI 3.1 · llms.txt · llms-full.txt · /v1/pricing · MCP https://api.howtoromania.io/mcp

Free: BNR exchange rates, ROBOR, IRCC, identifier format checks

Free, no API key, no credits, over REST and MCP; keyless calls are rate-limited per IP. Source: Banca Națională a României (bnr.ro); informational, values unchanged from BNR source. Responses cached up to 15 minutes.

Free, no key: POST /v1/validate/format {cui?, iban?, registrationNumber?, name?, invoice?} · MCP check_identifier_format · local checks only (CUI and IBAN checksums, trade register number format, name normalization, invoice arithmetic). Does not check that the company exists; the last digit of new-format trade register numbers is not verified. Rate-limited per IP.

EndpointReturnsMCP
GET /v1/rates/fx?date=YYYY-MM-DD&currency=EURRON reference rate on a date (latest fixing on/before it), one or all currencies, from 2005-01-03get_bnr_exchange_rate
GET /v1/rates/fx/history?currency=EUR&from=&to=Daily series for one currency, max 366 days per requestget_bnr_exchange_rate
GET /v1/rates/robor?date=&tenor=ON|1W|1M|3M|6M|12MInterbank fixing on a date, all tenors or one, from 1995-08-01get_robor
GET /v1/rates/robor/history?tenor=3M&from=&to=Daily series for one tenor, max 366 days per requestget_robor
GET /v1/rates/ircc?date=Quarterly IRCC applicable on a date, next quarter's if published, latest daily IRCCget_ircc
GET /v1/rates/ircc/history?type=daily|quarterly&from=&to=Daily values from 2018-10-01 (max 366 days per request) or all quarterly values from 2018-Q4get_ircc
curl "https://api.howtoromania.io/v1/rates/robor?tenor=3M"

Free: public holidays, localities (SIRUTA), administrative unit at a point

Free, no API key, no credits, over REST and MCP; keyless calls are rate-limited per IP. Public sources: SIRUTA from INS and administrative unit boundaries from ANCPI (both via data.gov.ro, licence CC BY 4.0 as listed by the publishers), and the text of the Labour Code on legislatie.just.ro for the holidays. Informational; responses name the source and snapshot. Responses cached up to 1 hour.

EndpointReturnsMCP
GET /v1/holidays?year=2027&date=YYYY-MM-DDDays off under the Labour Code (art. 139) for a year, 2024-2099, or whether one date is a public holiday. Dates are computed from the law's rules; each entry says howget_public_holidays
GET /v1/places/search?q=Sacele&county=Brasov&limit=20Counties, administrative units and localities by name (diacritics optional), with SIRUTA code, kind, county and parent unitsearch_places
GET /v1/places/{siruta}One SIRUTA code: kind, county, urban or rural, NUTS3 and LAU codes, parent unit and componentsget_place
GET /v1/places/at?lat=46.7712&lon=23.6236The municipality, town, commune or Bucharest sector that contains a WGS84 point, with SIRUTA code and county. Boundaries are generalized to about 50 mfind_place_at
curl "https://api.howtoromania.io/v1/holidays?year=2027"

Quickstart

1. Try without signup: public demo key htr_demo (limited daily calls per IP; company.lookup, court.case, efactura.validate, efactura.parse, legislation.search, legislation.article, legislation.new).

curl -H "x-api-key: htr_demo" https://api.howtoromania.io/v1/company/14399840

2. Free key, free credits to start, all endpoints (shown once):

curl -X POST https://api.howtoromania.io/v1/keys -H "content-type: application/json" -d '{"email":"you@example.com","accept_terms":true}'

3. Send x-api-key: <key> or Authorization: Bearer <key>. Out of credits → HTTP 402 with checkout links. Balance: GET /v1/me.

Buying credits: GET /v1/billing/checkout?pack=starter|pro|scale with your key returns a checkoutUrl valid 30 minutes; a human opens it, accepts the Terms, chooses consumer or business (business: company name, CUI or EU VAT ID, country), then pays on Stripe (merchant of record). Credits are added automatically after payment.

MCP setup

Remote server, streamable HTTP: https://api.howtoromania.io/mcp. initialize and tools/list work without a key, and so do the free tools (get_bnr_exchange_rate, get_robor, get_ircc, get_public_holidays, search_places, get_place, find_place_at, check_identifier_format); other tool calls need one. Replace htr_demo with your key.

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "howtoromania": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.howtoromania.io/mcp",
        "--header",
        "Authorization: Bearer ${HTR_KEY}"
      ],
      "env": {
        "HTR_KEY": "htr_demo"
      }
    }
  }
}

Claude.ai / Claude Desktop custom connector: add URL https://api.howtoromania.io/mcp (Settings → Connectors) if your plan supports custom headers; otherwise use the config above.

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "howtoromania": {
      "url": "https://api.howtoromania.io/mcp",
      "headers": {
        "Authorization": "Bearer htr_demo"
      }
    }
  }
}

Cline (cline_mcp_settings.json)

{
  "mcpServers": {
    "howtoromania": {
      "type": "streamableHttp",
      "url": "https://api.howtoromania.io/mcp",
      "headers": {
        "Authorization": "Bearer htr_demo"
      }
    }
  }
}

ChatGPT / OpenAI Responses API

{
  "type": "mcp",
  "server_label": "howtoromania",
  "server_url": "https://api.howtoromania.io/mcp",
  "headers": {
    "Authorization": "Bearer $HTR_KEY"
  },
  "require_approval": "never"
}

ChatGPT app (developer mode): add a connector with URL https://api.howtoromania.io/mcp. Custom actions (GPTs): import https://api.howtoromania.io/openapi.json, auth API key header x-api-key.

Example agent tasks

  1. KYB on a Romanian supplier: “Before we sign with supplier RO14399840, check it's active, VAT-registered, and summarize risk flags.” → get_company_risk_report (30)
  2. Verify a VAT id on an invoice: “Is RO14399840 a valid, active Romanian VAT payer? Return legal name and registered address.” → lookup_company (1)
  3. Who can sign for the company: “List the legal representatives of CUI 14399840 and their roles.” → get_company_representatives (5)
  4. Financial health check: “Show turnover, net profit and employees for CUI 14399840 for the last 3 years, with YoY growth.” → get_company_financials (3)
  5. Litigation screen: “Is CUI 14399840 a defendant in any insolvency or pending civil cases since 2024?” → get_company_court_cases (15)
  6. Invoice a Romanian client (cross-border): “Create an e-Factura invoice from our German company DE123456789 to RO14399840: 10 hours consulting at €120, reverse charge.” → generate_efactura (2)
  7. Fix a rejected e-Factura: “ANAF rejected this XML. Validate it and tell me exactly which rules fail and how to fix them.” → validate_efactura (1)
  8. Read an incoming Romanian invoice: “Parse this e-Factura XML and give me supplier, totals, VAT and IBAN in JSON for our ERP.” → parse_efactura (1)
  9. Current Romanian VAT rate: “What VAT rates apply in Romania today per Codul fiscal art. 291, and when did they last change?” → get_legal_article (1) + get_legal_act_history (2)
  10. Monitor new Romanian law: “List Romanian acts that entered into force this week that affect taxes or companies.” → get_new_legal_acts (1)

Services

Company lookup · 1 cr

ANAF registry data by CUI/VAT id: name, address, status, VAT, e-Factura, BNR EUR/RON. MCP tool lookup_company.

curl -H "x-api-key: htr_demo" "https://api.howtoromania.io/v1/company/14399840"

Financial statements · 3 cr

Up to 5 years of filed accounts + ratios (RON). MCP tool get_company_financials.

curl -H "x-api-key: $HTR_KEY" "https://api.howtoromania.io/v1/company/14399840/financials?years=3"

Legal representatives (ONRC) · 5 cr

Trade-register status, CAEN codes, representatives (name, role). MCP tool get_company_representatives.

curl -H "x-api-key: $HTR_KEY" "https://api.howtoromania.io/v1/company/14399840/representatives"

Risk report (KYB) · 30 cr

Status + financials + court cases + registry, score 0-100 with explained flags. MCP tool get_company_risk_report.

curl -H "x-api-key: $HTR_KEY" "https://api.howtoromania.io/v1/company/14399840/risk-report"

Company court cases · 15 cr

Cases where the company is a party (portal.just.ro), summary + list. MCP tool get_company_court_cases.

curl -H "x-api-key: $HTR_KEY" "https://api.howtoromania.io/v1/company/14399840/court-cases?limit=20"

Court case by number · 1 cr

Parties, hearings, outcomes, appeals. MCP tool get_court_case.

curl -H "x-api-key: htr_demo" "https://api.howtoromania.io/v1/court-cases/9430%2F271%2F2025"

Check extracted company data · 2 cr

Checks CUI, name, registration number, VAT status, company status, address, IBAN and (optional) legal representative an AI extracted from an invoice or contract against ANAF and ONRC; verdict per field and a confidence score (pass / review / reject). +5 credits with legalRepresentative, +1 with an invoice block. MCP tool validate_extracted_company_data.

curl -X POST -H "x-api-key: $HTR_KEY" -H "content-type: application/xml" --data-binary @invoice.xml https://api.howtoromania.io/v1/validate

Validate invoice XML · 1 cr

validated with ANAF's public validation service (CIUS-RO) + local checks, rule codes. MCP tool validate_efactura.

curl -X POST -H "x-api-key: htr_demo" -H "content-type: application/xml" --data-binary @invoice.xml https://api.howtoromania.io/v1/efactura/validate

Generate invoice XML · 2 cr

CIUS-RO UBL from simple JSON; parties auto-filled from CUI; validated with ANAF's public validation service. MCP tool generate_efactura.

curl -X POST -H "x-api-key: $HTR_KEY" -H "content-type: application/json" -d @invoice.json https://api.howtoromania.io/v1/efactura/generate

Parse invoice XML · 1 cr

UBL Invoice/CreditNote -> English JSON. MCP tool parse_efactura.

curl -X POST -H "x-api-key: htr_demo" -H "content-type: application/xml" --data-binary @invoice.xml https://api.howtoromania.io/v1/efactura/parse

Invoice PDF · 1 cr

rendered with ANAF's public PDF service. MCP tool efactura_to_pdf.

curl -X POST -H "x-api-key: $HTR_KEY" -H "content-type: application/xml" --data-binary @invoice.xml https://api.howtoromania.io/v1/efactura/pdf

Search acts · 1 cr

By citation ('Legea 31/1990') or title words. MCP tool search_legislation.

curl -H "x-api-key: htr_demo" "https://api.howtoromania.io/v1/legislation/search?q=Codul%20fiscal"

Current consolidated text, split by article. MCP tool get_legal_act.

curl -H "x-api-key: $HTR_KEY" "https://api.howtoromania.io/v1/legislation/act/171282?limit=5"

Article (in force) · 1 cr

One article + dated amendment notes. MCP tool get_legal_article.

curl -H "x-api-key: htr_demo" "https://api.howtoromania.io/v1/legislation/act/171282/article/291"

Consolidation dates, dated amendments per article. MCP tool get_legal_act_history.

curl -H "x-api-key: $HTR_KEY" "https://api.howtoromania.io/v1/legislation/act/171282/history?article=291"

Acts in force since a date (max 35 days). MCP tool get_new_legal_acts.

curl -H "x-api-key: htr_demo" "https://api.howtoromania.io/v1/legislation/new"

e-Factura generate body

curl -X POST -H "x-api-key: $HTR_KEY" -H "content-type: application/json" https://api.howtoromania.io/v1/efactura/generate -d '{"number":"FCT-1","autofill":false,"seller":{"vatId":"RO12345674","name":"FIRMA SRL","registrationNumber":"J40/1234/2020","street":"Str. Exemplu nr. 1","city":"SECTOR1","county":"RO-B","country":"RO"},"buyer":{"vatId":"RO87654329","name":"CLIENT SRL","street":"Str. Exemplu nr. 2","city":"Cluj-Napoca","county":"RO-CJ","country":"RO"},"currency":"RON","lines":[{"name":"Consultanta","quantity":10,"unitCode":"HUR","unitPrice":120,"vatRate":21}]}'

Company, VAT, status and e-Factura fields

GET /v1/company/{cui} reads ANAF PlatitorTvaRest v9 for queriedForDate (Europe/Bucharest). source.fetchedAt is when that response was read; a repeat lookup can be served from cache for up to 6 hours. eFactura.status is always registered, not_registered, or unknown. eFactura.registered is true or false only when ANAF sends a boolean or the strings "true" / "false", and is omitted when the flag is missing or unreadable (status unknown). Omitted is not a negative finding. False means not in Registrul RO e-Factura on that date, and does not mean the company is exempt from domestic B2B e-Factura. The risk-report ANAF section uses the same object. POST /v1/validate checks extracted values against the same ANAF record (and ONRC for the legal representative) and does not return this flag. The e-Factura XML endpoints validate, generate, parse and render CIUS-RO; they do not return the registry flag. Machine-readable copy of every property: openapi.json.

FieldMeaning
data.cuiString of digits, no RO prefix. Romanian fiscal code (CUI/CIF). Example: "14399840". Source: ANAF date_generale.cui.
data.vatIdString or null. "RO" plus the CUI when vat.registered is true; null when the company is not VAT-registered on queriedForDate. Derived from ANAF inregistrare_scop_Tva.scpTVA. Example: "RO14399840".
data.nameString. Legal name from ANAF date_generale.denumire. Empty string when ANAF sends no name. Example: "DANTE INTERNATIONAL SA".
data.registrationNumberString or null. Trade-register number (ONRC) as stored by ANAF in date_generale.nrRegCom. Old form J40/3724/2002 or new form J2002000372404. Null when ANAF sends a blank. Example: "J2002000372404". GET /v1/company/{cui}/representatives can carry the same number from the ONRC open-data snapshot.
data.registrationDateString or null, YYYY-MM-DD. ANAF date_generale.data_inregistrare (the fiscal registration date ANAF holds). Null when blank. Example: "2002-01-23". The representatives endpoint has its own registrationDate from the ONRC snapshot, which can be a later filing.
data.caenCodeString or null. Main CAEN Rev. 2 code from ANAF date_generale.cod_CAEN, digits only, no text. Null when blank. Example: "4754". Extra authorized codes, when the snapshot has them, are on the representatives endpoint (ONRC), not here.
data.legalFormString or null. ANAF date_generale.forma_juridica. Example: "SOCIETATE COMERCIALĂ PE ACŢIUNI". Null when blank.
data.organizationTypeString or null. ANAF date_generale.forma_organizare. Example: "PERSOANA JURIDICA". Null when blank.
data.ownershipString or null. ANAF date_generale.forma_de_proprietate. Example: "PROPR.PRIVATA-CAPITAL PRIVAT AUTOHTON SI STRAIN". Null when blank.
data.taxOfficeString or null. Competent tax office, ANAF date_generale.organFiscalCompetent. Example: "Direcţia Generală de Administrare a Marilor Contribuabili". Null when blank.
data.fiscalStatusString or null. Free text from ANAF date_generale.stare_inregistrare. Example: "INREGISTRAT din data 29.08.2006". Null when blank. Structured flags are status.active, status.inactive and status.deregisteredOn.
data.addressObject with fiscal and registeredOffice, same shape. fiscal is ANAF adresa_domiciliu_fiscal; if its formatted line is empty, date_generale.adresa is used. registeredOffice is ANAF adresa_sediu_social. The two addresses often differ (CUI 14399840: fiscal in Sector 2, registered office in Sector 6).
data.address.fiscal.county / registeredOffice.countyString or null. County name (denumire_Judet). Example: "MUNICIPIUL BUCUREŞTI". Null when omitted.
data.address.*.localityString or null. City, town or Bucharest sector (denumire_Localitate). Example: "Sector 2 Mun. Bucureşti". Null when omitted.
data.address.*.streetString or null. Street name (denumire_Strada). Example: "Str. Gara Herăstrău". Null when omitted.
data.address.*.numberString or null. Street number (numar_Strada). Example: "6". Null when omitted.
data.address.*.detailsString or null. Extra line such as building, entrance or apartment (detalii_Adresa). Example: "Cladirea Globalworth Square". Null when omitted.
data.address.*.postalCodeString or null. Postal code (cod_Postal). Example: "60787" on the registered office of CUI 14399840. Null when omitted.
data.address.*.countyCodeString or null. Romanian county code (cod_JudetAuto). Examples: "B", "CJ". Null when omitted.
data.address.*.countryString. Country (tara). "RO" when ANAF sends a blank. Example: "RO".
data.address.*.formattedString or null. One line joined from street, number, details, locality, county and postal code. On the fiscal address, a blank line falls back to ANAF date_generale.adresa. Null when nothing is available. Example: a fiscal line for CUI 14399840 containing "Herăstrău".
data.vat.registeredBoolean. True when ANAF inregistrare_scop_Tva.scpTVA is true on queriedForDate: the company is in the VAT register (Fiscal Code art. 316) on that date. False when that flag is not true. Example: true for CUI 14399840. False is a definite ANAF answer for that date. If ANAF cannot be reached the call fails and is not billed.
data.vat.sinceString or null, YYYY-MM-DD. Start of the open VAT period: the perioade_TVA row with an empty data_sfarsit_ScpTVA, otherwise the first row's data_inceput_ScpTVA. Null when vat.registered is false or ANAF sends no date. Example: "2002-02-01".
data.vat.cashAccountingBoolean. True when ANAF inregistrare_RTVAI.statusTvaIncasare is true on queriedForDate (TVA la încasare, cash-accounting VAT). False otherwise. Example: false for CUI 14399840.
data.vat.splitVatBoolean. True when ANAF inregistrare_SplitTVA.statusSplitTVA is true on queriedForDate (split-payment VAT). False otherwise. Example: false for CUI 14399840.
data.status.activeBoolean, derived. True when status.inactive is false and status.deregisteredOn is null. False when ANAF lists the company as fiscally inactive or deregistered. A company can be active and not VAT-registered. Example: true for CUI 14399840. ONRC dissolution, insolvency or suspension is a different source (representatives and the risk report).
data.status.inactiveBoolean. True when ANAF stare_inactiv.statusInactivi is true on queriedForDate (fiscally inactive taxpayers). False otherwise. Example: false for CUI 14399840.
data.status.inactiveSinceString or null. ANAF stare_inactiv.dataInactivare. Null when the company is not inactive or ANAF sends no date. Example: null.
data.status.reactivatedOnString or null. ANAF stare_inactiv.dataReactivare. Null when ANAF sends no date. Example: null.
data.status.deregisteredOnString or null, YYYY-MM-DD. ANAF stare_inactiv.dataRadiere when set. If that is blank and stare_inregistrare contains RADIERE plus a dd.MM.yyyy date, that date is converted to YYYY-MM-DD and used. Null when the company is not deregistered. When set, status.active is false. Example: null for CUI 14399840.
data.eFactura.statusString enum, always present: "registered", "not_registered", or "unknown". Derived from ANAF date_generale.statusRO_e_Factura as of queriedForDate. "registered": the flag is true (JSON boolean or the string "true") and the CUI is in Registrul RO e-Factura. "not_registered": ANAF sent false (JSON boolean or the string "false"), so the CUI is not in that registry on that date. "unknown": the flag was missing, blank, or neither a boolean nor those strings. Unknown is not a negative finding, and registered is omitted in that case. Examples: "not_registered" for CUI 14399840 (Dante International SA); "registered" for CUI 16054368. "not_registered" does not mean the company is exempt from sending domestic B2B invoices through RO e-Factura. A failed ANAF call does not come back as not_registered; the request errors and is not billed.
data.eFactura.registeredBoolean, optional, never null. Present only when status is "registered" (true: the CUI is in Registrul RO e-Factura) or "not_registered" (false: ANAF sent false, so the CUI is not in that registry on queriedForDate). Omitted entirely when status is "unknown" (the flag was missing, blank, or unreadable). Never returned as null. ANAF date_generale.statusRO_e_Factura as of queriedForDate. JSON booleans and the strings "true" and "false" are definite answers. A bare Boolean() cast is not used: Boolean("false") is true. Examples: false for CUI 14399840 (Dante International SA); true for CUI 16054368. False does not mean the company is exempt from sending domestic B2B invoices through RO e-Factura. A failed ANAF call does not come back as false; the request errors and is not billed.
data.eFactura.sinceString or null, YYYY-MM-DD. ANAF date_generale.data_inreg_Reg_RO_e_Factura. Null when ANAF sends a blank (typical when status is not_registered). Example: null for CUI 14399840; "2022-09-01" for CUI 16054368. The registry query service can report a different dataInscriere for the same CUI; this field follows PlatitorTvaRest, the same payload as status and registered.
data.queriedForDateString, YYYY-MM-DD. The date sent to ANAF. VAT, inactive, deregistration and e-Factura flags are as of this date (Europe/Bucharest today, unless a caller passes another date). Example: "2026-11-17". Not the same as source.fetchedAt.
data.source.nameString. Always "ANAF PlatitorTvaRest v9" on a company lookup.
data.source.urlString. The ANAF endpoint that was called. Example: "https://webservicesp.anaf.ro/api/PlatitorTvaRest/v9/tva".
data.source.fetchedAtString, ISO-8601 timestamp of the ANAF read that produced this object. Example: "2026-11-17T07:40:00.000Z". A repeat lookup can be served from cache for up to 6 hours, so fetchedAt can lag the HTTP request. It is not a registry publication time.
fxBNR EUR/RON rate attached to a company lookup. Null when the query fx=false or BNR did not return a rate. Source: Banca Națională a României (bnr.ro). Informational; the number is unchanged from the BNR source.
fx.currencyString. ISO 4217 code. Always "EUR" on this lookup.
fx.ronPerUnitNumber. RON per 1 EUR on fx.date. Example: 5.09.
fx.dateString, YYYY-MM-DD. BNR publication date of this fixing. Example: "2026-11-16".
fx.sourceString. Publisher. Always "BNR" on this lookup.
POST /v1/validate data.overall.verdictString enum: "pass", "review", or "reject". Combined verdict. pass when confidence is at least 0.90, review from 0.60 to 0.89, reject below 0.60. A deregistered company, an unknown CUI, or another hard stop forces reject. Fiscally inactive, an ONRC insolvency/suspension/dissolution status, or an invalid IBAN forces at most review.
POST /v1/validate data.overall.confidenceNumber from 0 to 1. Weights (renormalized over the fields that were checked): CUI 0.30, name 0.15, VAT 0.15, status 0.10, IBAN 0.10, registration number 0.08, address 0.07, legal representative 0.05. Per field: valid 1.0, corrected 0.9 times name similarity (only if similarity is at least 0.85), partial 0.5, invalid or not_found 0, unverifiable excluded. Example: 1.
POST /v1/validate data.fieldsObject keyed by the checks that ran. Keys: cui (always), status (always), name, registrationNumber, vatRegistered, address, iban, legalRepresentative (only when you sent them). vatRegistered.value is the ANAF boolean vat.registered; vatRegistered.input is the boolean you claimed (an RO prefix with no explicit claim is treated as a claim of true). status.value is "active", "fiscally_inactive", or "deregistered". status.since is the inactivity or deregistration date when status is not active. legalRepresentative comes from the ONRC open-data snapshot (match or no match only; the name is not stored). Address is compared to the fiscal address, or the registered office when the fiscal line is empty.
POST /v1/validate data.fields.*.verdictString enum: "valid", "corrected", "partial", "invalid", "not_found", "unverifiable". corrected is a close name match (similarity at least 0.85). partial is an address that matches county and city but not the street. unverifiable means the source needed for that field could not be read (ONRC snapshot missing, or ANAF has no parsable registration number).
POST /v1/validate data.fields.*.valueRegistry or normalized value when there is one. String for name, address, registration number, status ("active", "fiscally_inactive", "deregistered") and the normalized IBAN. Boolean for vatRegistered (ANAF vat.registered). Null when a string field has no registry value (for example ANAF has no registration number). Omitted on some not_found and unverifiable results.
POST /v1/validate data.asOfString, YYYY-MM-DD. Date the document claims, or today in Europe/Bucharest when asOfDate was omitted. ANAF is queried for this date. Example: "2026-11-17".
POST /v1/validate data.sourcesString. "ANAF PlatitorTvaRest v9", and when the ONRC snapshot was read, a second entry naming the ONRC open data. String, YYYY-MM-DD. The date asked of ANAF. Present on the ANAF source entry. Example: "2026-11-17". String, ISO-8601. When that ANAF body was read. The company record can be cached for up to 6 hours.
POST /v1/efactura/validate data.validBoolean. True only when local CIUS-RO errors are zero and, if ANAF's validator was reached, ANAF also accepted the XML (stare "ok"). When ANAF is not reached, true means local checks passed and validatedBy is "local".
POST /v1/efactura/validate data.validatedByString enum: "anaf" when the public validator answered, "local" when it was skipped (query anaf=false) or unreachable. Example: "anaf".
POST /v1/efactura/validate data.anaf.checkedBoolean. True when ANAF's public validator returned a verdict. False when it was not called or the call failed. False is not itself an invoice rejection; read valid and validatedBy. The call is not billed when the validator is unreachable.
POST /v1/efactura/validate data.anaf.validBoolean, present when checked is true. ANAF's stare: true for "ok", false otherwise. Omitted when checked is false.

Notes