Excise taxes (impuesto específico)
Besides IVA (tax codigo: '01'), a line can carry excise taxes (impuesto
selectivo / específico de consumo). These stack on top of IVA and, for several
codes, feed into the IVA base.
Tax codes
Section titled “Tax codes”codigo |
Tax | Kind |
|---|---|---|
02 |
Selectivo de consumo | Ad-valorem (subtotal × tarifa / 100) |
03 |
Combustibles | Per-unit |
04 |
Alcohol | Per-unit |
05 |
Bebidas envasadas / jabones | Per-unit |
06 |
Tabaco | Per-unit |
12 |
Cemento | Ad-valorem |
The monto is computed, never trusted
Section titled “The monto is computed, never trusted”EmiteCR recomputes the excise monto server-side and rejects mismatches
(INVOICE_TOTALS_MISMATCH) — you can’t just send a number. Compute it with the
formulas below, using exact decimals, so your value matches.
Ad-valorem (02, 12): monto = subtotal × tarifa / 100 — the line’s
subtotal (after discounts) times the tax’s tarifa, a percentage.
Per-unit (03, 04, 05, 06): the tax must carry a datosEspecifico
object, and the monto follows the Anexos v4.4 formulas:
| Code | Formula |
|---|---|
03 Combustibles |
cantidadUnidadMedida × impuestoUnidad |
04 Alcohol |
Cantidad × proporcion × impuestoUnidad (where proporcion = porcentaje / 100 × cantidadUnidadMedida) |
05 Bebidas |
Cantidad × cantidadUnidadMedida × (impuestoUnidad / volumenUnidadConsumo) |
05 Jabón |
Cantidad × volumenUnidadConsumo × impuestoUnidad |
06 Tabaco |
Cantidad × cantidadUnidadMedida × impuestoUnidad |
datosEspecifico fields
Section titled “datosEspecifico fields”Required by the XSD when codigo ∈ {03, 04, 05, 06}:
{ "codigo": "03", "tarifa": 0, "monto": 4500, "datosEspecifico": { "cantidadUnidadMedida": 100, "impuestoUnidad": 45 }}| Field | Required for | Meaning |
|---|---|---|
cantidadUnidadMedida |
all per-unit | Units of the taxable measure |
impuestoUnidad |
all per-unit | Tax per unit (₡) |
porcentaje |
04 |
Alcohol percentage |
proporcion |
optional on 04 |
porcentaje / 100 × cantidadUnidadMedida. Omit it and EmiteCR computes it |
volumenUnidadConsumo |
05 |
Consumption-unit volume |
esJabonTocador |
optional on 05 |
true selects the toilet-soap formula instead of the beverage one. Not sent to Hacienda |
A per-unit tax without datosEspecifico is refused with
400 SPECIFIC_TAX_DATA_REQUIRED, and one without the field its code requires
(porcentaje on 04, volumenUnidadConsumo on 05) with
400 SPECIFIC_TAX_FIELD_REQUIRED.
Stacking and where the excise lands
Section titled “Stacking and where the excise lands”Excise interacts with the IVA base and the totals:
- Excise for
{02, 04, 05, 12}stacks into<BaseImponible>— i.e. IVA is charged on top of the excise. - For
{03, 04, 05, 12}the excise is assumed at factory (<ImpuestoAsumidoEmisorFabrica>, netted from<ImpuestoNeto>). - Tabaco
06is NOT assumed (sandbox-confirmed): its excise is charged to the receiver and appears inTotalDesgloseImpuesto. - When you read the document back (
GET /v1/invoices/{id}), each line’scomputedgivesbaseImponible,impuestoAsumidoEmisorFabricaandimpuestoNetoas its XML declares them, andtaxBreakdowngives theTotalDesgloseImpuesto.
Compute line montos in two passes, as the web app does — excise first, then IVA on the stacked base.
Example — a per-unit tobacco line (code 06)
Section titled “Example — a per-unit tobacco line (code 06)”{ "lineNumber": 1, "code": "2402200000000", "quantity": 10, "unitOfMeasure": "Unid", "description": "Cigarrillos", "unitPrice": 2000, "subtotal": 20000, "taxes": [ { "codigo": "06", "tarifa": 0, "monto": 3000, "datosEspecifico": { "cantidadUnidadMedida": 20, "impuestoUnidad": 15 } }, { "codigo": "01", "codigoTarifa": "08", "tarifa": 13, "monto": 2600 } ], "total": 25600}The tobacco tax is 10 × 20 × 15 = 3000. Code 06 does not stack into the
IVA base, so the IVA is 13 % of the subtotal alone (2600); and since
tobacco is not assumed either, the line’s total adds both:
20000 + 3000 + 2600 = 25600.
Validation is hard for excise: EmiteCR recomputes ad-valorem 02/12 and
per-unit 03/04/05/06, and rejects mismatches.