DgiiRepresentacion
Description
Section titled “Description”Generates the Printed Representation of the Electronic Fiscal Receipt (RFCE) for an e-CF already issued to the DGII of the Dominican Republic, including the stamp lookup QR code. The node fetches the already-issued e-CF from the database, looking it up by its e-NCF or its TrackId, and builds the HTML ready to print or convert to PDF.
This node does not re-issue or re-sign anything: it only generates the visual representation of a document that was already received by the DGII with DgiiEmitirFactura or DgiiEmitirNota.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | dgii credential |
| encf | text | No | e-NCF of the e-CF to render (or use track_id) |
| track_id | text | No | TrackId of the e-CF to render (alternative to the e-NCF) |
At least one of encf or track_id must be provided to locate the document.
Credentials
Section titled “Credentials”This module requires a dgii credential type with the following fields:
- Digital certificate (.p12): signing certificate in base64 (alternatively, private key + certificate in PEM)
- Certificate password: password for the .p12 file
- Issuer RNC: tax ID of the issuing company (9 to 11 digits)
- Environment:
test,cert(certification) orprod(production)
Output
Section titled “Output”{ "encf": "E310000000123", "html": "<html>...printable representation...</html>", "qrUrl": "https://ecf.dgii.gov.do/ecf/consultatimbre?...", "qrImage": "data:image/png;base64,iVBORw0KGgo...", "codigoSeguridad": "Ab3xZ9"}Usage Example
Section titled “Usage Example”{ "credentials_id": "cred-dgii-prod", "encf": "E310000000123"}- If the e-CF is not found in the database with the given e-NCF or TrackId, the node returns an error instead of generating an empty representation.
- The QR points to the DGII’s stamp lookup page, built from the issuer, buyer, total amount, dates and security code of the document.
- The
htmlfield is ready to be rendered directly or converted to PDF in a later workflow step. - The items shown in the detail come from the node’s input
data/config.items, they are not automatically fetched from the database.
Related Nodes
Section titled “Related Nodes”- DgiiEmitirFactura - Issue the e-CF that will later be rendered
- DgiiEmitirNota - Issue the note that will later be rendered
- DgiiConsultarEstado - Confirm the e-CF was accepted before delivering it