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.
| Area | Service | Endpoint | Returns | Credits | ≈ EUR |
|---|---|---|---|---|---|
| Companies | Company lookup | GET /v1/company/{cui}MCP lookup_company | ANAF registry data by CUI/VAT id: name, address, status, VAT, e-Factura, BNR EUR/RON | 1 | €0.005 |
| Companies | Financial statements | GET /v1/company/{cui}/financialsMCP get_company_financials | Up to 5 years of filed accounts + ratios (RON) | 3 | €0.015 |
| Companies | Legal representatives (ONRC) | GET /v1/company/{cui}/representativesMCP get_company_representatives | Trade-register status, CAEN codes, representatives (name, role) | 5 | €0.025 |
| Companies | Risk report (KYB) | GET /v1/company/{cui}/risk-reportMCP get_company_risk_report | Status + financials + court cases + registry, score 0-100 with explained flags | 30 | €0.150 |
| Courts | Company court cases | GET /v1/company/{cui}/court-casesMCP get_company_court_cases | Cases where the company is a party (portal.just.ro), summary + list | 15 | €0.075 |
| Courts | Court case by number | GET /v1/court-cases/{caseNumber}MCP get_court_case | Parties, hearings, outcomes, appeals | 1 | €0.005 |
| Validation | Check extracted company data | POST /v1/validateMCP 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 block | 2 | €0.010 |
| e-Factura | Validate invoice XML | POST /v1/efactura/validateMCP validate_efactura | validated with ANAF's public validation service (CIUS-RO) + local checks, rule codes | 1 | €0.005 |
| e-Factura | Generate invoice XML | POST /v1/efactura/generateMCP generate_efactura | CIUS-RO UBL from simple JSON; parties auto-filled from CUI; validated with ANAF's public validation service | 2 | €0.010 |
| e-Factura | Parse invoice XML | POST /v1/efactura/parseMCP parse_efactura | UBL Invoice/CreditNote -> English JSON | 1 | €0.005 |
| e-Factura | Invoice PDF | POST /v1/efactura/pdfMCP efactura_to_pdf | rendered with ANAF's public PDF service | 1 | €0.005 |
| Legislation | Search acts | GET /v1/legislation/searchMCP search_legislation | By citation ('Legea 31/1990') or title words | 1 | €0.005 |
| Legislation | Act (in force) | GET /v1/legislation/act/{id}MCP get_legal_act | Current consolidated text, split by article | 1 | €0.005 |
| Legislation | Article (in force) | GET /v1/legislation/act/{id}/article/{n}MCP get_legal_article | One article + dated amendment notes | 1 | €0.005 |
| Legislation | Amendment history | GET /v1/legislation/act/{id}/historyMCP get_legal_act_history | Consolidation dates, dated amendments per article | 2 | €0.010 |
| Legislation | New acts | GET /v1/legislation/newMCP 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, 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.
| Endpoint | Returns | MCP |
|---|---|---|
GET /v1/rates/fx?date=YYYY-MM-DD¤cy=EUR | RON reference rate on a date (latest fixing on/before it), one or all currencies, from 2005-01-03 | get_bnr_exchange_rate |
GET /v1/rates/fx/history?currency=EUR&from=&to= | Daily series for one currency, max 366 days per request | get_bnr_exchange_rate |
GET /v1/rates/robor?date=&tenor=ON|1W|1M|3M|6M|12M | Interbank fixing on a date, all tenors or one, from 1995-08-01 | get_robor |
GET /v1/rates/robor/history?tenor=3M&from=&to= | Daily series for one tenor, max 366 days per request | get_robor |
GET /v1/rates/ircc?date= | Quarterly IRCC applicable on a date, next quarter's if published, latest daily IRCC | get_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-Q4 | get_ircc |
curl "https://api.howtoromania.io/v1/rates/robor?tenor=3M"
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.
| Endpoint | Returns | MCP |
|---|---|---|
GET /v1/holidays?year=2027&date=YYYY-MM-DD | Days 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 how | get_public_holidays |
GET /v1/places/search?q=Sacele&county=Brasov&limit=20 | Counties, administrative units and localities by name (diacritics optional), with SIRUTA code, kind, county and parent unit | search_places |
GET /v1/places/{siruta} | One SIRUTA code: kind, county, urban or rural, NUTS3 and LAU codes, parent unit and components | get_place |
GET /v1/places/at?lat=46.7712&lon=23.6236 | The municipality, town, commune or Bucharest sector that contains a WGS84 point, with SIRUTA code and county. Boundaries are generalized to about 50 m | find_place_at |
curl "https://api.howtoromania.io/v1/holidays?year=2027"
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.
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.
{
"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.
{
"mcpServers": {
"howtoromania": {
"url": "https://api.howtoromania.io/mcp",
"headers": {
"Authorization": "Bearer htr_demo"
}
}
}
}
{
"mcpServers": {
"howtoromania": {
"type": "streamableHttp",
"url": "https://api.howtoromania.io/mcp",
"headers": {
"Authorization": "Bearer htr_demo"
}
}
}
}
{
"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.
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"
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"
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"
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"
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"
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"
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
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
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
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
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
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"
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"
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}]}'
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.
| Field | Meaning |
|---|---|
data.cui | String of digits, no RO prefix. Romanian fiscal code (CUI/CIF). Example: "14399840". Source: ANAF date_generale.cui. |
data.vatId | String 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.name | String. Legal name from ANAF date_generale.denumire. Empty string when ANAF sends no name. Example: "DANTE INTERNATIONAL SA". |
data.registrationNumber | String 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.registrationDate | String 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.caenCode | String 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.legalForm | String or null. ANAF date_generale.forma_juridica. Example: "SOCIETATE COMERCIALĂ PE ACŢIUNI". Null when blank. |
data.organizationType | String or null. ANAF date_generale.forma_organizare. Example: "PERSOANA JURIDICA". Null when blank. |
data.ownership | String or null. ANAF date_generale.forma_de_proprietate. Example: "PROPR.PRIVATA-CAPITAL PRIVAT AUTOHTON SI STRAIN". Null when blank. |
data.taxOffice | String or null. Competent tax office, ANAF date_generale.organFiscalCompetent. Example: "Direcţia Generală de Administrare a Marilor Contribuabili". Null when blank. |
data.fiscalStatus | String 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.address | Object 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.county | String or null. County name (denumire_Judet). Example: "MUNICIPIUL BUCUREŞTI". Null when omitted. |
data.address.*.locality | String or null. City, town or Bucharest sector (denumire_Localitate). Example: "Sector 2 Mun. Bucureşti". Null when omitted. |
data.address.*.street | String or null. Street name (denumire_Strada). Example: "Str. Gara Herăstrău". Null when omitted. |
data.address.*.number | String or null. Street number (numar_Strada). Example: "6". Null when omitted. |
data.address.*.details | String or null. Extra line such as building, entrance or apartment (detalii_Adresa). Example: "Cladirea Globalworth Square". Null when omitted. |
data.address.*.postalCode | String or null. Postal code (cod_Postal). Example: "60787" on the registered office of CUI 14399840. Null when omitted. |
data.address.*.countyCode | String or null. Romanian county code (cod_JudetAuto). Examples: "B", "CJ". Null when omitted. |
data.address.*.country | String. Country (tara). "RO" when ANAF sends a blank. Example: "RO". |
data.address.*.formatted | String 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.registered | Boolean. 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.since | String 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.cashAccounting | Boolean. 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.splitVat | Boolean. True when ANAF inregistrare_SplitTVA.statusSplitTVA is true on queriedForDate (split-payment VAT). False otherwise. Example: false for CUI 14399840. |
data.status.active | Boolean, 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.inactive | Boolean. True when ANAF stare_inactiv.statusInactivi is true on queriedForDate (fiscally inactive taxpayers). False otherwise. Example: false for CUI 14399840. |
data.status.inactiveSince | String or null. ANAF stare_inactiv.dataInactivare. Null when the company is not inactive or ANAF sends no date. Example: null. |
data.status.reactivatedOn | String or null. ANAF stare_inactiv.dataReactivare. Null when ANAF sends no date. Example: null. |
data.status.deregisteredOn | String 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.status | String 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.registered | Boolean, 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.since | String 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.queriedForDate | String, 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.name | String. Always "ANAF PlatitorTvaRest v9" on a company lookup. |
data.source.url | String. The ANAF endpoint that was called. Example: "https://webservicesp.anaf.ro/api/PlatitorTvaRest/v9/tva". |
data.source.fetchedAt | String, 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. |
fx | BNR 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.currency | String. ISO 4217 code. Always "EUR" on this lookup. |
fx.ronPerUnit | Number. RON per 1 EUR on fx.date. Example: 5.09. |
fx.date | String, YYYY-MM-DD. BNR publication date of this fixing. Example: "2026-11-16". |
fx.source | String. Publisher. Always "BNR" on this lookup. |
POST /v1/validate data.overall.verdict | String 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.confidence | Number 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.fields | Object 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.*.verdict | String 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.*.value | Registry 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.asOf | String, 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.sources | String. "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.valid | Boolean. 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.validatedBy | String 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.checked | Boolean. 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.valid | Boolean, present when checked is true. ANAF's stare: true for "ok", false otherwise. Omitted when checked is false. |