# Introduction

> Open Factura is an open-source platform for issuing El Salvador's Electronic Tax Documents (DTE) from your system, your terminal, or your AI assistant.

Open Factura issues **Electronic Tax Documents (DTE)** with El Salvador's Ministry of Finance
(Ministerio de Hacienda, MH) under the Compliance Regulation 2.0 (Normativa de Cumplimiento 2.0). You
send JSON; Open Factura calculates the taxes, assigns the control number, signs, transmits, and
returns the document with its reception stamp, its official JSON, and its PDF.

The API is open source: use it in the cloud (`openfactura.co`), dashboard included, or deploy it to
your own Cloudflare account ([self-hosting](https://docs.openfactura.co/en/autoalojamiento/)).

> **Note**
>
> The API speaks Spanish: endpoints, field names, error codes, permissions, and CLI commands
> (`tipoDte`, `dte_rechazado`, `openfactura dte emitir`…) are the real contract and appear here
> untranslated. The API reference is in Spanish, like the API's field names.

## Before you begin

- An account at [app.openfactura.co](https://app.openfactura.co) with an organization.
- A registered issuer and its credentials for the MH test environment (API password and `.crt`
  certificate).
- A test API key (`of_test_…`).

Not authorized by Hacienda yet? Read [Becoming an issuer with Hacienda](https://docs.openfactura.co/en/hacienda/ser-emisor/).

## Three ways to connect

All three use the same services, the same permissions, and the same API key.

  **REST API**
    JSON over HTTPS at `https://app.openfactura.co/api/v1`, described with OpenAPI 3.1.
  **MCP**
    Tools for Claude, Cursor, and other assistants, remote at `/mcp` or local over stdio.
  **CLI**
    `openfactura dte emitir factura.json` from the terminal or a CI pipeline.

## Start here

  - [Quickstart](https://docs.openfactura.co/en/inicio-rapido/): From a new account to your first test invoice in minutes.
  - [Issue documents](https://docs.openfactura.co/en/guias/emitir/): Invoices, tax credit invoices, notes, exports, excluded subjects, and more.
  - [Connect an assistant (MCP)](https://docs.openfactura.co/en/herramientas/mcp/): Let Claude validate, confirm, and issue for you.
  - [API reference](https://docs.openfactura.co/api/): Every route, parameter, response, and error code (in Spanish).

## Explore

  - [Authentication and keys](https://docs.openfactura.co/en/autenticacion/)
  - [Environments: test and production](https://docs.openfactura.co/en/ambientes/)
  - [Idempotency](https://docs.openfactura.co/en/guias/idempotencia/)
  - [Contingency](https://docs.openfactura.co/en/guias/contingencia/)
  - [Invalidation](https://docs.openfactura.co/en/guias/invalidacion/)
  - [Return event](https://docs.openfactura.co/en/guias/retorno/)
  - [CLI](https://docs.openfactura.co/en/herramientas/cli/)
  - [Agent skills](https://docs.openfactura.co/en/herramientas/habilidades/)
  - [SDK @openfactura/dte](https://docs.openfactura.co/en/herramientas/sdk/)
  - [Self-hosting](https://docs.openfactura.co/en/autoalojamiento/)
  - [Errors](https://docs.openfactura.co/en/errores/)
