Dominican e-CF Backup
DGII e-CF contingency mode: offline buffering and resequenced retransmission when the DGII service is unavailable (BYOK)
Want Dominican e-CF Backup installed and configured for you? Onboarding Pack: $350 one-off
Support plans from $425 a monthDGII e-CF Contingency for the Dominican Republic
Keep invoicing when the DGII service is down - buffer offline, retransmit in the right order when it returns.
What is e-CF contingency?
Under Ley 32-23 (Ley General de Facturacion Electronica), every e-CF (Comprobante Fiscal Electronico) is an XML document sent to the DGII for validation. When your connectivity or the DGII services are down (DGII technical report on e-CF, section 19), commerce cannot stop: the e-CF is generated offline with a reserved e-NCF, the printed invoice carries the legend “e-CF emitido en modalidad de contingencia”, and the documents are sent to the DGII once the service is back — within 72 hours for a connectivity contingency. This module manages that lifecycle inside Odoo.
Local offline buffering
When you declare contingency, posted customer invoices and credit notes are generated as fully-formed e-CF XML, sealed with a SHA-256 integrity digest, and stored locally in a contingency buffer instead of being transmitted in real time.
Resequenced retransmission
When the service returns, buffered documents are retransmitted in their lawful order: per e-CF type, by ascending e-NCF sequence number, then by issue time. The DGII receives a contiguous, monotonic sequence with no gaps and no out-of-order arrival.
Gap and duplicate preflight
Before any retransmission the buffer is checked for missing sequence numbers and duplicate e-NCFs. A broken buffer is blocked so you fix it before the DGII rejects the batch.
Automatic recovery
A debounced health probe asks the DGII authentication service for its seed and, once the DGII answers steadily, it closes contingency and triggers retransmission automatically. The consecutive-healthy-probe count is persisted on the company, so the "Recovery Probes" setting works at any value, not only at 1; only a 2xx answer counts as healthy, so a 404 from a mistyped URL or a 401 from an unauthorised endpoint keeps you in contingency. Transient transport failures are retried with exponential backoff.
Feature list
| Feature | Description |
|---|---|
| e-CF XML generation | Deterministic e-CF XML that validates against the official DGII schemas: IdDoc with TipoIngresos and TipoPago, Emisor, Comprador, totals per ITBIS rate (18 %, 16 %, 0 %) and exempt, foreign currency block, line discounts, credit-note references and the reference to a paper NCF replaced after a contingency. |
| Sales e-CF types | 31 Credito Fiscal, 32 Consumo, 33 Nota de Debito, 34 Nota de Credito, 44 Regimenes Especiales, 45 Gubernamental, 46 Exportaciones. The purchase-side types 41, 43 and 47 are listed for reference and not generated. A consumer invoice below DOP 250,000 goes to the DGII as a summary, which this module does not send. |
| e-NCF structure | Composes and validates the 13-character e-NCF (E + 2-digit type + 10-digit sequence). |
| RNC / Cedula validation | The structure the DGII schema requires: 9 digits (RNC) or 11 digits (cédula). |
| Authorised sequence pools | Per-type e-NCF ranges authorised by the DGII, with offline next-number reservation and an exhaustion guard. The authorised expiry date is enforced — an expired range stops issuing and is skipped when the next number is drawn — and is emitted in the e-CF as FechaVencimientoSecuencia. |
| Contingency buffer | Offline document store with integrity seal, lifecycle states and a transmission log. |
| Resequencer | Lawful retransmission ordering by type, sequence and issue time. |
| Preflight | Sequence-gap and duplicate detection across the buffer. |
| Retry scheduler | Exponential backoff with cap. Once the attempt budget is spent the document is parked: it leaves the retry queue entirely and waits for an operator to reset it, instead of being re-sent to the DGII forever. |
| Health probe | Debounced auto-recovery gate that avoids flapping on intermittent service. |
| BYOK transport | The DGII services as published: seed download, your signed seed exchanged for the one-hour token, the signed e-CF sent to the reception service (file named RNC + e-NCF), the TrackId kept and the validation result (Aceptado, Aceptado Condicional, Rechazado) read back by a scheduled query. Pre-certification, certification and production environments. Your own certificate and signature; no credentials are shipped. |
BYOK and compliance boundary
This module is a format generator and contingency buffer. It builds the sign-ready e-CF XML and manages the offline buffer and the resequenced retransmission. Digital signing uses your own XAdES certificate and retransmission uses your own DGII credentials and endpoint (bring-your-own-key). We are not a certified e-CF provider and never impersonate one; your credentials never leave your database.
Technical
- Odoo 18.0, 19.0 and 20.0 compatible.
- Depends only on
account(Community); no Enterprise dependency. - Framework-free core services, fully unit-tested, including both crons.
- Cron-driven health probe and retransmission.
Screenshots
Contingency Buffer
Retransmit Buffer
E Ncf Sequences
Update date: 2026-10-22
User guides (PDF)
Related modules
EU Distance-Sales
Monitor the EUR 10.000 pan-EU B2C distance-sales threshold, alert on crossing and switch to destination-VAT / OSS mode
EU Domiciliation Portal
Let customers sign and confirm SEPA direct-debit domiciliering/domiciliation mandates online with a full audit trail (BE/NL self-service onboarding)
EU OSS/IOSS Sales Ledger
Dedicated member-state-by-member-state OSS / IOSS sales ledger with rate tables and a per-country reconciliation worksheet