Skip to content

DgiiRepresentacion

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.

FieldTypeRequiredDescription
credentials_idcredentialsYesdgii credential
encftextNoe-NCF of the e-CF to render (or use track_id)
track_idtextNoTrackId 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.

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) or prod (production)
{
"encf": "E310000000123",
"html": "<html>...printable representation...</html>",
"qrUrl": "https://ecf.dgii.gov.do/ecf/consultatimbre?...",
"qrImage": "data:image/png;base64,iVBORw0KGgo...",
"codigoSeguridad": "Ab3xZ9"
}
{
"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 html field 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.