Introducción
Costa Rica electronic invoicing as an API — signed, transmitted to Hacienda, and tracked to a verdict.
Sello builds v4.4 comprobantes electrónicos, signs them (XAdES-EPES), transmits them to the Ministerio de Hacienda, and reports back Hacienda's verdict — handing your application a clean REST surface with idempotency, signed webhooks, and a typed SDK.
Quickstart
Get an API key and issue your first document.
API Reference
Every endpoint, generated from the OpenAPI 3.1 contract.
Guides
Idempotency, the clave, webhooks, money, error handling.
SDKs
TypeScript, Python, Go, Java, C# and PHP.
Odoo
Invoice from the books you already keep, with no module to install.
Supported scenarios
What Sello issues today, and what it refuses on purpose.
What Sello does for you
- Issues comprobantes — FE, TE, NC, ND, FEC, FEE, and REP — from a single
JSON request, allocating the consecutivo and the 50-digit
clavefor you. The FEC is proven for a non-domiciled supplier; a supplier in the régimen simplificado or the régimen especial agropecuario is not yet supported — see Issuing documents. - Signs each document synchronously on the create request, then submits
to Hacienda out of band and tracks it through its lifecycle to a terminal
verdict (
aceptado/rechazado). - Receives supplier comprobantes and files your Mensaje Receptor (the reception side, for backing IVA credit).
- Validates CABYS codes and IVA rates against a self-hosted CR fiscal catalog, so you don't sync Hacienda yourself.
The two planes
Sello has two distinct surfaces, authenticated differently:
- Issuance API (
/v1) — the machine surface. Authenticated with a per-consumer API key (Authorization: Bearer …). Create documents, poll their Hacienda verdict, receive webhooks, and manage received documents (Mensaje Receptor). This is what your application code and the SDK talk to. - Control-plane portal — the human surface. A web dashboard for managing emisores, API keys, webhook endpoints, your team, and delivery settings. Authenticated with a session, not an API key.
This documentation is about the Issuance API and its SDK.
Costa Rica context
Every sale in Costa Rica must be documented with a signed comprobante
electrónico (XML v4.4) transmitted to Hacienda's reception API. Each carries a
13-digit CABYS product code, IVA tax lines, a field-composed 50-digit clave,
and an XAdES-EPES digital signature. Hacienda validates asynchronously and
returns a verdict. Sello owns all of that machinery so your application only
speaks business terms.
Sello is the extraction and generalization of a working, Hacienda-accepted invoicing module into a multi-tenant engine: the signing pipeline has earned real sandbox and production acceptance end-to-end.
The full endpoint-by-endpoint API Reference is generated
from the OpenAPI 3.1 contract (sdk/openapi/sello.openapi.yaml), which is the
contract of record. These guides cover the shapes and flows you need; the
reference has the per-operation request/response schemas and code samples.