{
  "prices": {
    "company.lookup": 1,
    "company.financials": 3,
    "company.court_cases": 15,
    "court.case": 1,
    "company.risk_report": 30,
    "company.representatives": 5,
    "validate": 2,
    "validate.representative": 5,
    "validate.invoice": 1,
    "validate.format": 0,
    "efactura.validate": 1,
    "efactura.generate": 2,
    "efactura.parse": 1,
    "efactura.pdf": 1,
    "legislation.search": 1,
    "legislation.act": 1,
    "legislation.article": 1,
    "legislation.history": 2,
    "legislation.new": 1
  },
  "unit": "credits per successful call (errors, not-found and source outages are free; a partial risk report is billed in full)",
  "endpoints": {
    "company.lookup": "GET /v1/company/{cui} · MCP lookup_company",
    "company.financials": "GET /v1/company/{cui}/financials?years=1..5 · MCP get_company_financials",
    "company.court_cases": "GET /v1/company/{cui}/court-cases?since=YYYY-MM-DD&category=&role=&limit=1..200 · MCP get_company_court_cases",
    "court.case": "GET /v1/court-cases/{caseNumber} (URL-encoded, e.g. 9430%2F271%2F2025) · MCP get_court_case",
    "company.risk_report": "GET /v1/company/{cui}/risk-report · MCP get_company_risk_report (one charge covering ANAF + financials + court cases + ONRC registry; those reads are not billed again; informational, not credit advice)",
    "company.representatives": "GET /v1/company/{cui}/representatives · MCP get_company_representatives (ONRC registry: status, authorized CAEN, legal representatives names+roles)",
    "efactura.validate": "POST /v1/efactura/validate (raw XML or {\"xml\"}) · MCP validate_efactura (ANAF's public validation service + local checks; not billed if ANAF is unreachable)",
    "efactura.generate": "POST /v1/efactura/generate (JSON) · MCP generate_efactura (CIUS-RO UBL XML, parties auto-filled from CUI, validated by ANAF; not billed if ANAF is unreachable)",
    "efactura.parse": "POST /v1/efactura/parse (raw XML or {\"xml\"}) · MCP parse_efactura (UBL Invoice/CreditNote -> English JSON)",
    "efactura.pdf": "POST /v1/efactura/pdf (raw XML or {\"xml\"}) -> application/pdf · MCP efactura_to_pdf (rendered with ANAF's public PDF service)",
    "legislation.search": "GET /v1/legislation/search?q=Legea 31/1990|Codul fiscal|text&type=&number=&year=&limit=1..50 · MCP search_legislation",
    "legislation.act": "GET /v1/legislation/act/{id}?offset=&limit=1..200 · MCP get_legal_act (current consolidated form, split by article)",
    "legislation.article": "GET /v1/legislation/act/{id}/article/{n} · MCP get_legal_article (e.g. 291, 293^1; text + amendment notes)",
    "legislation.history": "GET /v1/legislation/act/{id}/history?article= · MCP get_legal_act_history (consolidation dates + dated amendments per article)",
    "legislation.new": "GET /v1/legislation/new?since=YYYY-MM-DD (≤35 days) · MCP get_new_legal_acts",
    "validate": "POST /v1/validate (JSON {party, invoice?, asOfDate?}) · MCP validate_extracted_company_data (checked against ANAF and ONRC; verdict per field + confidence score)",
    "validate.representative": "add-on to POST /v1/validate when party.legalRepresentative is sent (refunded if ONRC data is unavailable)",
    "validate.invoice": "add-on to POST /v1/validate when an invoice block is sent",
    "validate.format": "POST /v1/validate/format · MCP check_identifier_format (free, no key; rate-limited per IP; local checks only; does not check that the company exists)"
  },
  "sources": {
    "efactura.validate": "ANAF e-Factura public validator",
    "efactura.pdf": "ANAF e-Factura public PDF transform",
    "company.court_cases": {
      "name": "Romanian Ministry of Justice – portal.just.ro (Portalul instanțelor de judecată)",
      "url": "https://portal.just.ro",
      "api": "http://portalquery.just.ro/query.asmx",
      "attribution": "Data from the Romanian courts portal (portal.just.ro), operated by the Ministry of Justice. Public information; HowToRomania masks natural persons, omits hearing summaries and withholds criminal-case details."
    },
    "court.case": {
      "name": "Romanian Ministry of Justice – portal.just.ro (Portalul instanțelor de judecată)",
      "url": "https://portal.just.ro",
      "api": "http://portalquery.just.ro/query.asmx",
      "attribution": "Data from the Romanian courts portal (portal.just.ro), operated by the Ministry of Justice. Public information; HowToRomania masks natural persons, omits hearing summaries and withholds criminal-case details."
    },
    "company.representatives": "ONRC open data via data.gov.ro (CC-BY 4.0)",
    "validate": "ANAF PlatitorTvaRest v9 + ONRC open data snapshot + local checksums",
    "legislation": "legislatie.just.ro (Portal Legislativ, Ministerul Justiției) (informational; only Monitorul Oficial text is authentic)"
  },
  "freeCreditsNote": "Free credits to start on every new key (one key per inbox), added on signup",
  "packs": [
    {
      "id": "starter",
      "credits": 1000,
      "price": "5.00 EUR",
      "checkout": "https://api.howtoromania.io/v1/billing/checkout?pack=starter",
      "buy": "https://api.howtoromania.io/v1/billing/buy?pack=starter"
    },
    {
      "id": "pro",
      "credits": 5000,
      "price": "20.00 EUR",
      "checkout": "https://api.howtoromania.io/v1/billing/checkout?pack=pro",
      "buy": "https://api.howtoromania.io/v1/billing/buy?pack=pro"
    },
    {
      "id": "scale",
      "credits": 30000,
      "price": "100.00 EUR",
      "checkout": "https://api.howtoromania.io/v1/billing/checkout?pack=scale",
      "buy": "https://api.howtoromania.io/v1/billing/buy?pack=scale"
    }
  ],
  "howTo": "GET a checkout URL with your API key, then open it (a human pays) or pass it to your principal. Credits are added automatically after payment. Without a key, a person can open the buy URL in a browser: it creates a key and starts the same checkout."
}