HowToRomania E Factura API
The e-Factura API from HowToRomania — 4 operation(s) for e-factura.
The e-Factura API from HowToRomania — 4 operation(s) for e-factura.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/howtoromania-io:howtoromania-io-e-factura-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Howtoromania Io E Factura API
version: 0.5.0
contact:
email: hello@howtoromania.io
url: https://howtoromania.io
description: 'Operations tagged e-Factura across 2 of this provider''s published API definitions: howtoromania-io-openapi.json, howtoromania-io-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.howtoromania.io
security:
- apiKey: []
- bearer: []
tags:
- name: e-Factura
paths:
/v1/efactura/validate:
post:
operationId: validate_efactura
summary: Validate invoice XML (1 credit)
description: validated with ANAF's public validation service (CIUS-RO) + local checks, rule codes
tags:
- e-Factura
x-credits: 1
responses:
'200':
description: OK
headers:
x-credits-used:
schema:
type: integer
x-credits-remaining:
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
data:
type: object
'400':
description: Invalid input (not billed)
'401':
description: Missing/invalid key
'402':
description: Out of credits; body has checkout links
'403':
description: Endpoint not in demo key
'404':
description: Not found (not billed)
'429':
description: Demo limit reached
'451':
description: Court case closed more than 3 years ago, withheld for data protection (code unavailable_data_protection, not billed)
'502':
description: Upstream error (not billed)
requestBody:
required: true
content:
application/xml:
schema:
type: string
application/json:
schema:
type: object
properties:
xml:
type: string
required:
- xml
servers:
- url: https://api.howtoromania.io
/v1/efactura/generate:
post:
operationId: generate_efactura
summary: Generate invoice XML (2 credits)
description: CIUS-RO UBL from simple JSON; parties auto-filled from CUI; validated with ANAF's public validation service
tags:
- e-Factura
x-credits: 2
responses:
'200':
description: OK
headers:
x-credits-used:
schema:
type: integer
x-credits-remaining:
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
data:
type: object
'400':
description: Invalid input (not billed)
'401':
description: Missing/invalid key
'402':
description: Out of credits; body has checkout links
'403':
description: Endpoint not in demo key
'404':
description: Not found (not billed)
'429':
description: Demo limit reached
'451':
description: Court case closed more than 3 years ago, withheld for data protection (code unavailable_data_protection, not billed)
'502':
description: Upstream error (not billed)
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- number
- seller
- buyer
- lines
properties:
number:
type: string
issueDate:
type: string
dueDate:
type: string
currency:
type: string
vatToRonRate:
type: number
seller:
type: object
buyer:
type: object
lines:
type: array
items:
type: object
required:
- name
- quantity
- unitPrice
properties:
name:
type: string
quantity:
type: number
unitPrice:
type: number
unitCode:
type: string
vatRate:
type: number
vatCategory:
type: string
servers:
- url: https://api.howtoromania.io
/v1/efactura/parse:
post:
operationId: parse_efactura
summary: Parse invoice XML (1 credit)
description: UBL Invoice/CreditNote -> English JSON
tags:
- e-Factura
x-credits: 1
responses:
'200':
description: OK
headers:
x-credits-used:
schema:
type: integer
x-credits-remaining:
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
data:
type: object
'400':
description: Invalid input (not billed)
'401':
description: Missing/invalid key
'402':
description: Out of credits; body has checkout links
'403':
description: Endpoint not in demo key
'404':
description: Not found (not billed)
'429':
description: Demo limit reached
'451':
description: Court case closed more than 3 years ago, withheld for data protection (code unavailable_data_protection, not billed)
'502':
description: Upstream error (not billed)
requestBody:
required: true
content:
application/xml:
schema:
type: string
application/json:
schema:
type: object
properties:
xml:
type: string
required:
- xml
servers:
- url: https://api.howtoromania.io
/v1/efactura/pdf:
post:
operationId: efactura_to_pdf
summary: Invoice PDF (1 credit)
description: rendered with ANAF's public PDF service
tags:
- e-Factura
x-credits: 1
responses:
'200':
description: OK
headers:
x-credits-used:
schema:
type: integer
x-credits-remaining:
schema:
type: integer
content:
application/pdf:
schema:
type: string
format: binary
'400':
description: Invalid input (not billed)
'401':
description: Missing/invalid key
'402':
description: Out of credits; body has checkout links
'403':
description: Endpoint not in demo key
'404':
description: Not found (not billed)
'429':
description: Demo limit reached
'451':
description: Court case closed more than 3 years ago, withheld for data protection (code unavailable_data_protection, not billed)
'502':
description: Upstream error (not billed)
requestBody:
required: true
content:
application/xml:
schema:
type: string
application/json:
schema:
type: object
properties:
xml:
type: string
required:
- xml
servers:
- url: https://api.howtoromania.io
components:
schemas:
Error:
description: Error body
type: object
properties:
error:
description: What went wrong
type: object
properties:
code:
description: Stable code, e.g. invalid_input, not_found, unauthorized, rate_limited, insufficient_credits
type: string
message:
description: What went wrong, and whether the call was billed
type: string
retryAfterSeconds:
description: Seconds to wait, on some rate-limit responses
type: integer
balance:
description: Credit balance, on some billing errors
type: integer
additionalProperties: true
PaymentRequired:
description: Out of credits
type: object
properties:
error:
description: insufficient_credits
type: object
properties:
code:
description: Always insufficient_credits
type: string
const: insufficient_credits
message:
description: Out-of-credits explanation and how to buy a pack
type: string
balance:
description: Credits remaining
type: integer
topup:
description: How to buy credits
type: object
properties:
howTo:
description: Next step. When purchases are paused this says so, without a checkout link
type: string
purchasesPaused:
description: True when checkout is closed
type: boolean
packs:
description: Credit packs
type: array
items:
description: One credit pack
type: object
properties:
id:
description: starter, pro, or scale
type: string
credits:
description: Credits in the pack
type: integer
price:
description: Price including VAT, e.g. 5.00 EUR
type: string
checkout:
description: Checkout URL. Present when purchases are open
type: string
format: uri
securitySchemes:
apiKey:
type: apiKey
in: header
name: x-api-key
bearer:
type: http
scheme: bearer
externalDocs:
url: https://api.howtoromania.io/docs
x-refined-from:
- howtoromania-io-openapi.json
- howtoromania-io-openapi.json
x-mcp:
url: https://api.howtoromania.io/mcp
transport: streamable-http